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:
status
invoice:created
Received when you create an sale in your dashboard
string
invoice:opened
Received when you create an sale in your dashboard and you redirected to paiement page
string
invoice:paid
Received when an sale has been fully paid
string
invoice:failed
Received when an error occurred.
string
invoice:awaiting_approval
The payment made by the customer has been successful
string
invoice:charge back
Chargeback
string
invoice:withheld
Withheld
string
devise
currency symbol. for now = USD
string
amount
decimal amount in USD
decimal
id
ID of the sale
integer
description
Describe the status
string
callbackJs on
The data you send us with callbackJson parameter
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