Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Comparison area
Legacy webhooks
Enhanced webhooks

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/verify endpoint to validate the signature.

Each terminal has a unique public key. Use the public key associated with the terminal that processed the transaction.

Signature verification applies to Transaction Webhooks only. Other legacy webhooks do not include signature validation.

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.

Event
Event identifier

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.

Event
Event identifier

Authorization Approved

card.authorization.approved

Authorization Declined

card.authorization.declined

Authorization Failed

card.authorization.failed

Configure a webhook secret

To enable shared-secret authentication:

  1. Generate a secret for your webhook endpoint.

  2. Store the secret securely in your application.

  3. Share the secret with Xplor Pay Support team through the approved secure secret-sharing process.

  4. Specify the webhook types and categories that require the secret.

  5. Xplor Pay configures the secret for the relevant webhook configuration.

  6. Verify that your application can read and validate the X-Webhook-Secret header.

A single webhook configuration can include multiple webhook types and categories. The secret is stored against that configuration.

Do not send the secret through ordinary email, open chat messages, or other unapproved channels.

Secret requirements

The secret must meet the following requirements:

Requirement
Details

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.

  1. Check whether the X-Webhook-Secret header is present.

  2. If the header is present, compare its value with the secret stored securely in your application.

  3. If the values do not match, reject the request without processing the event.

  4. 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.

  1. Generate a new secret and store it securely.

  2. Coordinate with Support team to replace the configured secret.

  3. Update your application's expected secret as part of the coordinated change.

  4. Verify that incoming webhook requests contain the new secret and that your application validates it successfully.

Coordinate the replacement with the Support team to avoid authentication failures.

Troubleshooting

Issue
What to check

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.

Last updated

Was this helpful?