Customize the Android SDK
When a customer initiates a payment with the Android SDK, their payment information is collected via 3 customizable forms:
- Payment Form: prompts users for their payment card details
- Billing Form: prompts users for their billing information
- Country Picker: prompts the user to select a country
The styling of these forms can be customized through the use of the PaymentDetailsStyle
, BillingAddressDetailsStyle
and CountryPickerStyle
objects, which are wrapped in the PaymentFormStyle
wrapper.
1public data class PaymentFormStyle(2 public var paymentDetailsStyle: PaymentDetailsStyle = PaymentDetailsStyle(),3 public var billingFormStyle: BillingFormStyle = BillingFormStyle()4)5
6public data class BillingFormStyle(7 public var billingAddressDetailsStyle: BillingAddressDetailsStyle = BillingAddressDetailsStyle(),8 public var countryPickerStyle: CountryPickerStyle = DefaultCountryPickerStyle.light()9)
You can choose between three different options for customization, depending on how much control you need over the forms' UI design. In order of increasing complexity these are:
Default form styling
Use our default Android SDK option to quickly and easily display payment and billing forms, and add basic font and color customization.
Themed form styling
Use our themed option to apply a custom theme to the components displayed, for greater control over the look of your payment forms.
Custom form styling
Use our fully custom option to build and define your own components to display across the payment and billing forms.