Configure the SafePay webhook so that XPay receives the result of each production payment attempt.
Configure the webhook endpoint
- Sign in to the SafePay dashboard.
- Open the Developer tab.
- Select Add an endpoint.
- Enter the following webhook URL and create the endpoint:
plain text
https://xstak-pay.xstak.com/public/v1/safepay/webhookConfigure payment events
Open the three-dot menu for the newly created endpoint and select Edit.
Enable the following event types:
payment.succeededpayment.failed
Save the changes.
Confirm the configuration
Before going live, confirm that:
- The XPay webhook URL is configured correctly.
- Both required payment event types are enabled.
- The webhook endpoint is active in the SafePay dashboard.