Who should use this guideThis guide is intended for merchants who:
- Use Payrails as a payment orchestrator
- Use Airwallex for card and wallet processing
- Have access to the Airwallex web app
Create a Airwallex integration in Payrails
- Log in to the Payrails portal.
- Go to Settings → Integrations.
- Select Add instance to create a new integration configuration.
- Select the workspaces where this integration should be available.
About workspacesWorkspaces determine where this integration is available. They let you isolate provider setups by region or business line, or share the same configuration across multiple workspaces.
Step 1: Choose the integration type
- Select Payment.
- Continue to the next step.
Step 2: Choose the provider
- Select Airwallex.
- Continue to the next step.

Step 3: Configure your Airwallex integration
Integration instance name
An integration instance is a specific payment provider setup in Payrails. You can create multiple instances for different regions, currencies, or business needs. Choose a clear, consistent name, as it is used in routing.In Payrails
- Enter an Instance name for your integration, for example
merchant_airwallex.

Payment methods
In Payrails- Select Card, Apple Pay, Google Pay or any combination.

Credentials
In Airwallex- Go to Settings → API Keys.
- Copy the Client ID and API key. You can create a restricted API key with access to payments.
Payrails sends requests to the Airwallex demo environment in test mode and to the live environment in live mode, so use the keys for the matching environment.

Webhooks or notifications
Payrails uses provider webhooks or notifications to receive asynchronous
payment status updates.
- Copy the Notification URL shown under Account configuration at the top of the integration form.
- Go to Settings → Webhooks and add a webhook.
- Paste the Payrails notification URL.
- Subscribe to these events:
payment_intent.requires_capture,payment_intent.succeededandpayment_intent.cancelledpayment_attempt.authorization_failedrefund.accepted,refund.succeededandrefund.failed
- Save the webhook and copy its secret key into the Webhook Secret Key field in Payrails.
Request fields for Airwallex
Send these fields in the authorize request for card payments, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to Airwallex when you include them. For more about meta fields, refer to Meta fields.Enable the integration
In Payrails- Select Save account to enable the integration.
- Confirm the integration shows as Enabled.
Next steps
- Run a test card payment in the Airwallex demo environment.
- Verify that:
- The payment appears in the Airwallex web app.
- The payment status updates correctly in Payrails.
- Once verified in test mode, repeat the setup in live mode.