Implement background validation
Important: We strongly recommend that you implement background validation as part of your Hosted Payment Page integration. However, you can’t implement background validation if a customer uses bank account details as a payment method.
Background validation is a webhook-based mechanism that confirms whether our gateway processed a card payment. When you implement background validation, our gateway sends an HTTP POST request to a URL called the validation URL.
Our gateway sends a notification each time a customer submits their card details on the Hosted Payment Page, whether the payment is successful or unsuccessful. The notification is useful if the connection fails between our gateway and the merchant’s website because the notification confirms whether we received the payment.
Before you begin
You must have credentials for the Self-Care Portal, which is a self-serve portal that you use to configure terminal settings for your merchant. Use this portal to provide us with the validation URL.
If you don’t have credentials for the Self-Care Portal, contact our Integrations Team at [email protected].
Integration steps
- Provide us with the validation URL.
- Handle the webhook notification that contains the transaction response.
Step 1. Provide us with the validation URL
Provide us with the validation URL in the Self-Care Portal to inform us where to send the webhook notification.
To provide us with the URL, complete the following steps:
- Sign in to the Self-Care Portal:
- From the side menu, select Settings, and then select Terminal.
- Select the Enable Validation checkbox.
- In the Validation URL field, enter your validation URL.
- Select UPDATE SETTINGS.
Note: Enter the validation URL in both the test and the production environments to ensure that you don’t have issues when you complete your testing phase and start to run live transactions.
Step 2. Handle the webhook notification
Each time a customer submits their card details on the Hosted Payment Page, our gateway sends an HTTP POST request to your validation URL. Your server must return the text OK in the response body to confirm that it received the notification.
If our gateway doesn’t receive an OK response, it retries the notification with exponential backoff over a 96-hour period. If all retries fail, our gateway sets the transaction to expired and sends an email to the merchant.
Each notification contains the following parameters: