🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 4, 2026

How to Take Airwallex Payments with Gravity Forms

GravityExtra
How to Take Airwallex Payments with Gravity Forms

Airwallex has become a popular choice for businesses that sell across borders: one account, many currencies, cards and the local payment methods customers in Asia, Australia, Europe and the Americas expect. If your WordPress site takes bookings, registrations, orders or donations through Gravity Forms, the next step is to let customers pay right after they fill in the form, in their currency, with the method they trust, and to have the entry update by itself.

This guide walks through how such a set-up works with Airwallex PaymentIntents and the Airwallex Hosted Payment Page, what to prepare in your Airwallex account, the mistakes that cause wrong amounts or entries stuck on “Processing”, and how to test everything in the sandbox before real money moves. We use the Gravity Forms Airwallex Payment Premium Add-on as the example, but the checklist is useful whichever tool you choose.

Why a hosted payment page is the simple choice

Airwallex offers several ways to take a payment online: embedded card fields, a drop-in element on your own page, and the hosted payment page. For a form on a WordPress site, the hosted page is the most straightforward. Your server creates a PaymentIntent for a given amount, the customer is sent to the Airwallex page, and Airwallex takes care of everything that happens there: the card form, 3D Secure checks, digital wallets and local payment methods, in the customer’s language. Your server never sees a card number or security code, so there is no payment form to build, style or keep up to date.

The trade-off is that the customer leaves your site for a moment. In practice that is familiar to most buyers, and it lets Airwallex show the methods that make sense for each customer, such as a QR code wallet for a visitor in Hong Kong or a bank method for a visitor in the Netherlands, without any work on your side.

What to prepare in Airwallex

Everything is self-serve in the Airwallex web app:

  • A sandbox account and its API keys (client ID and API key) for test payments.
  • The production client ID and API key, for real payments later, from Settings, Developer, API keys.
  • The payment methods you want to accept, switched on in your Airwallex payments settings.
  • A webhook for the payment intent and refund events, pointing to your site’s webhook URL, and its secret.

Your site also needs HTTPS with a valid certificate, so the payment page can send customers back safely and webhooks reach you.

How the payment flow works

  • The customer fills in the form. Gravity Forms calculates the total on the server from your product prices and the quantities.
  • The add-on saves the entry as Processing and creates a PaymentIntent with Airwallex: the total with the right decimals for the currency, a unique request id and order reference for the entry, your statement descriptor and the customer’s name, email and address.
  • A short hand-off page loads Airwallex.js and opens the hosted payment page with the payment methods you chose. The customer pays and is sent back to your site.
  • The add-on reads the PaymentIntent from Airwallex, checks the amount, currency and order reference against the entry and marks it paid, authorised, failed or cancelled. Your confirmation is shown, and notifications you held back are sent.
A pottery workshop booking form with name, email, billing address, two products and the total, and a Continue to payment button
The form your customer fills in. Payment details are entered on the Airwallex page, not here.

Three mistakes that cause most payment problems

1. Trusting the amount from the browser

A total shown on the page can be changed in the browser by anyone who opens the developer tools. A safe integration always sends the amount Gravity Forms calculates on the server, never a number posted by the browser. The add-on does exactly that, and it also compares the amount and currency Airwallex reports with the entry. A payment that does not match is never marked as paid; the entry gets a clear note instead.

2. Getting the decimals wrong

Currencies do not all have cents. The Japanese yen has none, a few currencies have three decimals, most have two. Sending 30800.00 where the API expects 30800, or rounding a total that has too many decimals, means the customer pays something different from the form, or the payment is refused. The add-on uses the right number of decimals for each currency and refuses a total that cannot be charged exactly, before anything is sent.

3. Believing the return page

Landing on a “success” page is not proof of payment. Links can be opened by hand, and some customers close the tab before they come back. The add-on reads the PaymentIntent from Airwallex itself on return, again for every webhook, and every five minutes for payments still waiting. If a method takes a moment to confirm, the customer sees a short “Confirming your payment” message that checks again by itself.

Webhooks you can trust

Webhooks let your site react within seconds when a payment succeeds, needs capture, is cancelled or refunded. They also need care, because anyone can send a request to a public address. Airwallex signs every webhook: the x-signature header is an HMAC-SHA256 of the x-timestamp header and the raw body, made with the secret of your webhook. The add-on checks the signature and the age of the timestamp, and it treats the webhook only as a signal: it reads the PaymentIntent again before anything changes, so a replayed webhook can never complete a payment twice.

Airwallex settings: Demo or Production environment, the client ID and API key for each, automatic or manual card capture, statement descriptor, default country, currency line, the payment methods the account offers and the connected status with the masked client ID
Settings: choose Demo or Production, enter the API keys, pick card capture and the payment methods to offer.

Payment methods and currencies

The settings page lists the payment methods your Airwallex account has switched on for your form currency, read from Airwallex itself. Tick the ones you want to offer, in the order you prefer, or leave them all unticked and let Airwallex show every eligible method. Cards always work with 3D Secure when the customer’s bank asks for it. Digital wallets and local methods appear when they suit the currency and the customer’s country.

Each payment is charged in the currency of the form. A studio that sells workshops in Australian dollars and an online course in US dollars can run both forms on one site; each payment arrives in your Airwallex account in its own currency.

Authorise now, capture later

Some businesses only want to hold the money until they confirm a booking or ship an order. Switch card capture to Manual: the card is authorised on the payment page and the entry shows Authorized. When you are ready, capture the full amount or less from the entry, or cancel the authorisation to release the hold. A Gravity Forms notification can tell your team that an authorisation is waiting.

Refunds from the entry screen

Customers change plans. When a booking is cancelled you want to refund it from the place where you see the booking, not by searching a separate dashboard. Each paid entry has an Airwallex box with the payment status, the PaymentIntent ID, the order reference, the payment method and the amounts. Type the amount and press Refund for a full or partial refund. Each refund form can only be sent once, refunds that Airwallex later reports as failed are taken back off the entry, and refunds you make in the Airwallex web app appear on the entry from their webhook.

An entry paid through Airwallex: the Airwallex box with the status, payment intent, order reference, payment method, card with 3D Secure version, amounts, the refund form and Refresh status
The entry after payment: status, Airwallex references, capture, refund and Refresh status.

Notifications only after payment

A booking confirmation should not go out for a payment that was declined. Tick Send form notifications only after the customer has paid in the feed, and the form’s normal notifications wait until the payment is made or authorised, then go out once. On top of that, Gravity Forms notification events for completed, authorised, refunded, failed and cancelled payments let you write a message for each step.

Test in the sandbox before going live

  • Keep the add-on on the Demo environment and save your sandbox client ID and API key. The settings page confirms the connection and lists your payment methods.
  • Pay a test booking with an Airwallex test card and check that the entry is Paid and the right e-mails went out.
  • Try a test card that asks for 3D Secure, a declined card and a cancelled payment page, and check that the entries are Paid, Failed and Cancelled and that no booking e-mail was sent for the last two.
  • Switch to manual capture for one test, capture part of it from the entry, then refund part of a payment.
  • Add the webhook in your sandbox account, paste its secret and look for “Last verified webhook” on the settings page.
  • Switch to Production, save the production keys and webhook secret, and make one small real payment.

A worked example: a pottery workshop in Sydney

Picture a small ceramics studio that sells wheel-throwing workshops. The booking form asks for the guest’s name, email and billing address, a workshop place at 289.95 Australian dollars and an optional take-home clay kit at 44.05. A guest books one place and one kit. Gravity Forms adds it up on the server: 334.00 AUD. The add-on creates a PaymentIntent for 334 AUD with the order reference of the entry and sends the guest to the Airwallex page, which shows cards, Apple Pay, Google Pay and WeChat Pay because those are switched on for Australian dollars.

The guest pays by card and confirms the payment in the banking app when asked. Back on the studio’s site, the normal confirmation appears: “Thank you! Your workshop place is booked and paid.” At the same moment the booking e-mail to the studio and the receipt to the guest go out, once each. In the entry, the Airwallex box shows the PaymentIntent, the card brand and last four digits with the 3D Secure version, and the amount.

A week later the guest asks to drop the clay kit. The studio opens the entry, types 44.05 and presses Refund. The entry becomes Partially Refunded, the refund e-mail goes to the guest and the note on the entry records the Airwallex refund. When Airwallex settles the refund, a webhook adds a short confirmation note. Nobody had to copy amounts between systems, and nobody had to guess whether a payment really went through.

Security habits worth keeping

  • Store API keys only in the add-on settings, where they are encrypted, never in a page, a notification or a shared document.
  • Use separate sandbox and production keys, and keep the sandbox for every change you test later.
  • Always paste the webhook secret; without it, webhooks are refused.
  • Give capture and refund rights only to staff who need them: the entry actions need the Gravity Forms edit entries capability.
  • Look at entries marked Failed with an amount note: they are the ones worth checking in your Airwallex account.

Who this set-up suits

It suits businesses that sell to customers in several countries and want one Airwallex account behind their forms: classes and workshops, services booked online, event tickets, deposits and donations, in the currencies their customers use. It takes one-off payments; recurring billing is not part of this version. If you need several payment providers on one site, Gravity Forms runs each provider through its own feed with conditional logic.

Get started

The Airwallex setup guide covers every setting step by step. The add-on is available with a 1-site licence for $49, a 5-site licence for $69 or an Unlimited licence for $199 per year, with updates and support included. See the Gravity Forms Airwallex Payment Premium Add-on page for the full feature list.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr