Overview
The Payment Options Gateway sends webhook notifications to the merchant’s configuredwebhook_url when transaction events occur.
These notifications provide transaction status, payment details, merchant information, and gateway response codes, allowing merchants to monitor payment outcomes and update their systems accordingly.
Webhook notifications may be generated for different payment methods and transaction types, including purchases, captures, refunds, and other supported payment operations.
Key Points
Webhook Notification
- Webhook notifications are sent to the
webhook_urlconfigured in the payment request. - The
successfield indicates whether the reported transaction event was successful. - The
gateway_responseobject provides the gateway response code, type, and message. - The
payment_detailsobject contains payment-related information, which may vary depending on the payment method. - The
merchant_detailsandtransaction_detailsobjects provide merchant and transaction identification information.
- A payment initiation response does not necessarily indicate that the transaction has been completed.
- Merchants should validate webhook notifications and verify the transaction status before updating their payment records.
- Webhook fields and values may vary depending on the payment method, transaction type, and processing outcome.
Sample Webhook Response
The following example illustrates a successful payment notification using PayNow. The response structure and payment-specific fields may differ for other transaction types and payment methods.Response Attributes
The example above represents a successful payment notification in the development environment using PayNow.Webhook fields and values may vary depending on the payment method, transaction type, and processing outcome.Merchants should validate incoming webhook notifications, confirm the transaction status, and handle duplicate notifications safely before fulfilling orders.