Hosted Payment Page
The Hosted Payment Page integration option redirects your shoppers to a secure, pre-built payment page hosted by Airwallex. It lets you accept multiple payment methods with a single integration. You do not have to worry about collecting or storing shopper’s payment details as Airwallex fully handles the payment processing thereby significantly reducing your PCI-DSS compliance costs.
Key features include:
- Reduces friction for card payments with input validation, styling and error handling.
- Responsive design to fit seamlessly on any screen size
- Custom styling rules so you can match the look and feel of your site
- Reduced PCI-DSS compliance handling costs – a PCI-DSS SAQ A is sufficient
Checkout flow
If you want to offer a one-off or single payment experience where the shopper is present and active on your shop site, see Guest user checkout.
If you want to save shopper's payment details for future payments, see Registered user checkout.
Supported features
You can use the following features in your Hosted Payment Page integration.
Style and appearance customization
Localization
3D Secure authentication
Billing details collection
Device fingerprinting
Payments for platforms
Fraud protection
FAQ
What payment methods are supported in a Hosted Payment Page integration?
By default, all payment methods activated on your Airwallex merchant account are available to the shopper. To retrieve the list of payment methods supported for your account, call Get available payment method types API.
The payment methods displayed on the payment page will be filtered based on the following fields:
For details on which currencies and countries are supported for each payment method, including integration information, refer to the Payment Methods section.
By default, the order of payment methods on the payment page will be based on the order configured in Get available payment method types API, with applepay, googlepay and paypal displayed at the top if they're supported.
If you want to further restrict the payment methods offered to your shoppers, you can pass the methods[] JS field in redirectToCheckout(). The payment methods will appear in the order specified in this field.
Can I offer Apple Pay via Hosted Payment Page?
Yes, Apple Pay is supported via Hosted Payment Page integration. Ensure that your merchant account is enabled for Apple Pay on the Airwallex web app > Payments > Settings. For more information, see Enable Apple Pay. See applePayRequestOptions JS for more customization options.
1import { redirectToCheckout } from '@airwallex/components-sdk';23redirectToCheckout({4 // ... other options5 applePayRequestOptions: {6 buttonType: 'buy', // Indicate the type of button you want displayed on your payments form. Like 'buy'7 buttonColor: 'white-with-line', // Indicate the color of the button. Default value is 'black'8 countryCode: 'HK', // The merchant's two-letter ISO 3166 country code. Like 'HK'9 totalPriceLabel: 'COMPANY, INC.', // Provide a business name for the label field.10});
Can I offer Google Pay via Hosted Payment Page?
Yes, Google Pay is supported via Hosted Payment Page integration. Ensure that your merchant account is enabled for Google Pay on the Airwallex web app > Payments > Settings. For more information, see Enable Google Pay.
See googlePayRequestOptions JS for more customization options.
1const { redirectToCheckout } from "@airwallex/components-sdk";23redirectToCheckout({4 // ... other options5 googlePayRequestOptions: {6 countryCode: "US",7 merchantInfo: {8merchantName: "Example Merchant",9 },10 emailRequired: true,11 billingAddressRequired: true,12 buttonType: "book",13 buttonColor: "black",14 buttonSizeMode: "fill",1516});
Development resources
-
@airwallex/components-sdkNPM package -
Airwallex.js reference JS
-
Sample SDKs in various frontend and backend languages
-
Test cards and codesandbox to test your integration



