Webhooks
You can use webhooks to get updates on transactions and orders faster.
To start, go to the Partner Panel - Settings - Callback URLs
Add the Webhook URL in the appropriate field for both SANDBOX
and PRODUCTION
environments, where you can receive notifications.
Please try to use different URLs for different environments.
Once you add the Webhook URL, you'll start receiving notifications related to:
Transactions
-"event_type": "CHECKOUT_STATUS_CHANGED"
Orders
-"event_type": "ORDER_STATUS_CHANGED"
If you as a partner process your users' payments yourself, skip the
Transactions
section and go to theOrders
section.
Transactions
(Only for partners using our payment system)
"event_type": "CHECKOUT_STATUS_CHANGED"
- CREATED - when payment URL created and provided to Partner in POST /orders (Click to open) responses
- SUCCESS - when the user's payment has been successfully captured
- FAILED - when an error occurred in the user's payment and the user was redirected to a error page
💻 Example:
Code
One transaction webhook can have information about multiple orders.
Code
Orders
(For all partners)
"event_type": "ORDER_STATUS_CHANGED"
- CREATED - when the user's order is successfully paid and the order is considered such that it can be registered with the national provider.
- PENDING - when the user's order is successfully paid and the order has started authorization with the national provider.
- ACTIVE - when the user's order is successfully registered with the national provider.
💻 Example:
Code
If there were multiple orders in a transaction, the Partner will receive multiple webhooks. One order webhook provides information about only one order.