Payment callback notification
Webhook
When the payment order status changes to paid
or partially paid
or payment failed
, the merchant will receive a payment callback notification, and the merchant needs to update the local order status based on the callback notification.
Merchant can set the callback address when creating a payment order. When the payment result is confirmed, the system will send a successful payment notification to this URL.
The callback will be sent up to 6 times, respectively at 0 seconds, 15 seconds, 30 seconds, 3 minutes, 5 minutes, and 10 minutes after the recharge is confirmed.
When the merchant returns success
normally, the system will consider the callback successful and will not send subsequent callbacks.
Note: The merchant needs to verify the signature of the callback notification to ensure the security of the notification. The signing method of the callback is consistent with the normal request.
Request
- application/json
Body
required
0
- No1
- Yes0
- Paid1
- Pending Payment2
- Block Confirmation3
- Partially Paid4
- Payment Failed5
- Refunded0
- Contract payment1
- Scan code payment (wallet transfer)
Chain ID
This is the platform internal ID, not the chain ID on the chain or from the wallet, can be obtained from Get Chain List interface
Merchant orgnization ID, can be obtained from the management platform
Merchant order number
Payment order number
Product description
Possible values: [0
, 1
]
Whether the quoted currency is a fiat currency
Quoted currency symbol, must be in uppercase letters
Note: When the quoted currency is a fiat currency, this field is the international standard fiat currency symbol, such as USD, CNY, otherwise it is a digital currency symbol, such as USDT, TRX, ETH
Quoted amount
Note: This is the actual amount, must be a positive number, can be a decimal
Possible values: [0
, 1
, 2
, 3
, 4
, 5
]
Payment Order Status
Possible values: [0
, 1
]
Payment method
Order expected payment amount
Note: The value of this field is an integer, calculated by (actual_amount * 10^currency_decimals)
Order settlement amount
Note: The value of this field is an integer, calculated by (actual_amount * 10^currency_decimals)
Settlement currency symbol, based on the actual currency paid by the user
Order transaction hash
Sub-contract wallet address for receiving payments
Sender address
Order creation time
Arrival time
Note: Unix timestamp, unit: seconds
Responses
- 200
OK
- plain/text
- Schema
- Example
Schema
string
Possible values: [success
]
success