Once a payment has been made successfully, we call a webhook on your side to let you know that the transaction is completed. The webhook contains the following info:
{
"id": "664369c938b3ca001a3cd44f" // our own transaction id,
"amount": 123.45,
"currency": "USDC",
"external_id": "123456789", // The order id that you passed in the widget parameters (oid)
}
Webhook setup
For us to setup the webhook, we need from you the webhook URL that we must call, as well as 2 keys (authentication and signature) that we will exchange.
The authentication key will be used in the "Authentication" header.
The signature key will allow to compute a HMAC on your side. This HMAC will have to be the same as the "Mtp-Signature" header parameters. The HMAC has to be computed on the full request body. JS example: