Search...
APIJSLog inGet started
Airwallex logo
Home
Platform APIs
Payments
Transactional FX
Payouts
Issuing
Back to home
OverviewChoose your payments solutionGet started with payments
Supported currencies
Online payments
Invoice integrations
Payment methods
Payment Methods OverviewGlobal
CardsAirwallex Pay
Apple Pay
Enable Apple Pay via web application
Enable Apple Pay using APIHosted Payment PageApple Pay Element
Drop-in ElementNative APIMobile SDKUse your own certificateEnable express checkoutTest your integration
Google Pay™
Klarna
Afterpay / Clearpay
PayPal
Skrill
EU & UK
APAC
NORTH AMERICA & LATAM
Tax filing

Apple Pay Element

The Apple Pay Element allows you to offer Apple Pay checkout option on your website. Shoppers can click the Apple Pay button and pay using Touch ID or Face ID.

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 add the following features to your Embedded Element integration.

Style and appearance customization

You can use style, appearance, buttonType and buttonColor objects in createElement() to customize the Apple Pay Element.

style

Provide base styling for the iframe using CSS properties.

JavaScript

appearance

Fine tune individual Elements and states by specifying custom CSS properties using rules. The following classes and pseudo-classes can be styled using rules.

  • .ApplePayButton: CSSProperties
  • .ApplePayButton:hover: CSSProperties
JavaScript

buttonType

The buttonType object supports the following values: add-money | book | buy | check-out | continue | contribute | donate | order | pay | plain | reload | rent | set-up | subscribe | support | tip | top-up

JavaScript

buttonColor

The buttonColor object supports the following values: black | white | white-outline

JavaScript

Device fingerprinting

Device fingerprinting uniquely tracks and identifies devices used for transacting on your shopping site, increasing your protection from fraud. Airwallex.js automatically handles device fingerprinting, so no additional integration is needed.

FAQ

What are the common error scenarios with Embedded Elements integration?

Some common error scenarios include :

ErrorNext steps
Airwallex is not definedCheck if you have initialized Airwallex (Step 2) before using Airwallex functions. If you are using CDN, check if you have changed the bundle version from x.x.x to the latest version in the package.json file. For example, https://checkout.airwallex.com/assets/elements.bundle.min.js is invalid
Access denied, authentication failedCheck if you have replaced your intent id and client_secret in createElement() and optionally confirm().
The PaymentIntent with ID int_xxxxxxxxx cannot be foundCheck if the environment you initialized Airwallex in, for example, demo or prod, matches the environment you retrieved your intent id and client_secret from. In other words, if you ran init in the demo environment, you must also create your PaymentIntent in the demo environment.
On this page
  • Checkout flow
  • Supported features
  • FAQ