- Last Updated: 2022-02-23 21:31:02
API Description
Request method: POST Callback URL: Set via thenotifyUrl parameter in the order creation request. Must be an HTTPS address. Ensure the callback URL is publicly accessible and does not contain query string parameters, otherwise the merchant may not receive callback notifications. Example: "https://pay.example.com/notify"
Notification Rules
After the user completes payment, the payment result and user information are sent to the merchant. The merchant must receive, process, and respond to the message. If the system receives a non-compliant response or no response within the timeout, the notification is considered failed. The system will retry notifications periodically to maximize delivery success, but cannot guarantee final delivery. (Retry intervals: 1m, 4m, 10m, 15m, 60m, 60m, 60m — total 3 hours 30 minutes)Notification Message
Payment result notifications are sent via POST to the merchant’s configured callback URL. Data is transmitted in JSON format in the request body.Callback Description
Callback messages are used to receive notifications for transaction events such as payments and transfers.Callback Message Format
- All callback messages use HTTP POST with
Content-Type: application/json. - Callback messages include a signature. The service provider must verify the signature of the request. Refer to the Asynchronous Notification Signature Verification documentation for details.
Notification Response
Notes:- When the merchant backend responds, the payment system records the response. Regardless of the transaction outcome, always respond in the following format upon successfully receiving a notification:
- If the merchant fails to receive the notification due to signature verification failure or other reasons, respond in the following format. If the system does not receive a
00000000response, it will keep retrying at the configured intervals until the maximum retry count is reached.