Webhooks inform your backend in real-time of the 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.
Webhooks
Scalapay will always send you webhooks to inform your backend of the success/failure of any payment operation, ensuring that no payment sessions are lost/dropped.
The webhooks are categorised by their status and are triggered in the following situations.
Status | Description |
---|---|
created | Upon creation of the order |
authorized | Upon successful payment by the shopper on the Scalapay page |
charged | Upon a successful capture request |
refunded | Upon a successful refund request |
expired | If an authorized payment is not captured before the elapsing of the expiry period indicated by the orderExpiryMilliseconds field in the initial /orders request. |