Configurations
Get updates on transaction status
Last updated
Get updates on transaction status
Last updated
The configuration of the CALLBACK service is very simple since it can be done through the LocalPayment user interface Stage and/or Production environment.
Once you have entered the user interface, click on: Settings → Edit Client → Notifications.
In the "Notifications" section, select Callbacks tab and enter a URL. On the reported URL, you will receive a POST request each time a transaction reaches a final status (described above).
In addition to the notification URL, we will configure and share with you a secret key that will be used to sign the request via HMAC-SHA256. The resulting signature will be sent in the X-Signature header like shown in the image:
When you sign the HMAC-SHA256 request, it is recommended that you compress the json request to remove white space. Also avoid using any json formatter that can modify the original format of property values.
Remember that you are able to setup and change your own Callbacks - Webhooks by accessing with an ADMIN user to the application.
Follow our tutorial to configure the callback url from our frontend:
The general structure for this request is:
{
"transactionType": "Payin",
"data": {
...
}
}
The "data" node content of the Callback is the same as the Body structure of the Check Payment
Remember that you can also check the status of each transaction using the Check Status endpoint. The request payload you will receive will be the same as the one sent by the CALLBACK push notification service.