V- Webhook notification (callbacks)
If you have set up a callback url in your dashboard, then you will receive a notification on each payment operation made from our services. You can receive failure or success notifications. Here is the information you will receive for our callback server :
Header parameter:
‘X-Signature’ => string
This signature is used to verify the notification really comes from us
Check the PHP code below to see how to verify the signature.
Content-Type: application/json
POST response variables:
FOR FUNDS
status
fund:created
Received when you create a funds
string
fund:success
Received when tx_hash is correct
string
fund:failed
Received when an error occurred.
string
fund:pending
Pending fund
string
devise
currency symbol of the funds = USDC or OSDT
string
amount
decimal amount of the funds
decimal
id
ID of the sale
integer
description
Describe the status
string
merchant_data
The data you send us with merchant_data parameter
string
failed_reason
The reason for the FAILED status
string
FOR PAYMENT
status
payment:pending
Received when payment is pending
string
payment:success
Received when payment is successful
string
payment:failed
Received when an error occurred.
string
devise
currency symbol of the payment
string
amount
decimal amount of the payment
float
id
ID of the sale
Integer
description
Describe the status
string
merchant_data
The data you send us with merchant_data parameter
string
failed_reason
The reason for the FAILED status
string
Response examples:
NB: Notification Callback will originate from the IP address 85.206.160.33
HERE IS AN EXAMPLE TO HANDLE CaLLBACK NOTIFICATIONS:
Last updated