Skip to content
Gaurav TiwariDocs

Set Up Airwallex Payments (Beta)

Updated November 23, 2026

Selling in several currencies often means a processor that converts every sale. If you already hold those currencies in Airwallex, you may want store payments to land there too.

The Airwallex module adds Airwallex Beta (Stackless) to WooCommerce with your own API key. Buyers pay on Airwallex’s hosted checkout by card, wallet or local method, and refunds and disputes sync back. You stay the seller, so tax stays yours.

This gateway is in beta, so run a test payment before you take live ones. It uses Airwallex’s Checkout Session API, which Airwallex also has in beta, and it hasn’t taken a sandbox or real payment.

What Each Edition Includes

FeatureStackless Lite for WooCommerceStackless for WooCommerce
One-time payments, refunds and disputesYesYes
Adding a card in My AccountYes, but nothing in Lite charges itYes, for renewals
Subscriptions, free trials and automatic renewalsNoYes, with Subscriptions on

Before You Start

  • An Airwallex account that has Checkout Sessions available. Ask Airwallex if the connection check says it doesn’t.
  • A sandbox account for testing.
  • Automatic Currency Conversion off under Payments → Settings in Airwallex. A converted payment can’t match its order and is held for review.
  • A public HTTPS site for the webhook, and working WordPress scheduled actions.

Turn On the Gateway

  1. Switch on the Airwallex (beta) module under Stackless → Dashboard.
  2. Go to WooCommerce → Settings → Payments → Airwallex Beta (Stackless).
  3. Fill in the keys below, tick Enable (Accept payments with Airwallex (beta)) and save.

Airwallex stays off the checkout until the selected mode has a client ID, API key and account ID, and the currency is one it takes.

Create the API Key

  1. In Airwallex, open Developer → API keys and create a scoped key with Payment Acceptance (write), Checkout Sessions (write) and Payment Disputes (read).
  2. Copy the account ID from Settings → Account details.
  3. Fill in Client ID, API key and Account ID under Live account or Sandbox account. Tick Several accounts if the key covers more than one account.
  4. Save. Stackless checks the key, permissions and account. Test mode is on by default and uses the sandbox.

To keep credentials out of the database, define them in wp-config.php. Use TEST in place of LIVE for the sandbox. A defined value wins and hides its field:

define('STACKLESS_AIRWALLEX_LIVE_CLIENT_ID', '...');
define('STACKLESS_AIRWALLEX_LIVE_API_KEY', '...');
define('STACKLESS_AIRWALLEX_LIVE_ACCOUNT_ID', '...');
define('STACKLESS_AIRWALLEX_LIVE_WEBHOOK_SECRET', '...');

Connect the Webhook

Stackless doesn’t create this webhook. Add one in the live account and one in the sandbox, following Airwallex’s webhook guide:

  1. In Developer → Webhooks, add this URL with API version 2026-08-21: https://yoursite.com/wp-json/stackless/v1/airwallex/webhook
  2. Select the events listed below.
  3. Copy each webhook’s secret into Webhook secret for the same account and save.
checkout_session.completed
checkout_session.cancelled
payment_intent.succeeded
payment_intent.pending
payment_intent.pending_review
payment_intent.payment_failed
payment_intent.cancelled
payment_consent.disabled
refund.received
refund.accepted
refund.settled
refund.failed
payment_dispute.requires_response
payment_dispute.challenged
payment_dispute.accepted
payment_dispute.expired
payment_dispute.pending_closure
payment_dispute.pending_decision
payment_dispute.won
payment_dispute.lost
payment_dispute.reversed
  • Without the secret, every webhook is refused and saving shows an error.
  • Test events sent from Airwallex use another secret, so your site refuses them. Test with a sandbox payment instead.
  • Stackless reads the payment, refund or dispute from Airwallex before it changes an order, and ignores payments other sites took on the same account.

Run a Test Payment

  1. Keep Test mode on, with the sandbox credentials and webhook secret saved.
  2. Place an order with an Airwallex test card and check that it turns paid.
  3. Refund it from WooCommerce. Pay another order, refund that one in Airwallex and check that the refund appears on the order.
  4. If you sell subscriptions, start one and use Process renewal now on the subscription to check that the saved card is charged.
  5. Untick Test mode, then make one small real payment and refund it.

While Test mode is on, renewals on live cards wait and are checked again for about 24 days. Don’t leave it on in a live store.

Renewal charges don’t run on a site Stackless treats as a copy of your live store, so test them on a separate install with no real customers. Don’t confirm a copy that holds real customers as the live store just to test: its saved cards would be charged.

What Buyers See

  • The default title is Card and more payment methods, with “You’ll finish paying on Airwallex’s secure payment page.” Both are editable.
  • One-time payments show the methods your Airwallex account offers. Payments that save a card show cards only.
  • Back on your site, Stackless reads the payment from Airwallex before it marks the order paid.
  • A payment still processing, such as a voucher or transfer, puts the order on hold until Airwallex confirms it.
  • Placing the same order again reuses the open checkout. If an earlier payment can’t be checked, the buyer is asked to wait and not pay another way.

Subscriptions and Renewals

These need Stackless for WooCommerce. Stackless runs the schedule, so no subscription is created at Airwallex.

  • A subscription that renews automatically saves the card. A free trial saves it without a charge.
  • If a paid first order leaves no card the store may charge, the order note says renewals need a new payment method.
  • A renewal without a clear answer stays pending and is checked again. No second charge starts meanwhile.
  • A declined renewal, or one the bank wants confirmed, fails with Airwallex’s reason. See Renewals, Failed Payments and Retries.
  • Customers can add a card in My Account → Payment methods and pick it for a subscription.
  • When a customer removes a saved card, the live store disables it at Airwallex too, which can’t be undone.

Refunds and Disputes

  • Refund in full or in part from the WooCommerce order screen.
  • Refunds made in Airwallex are recorded on the order once. Items aren’t restocked.
  • If Airwallex doesn’t confirm a refund, don’t refund another way. Try the same amount again: it isn’t sent twice.
  • A recorded refund that later fails gets a note saying the customer didn’t get the money back.
  • A chargeback puts a Processing or Completed order on hold, once for each dispute. Requests for information and later stages add a note. Release the order yourself.

Payments to Review

  • A second payment on a paid order gets a note with its payment id and doesn’t complete the order again.
  • An unpaid order goes on hold when its payment has the wrong amount or currency, was already refunded, or arrived after the buyer switched to another method.
  • A payment for an order that’s no longer waiting, such as a cancelled one, gets a note and doesn’t complete it.
  • In the paid edition, Billing Health lists payments to review, setup problems, charges with no result for over two days and failed webhooks.

Currencies

Airwallex is hidden for currencies outside the list it collects, and tells Currency-Aware Payment Gateways that list. What each payment method accepts also depends on your Airwallex account.

What Data Is Sent

  • With a payment: the total, currency, order number, return addresses on your site, the language, and the buyer’s name, email and country.
  • When a card is saved: an Airwallex customer with the buyer’s name and email.
  • With a refund: the amount, references and the reason you typed.
  • Kept on your site: Airwallex’s references and, for saved cards, the brand, last four digits and expiry. Card numbers go straight to Airwallex.

Stackless adds suggested Airwallex wording to the WordPress privacy policy guide.

Limits

  • The gateway is in beta and hasn’t taken a sandbox or real payment. Test a payment, a refund and any renewal on your own account first.
  • Saved Airwallex cards pay renewals and plan switches only. They aren’t offered at checkout or for one-click offers.
  • Airwallex can’t be duplicated for a second account.
  • Saved cards belong to the Airwallex account and mode they were saved in.
  • A copy of your store doesn’t charge saved cards, but it still sends refunds and takes real checkout payments when it has live credentials. Keep only sandbox credentials on copies.
  • Debug log writes to WooCommerce → Status → Logs (stackless-airwallex_gateway). Keys are never logged.

For Developers

Copy templates/airwallex_gateway/payment-fields.php to yourtheme/stackless/airwallex_gateway/payment-fields.php to change the checkout note.

Share

Was this helpful?

Still stuck? Open a support ticket