Customization options
Airwallex.js supports visual customization of Elements using various parameters.
Global options
You can provide global customization options such as locale
in the init()
function to extend it to all Elements.
locale
Allows you to globally configure localization for Airwallex.js Elements. The specified locale will be applied to both the Element UI strings and error messages. For supported locales, see the locale JS property.
fonts
Only applies to Payment Elements.
You can provide the fonts
option in the init()
function and extend it to all Payments Elements. src
, family
and weight
properties may be specified.
Customizing Payment Elements
The customization options listed below apply only to Payment Elements. For other Elements, please contact your Airwallex Account Manager to enable customization in line with your business requirements.
Element | Customization options |
---|---|
Drop-in Element | theme , style , appearance objects. See Drop-in Element customization.See also: Hosted Payment Page customization |
Card Element | style , appearance objects. See Card Element customization.
|
Split Card Element | style , appearance objects. See Split Card Element customization.
|
Google Pay Element | style , appearance , buttonType , buttonColor , buttonSizeMode objects. See Google Pay Element customization.
|
Apple Pay Element | style , appearance , buttonType , buttonColor objects. See Apple Pay Element customization.
|