Debug Resources
Sample Message
1. Submit Transaction
Request
{
"app_id": "yourappid",
"timestamp": "1739327779762",
"biz_data": {
"trans_type": "1",
"expires":30,
"merchant_order_no": "20241118210100",
"order_amount": "20.34",
"notify_url": "https://m.website.com/notify",
"pay_scenario": "SWIPE_CARD"
},
"topic": "ecrhub.pay.order"
}
Response
{
"app_id": "yourappid",
"biz_data": {
"confirm_on_terminal": false,
"expires": 30,
"merchant_order_no": "20241118210100",
"order_amount": "20.34",
"pay_method_id": "Visa",
"pay_scenario": "SWIPE_CARD",
"trans_end_time": "2025-01-13 14:36:09",
"trans_no": "5021000010210602000003",
"trans_status": "2",
"trans_type": "1"
},
"response_code": "000",
"response_msg": "Success",
"topic": "ecrhub.pay.order"
}
2. Query Transaction
{
"app_id": "yourappid",
"timestamp": "1739327779762",
"biz_data": {
"merchant_order_no": "20241118210100"
},
"topic": "ecrhub.pay.query"
}
Response 响应
{
"app_id": "yourappid",
"biz_data": {
"confirm_on_terminal": false,
"expires": 0,
"merchant_order_no": "20241118210100",
"order_amount": "20.34",
"pay_method_id": "Visa",
"pay_scenario": "SWIPE_CARD",
"trans_end_time": "2025-01-13 14:36:09",
"trans_no": "5021000010210602000003",
"trans_status": "2",
"trans_type": "1"
},
"response_code": "000",
"response_msg": "Success",
"topic": "ecrhub.pay.query"
}
3. Close Transaction
{
"app_id": "yourappid",
"timestamp": "1739327779762",
"biz_data": {
"merchant_order_no": "20241118210100"
},
"topic": "ecrhub.pay.close"
}
Response
{
"app_id": "yourappid",
"biz_data": {
"merchant_order_no": "20241118210100"
},
"response_code": "000",
"response_msg": "",
"topic": "ecrhub.pay.close"
}
Debug Tools
- You can install the plug-in PIE SOCKET WebSocket Tester in Chorme browser, using this plug-in, you can simulate sending data to the WiseCashier.
- Enter the ip address obtained from WiseCashier and click CONNECT.

- When the connection is successful, enter the transaction message and click SEND MESSAGE.