Webhook Authentication
Understand the authentication methods, configuration requirements, and supported events for Legacy and Enhanced webhooks.
Xplor Pay supports Legacy webhooks and Enhanced webhooks implementations. Each implementation has a different configuration process and authentication method.
Before implementing webhook authentication, identify which webhook implementation is configured for your integration.
Webhook types
The following table summarizes the differences between the two implementations.
Setup and management
Merchants can configure supported transaction alerts through Virtual Terminal (VT), using the existing legacy setup process.
Setup is handled internally by Xplor Pay.
Configuration level
Configured for individual merchant accounts through Virtual Terminal (VT), where applicable.
Can be enabled and customized for an individual merchant or an entire partner portfolio/HNK.
Authentication method
Existing legacy authentication. Digital-signature verification applies to Transaction Webhooks only.
Optional shared-secret authentication using the X-Webhook-Secret HTTP request header.
Supported events
Includes the existing Transaction, Onboarding, and Equipment webhooks.
ACH and card events listed in the Enhanced webhook events section below.
For legacy webhook registration and configuration details, see:
Legacy webhook authentication
Legacy webhooks use the existing authentication process.
Transaction webhooks include a signature field in the webhook payload. You can verify this digital signature to confirm that Xplor Pay sent the notification and that the payload was not modified during transmission.
You can verify the signature in either of the following ways:
Local verification (recommended): Verify the signature in your application using the public key associated with the terminal that processed the transaction.
Hosted Payment Page signature verification service: Send the complete webhook payload to the
/rest/v2/hpp/verifyendpoint to validate the signature.
Each terminal has a unique public key. Use the public key associated with the terminal that processed the transaction.
For implementation details, see Transaction Webhooks - Digital Signature.
Enhanced webhook authentication
Enhanced webhooks support optional shared-secret authentication. This lets you verify incoming webhook requests before processing them.
Xplor Pay handles the setup of enhanced webhooks internally. Supported events can be enabled and customized for an individual merchant or an entire partner portfolio/HNK.
When a secret is configured for your webhook configuration, Xplor Pay includes it in the X-Webhook-Secret HTTP request header. Your application can validate this header before processing a webhook event.
If no secret is configured, Xplor Pay omits the X-Webhook-Secret header.
Enhanced webhook events
The following ACH and card transaction events are available through Enhanced webhooks.
ACH events
For more information about ACH webhook notifications, see ACH Transaction Status Webhooks.
Chargeback
ach.status.chargeback
Returned
ach.status.returned
Rejected – Account Invalid
ach.status.rejectedaccountinvalid
Rejected – Authorization Declined
ach.status.rejectedauthorizationdeclined
Rejected – Voiding
ach.status.rejectedvoiding
Rejected – Voided
ach.status.rejectedvoided
Settled
ach.status.settled
Updated
ach.status.updated
Card events
For more information about card authorization notifications, see Card Authorization Result Webhooks.
Authorization Approved
card.authorization.approved
Authorization Declined
card.authorization.declined
Authorization Failed
card.authorization.failed
Configure a webhook secret
To enable shared-secret authentication:
Generate a secret for your webhook endpoint.
Store the secret securely in your application.
Share the secret with Xplor Pay Support team through the approved secure secret-sharing process.
Specify the webhook types and categories that require the secret.
Xplor Pay configures the secret for the relevant webhook configuration.
Verify that your application can read and validate the
X-Webhook-Secretheader.
A single webhook configuration can include multiple webhook types and categories. The secret is stored against that configuration.
Secret requirements
The secret must meet the following requirements:
Header name
X-Webhook-Secret
Format
Alphanumeric characters and symbols
Minimum length
1 character
Maximum length
4,000 characters
Visibility
The saved secret is not displayed again
Replacement
An existing secret can be replaced
Inspect the authentication header
When a secret is configured, Xplor Pay includes it in the X-Webhook-Secret HTTP request header. For example:
Validate the secret
If shared-secret authentication is configured for your webhook configuration, validate the X-Webhook-Secret header before processing a webhook event.
Check whether the
X-Webhook-Secretheader is present.If the header is present, compare its value with the secret stored securely in your application.
If the values do not match, reject the request without processing the event.
If validation succeeds, continue with your normal webhook processing and payload validation.
If no secret is configured for the webhook configuration, Xplor Pay does not include the X-Webhook-Secret header.
Replace a webhook secret
If you need to replace a secret, coordinate the change with Xplor Pay Support team.
Generate a new secret and store it securely.
Coordinate with Support team to replace the configured secret.
Update your application's expected secret as part of the coordinated change.
Verify that incoming webhook requests contain the new secret and that your application validates it successfully.
Troubleshooting
The X-Webhook-Secret header is missing
Confirm that a secret is configured for the relevant webhook configuration. If no secret is configured, Xplor Pay omits the header.
The received secret does not match
Confirm that your application uses the same secret configured for the webhook. Check for accidental whitespace or configuration errors.
Authentication fails after replacing the secret
Confirm that the secret stored in your application matches the configured secret. Coordinate with Xplor Pay Support team if needed.
The saved secret is no longer visible
The secret is not displayed after saving. Use your stored copy or coordinate a replacement with Support team.
Related topics
Last updated
Was this helpful?

