Customization options
Airwallex.js supports visual customization of Elements using various parameters. Note that the customization options described in this page only apply to Payment Elements.
Element | Customization options |
---|---|
All Payment Elements | See Global 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.
|
Global options
You can provide global customization options such as fonts
and locale
in the init()
function to extend it to all Payment Elements.
locale
Allows you to configure the Element to display localized text of the payment fields based on the locale set in init()
. For supported locales, see the locale JS property.
JavaScript
fonts
You can provide the fonts
option in the init()
function when you initialize Airwallex.js. You can specify font src
, family
and weight
properties.
JavaScript