IV- 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 => json
status
string
invoice:created
CREATED
CREATED : The transaction was successfully created
string
invoice:opened
OPENED
OPENED : The transaction was successfully created and client redirected to paiement page
string
invoice:paid
PAID
After the payment settlement, we will pay the transaction by transferring the corresponding USDT crypto amount on POLYGON to your ERC20 wallet and we will change the status to invoice:paid
string
invoice:failed
FAILED
Received when an error occurred.
string
invoice:awaiting_approval
WAITING SETTLEMENT
The payment made by the customer is successful. In this case, you can already credit his balance
string
invoice:chargeback
CHARGEBACK
Chargeback
string
invoice:withheld
WITHHELD
Withheld
devise
string
currency symbol. for now = USD
amount
decimal
decimal amount in USD
id
integer
ID of the sale
description
string
Describe the status
callbackJson
string
The data you send us with callbackJson parameter
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