Webhooks inform your backend in real-time of status changes of each payment, allowing you to keep your order handling to be in sync with the status of the corresponding payment even if there are disruptions in the session on the client-side.
In the backend, Scalapay will always send you web hooks to inform your backend of the success/failure of any payment operation, ensuring no payment sessions are lost/dropped.
The webhooks are categorised by their status and are triggered in the following situations:
|Upon creation of the order
|Upon successful payment by the shopper on the Scalapay page
|Upon a successful capture request
|Upon a successful refund request
|If an authorized payment is not captured before the elapsing of the expiry period indicated by the orderExpiryMilliseconds field in the initial /orders request.