Skip to content

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 default payment form

The default billing form

The default country picker

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.

1
public data class PaymentFormStyle(
2
public var paymentDetailsStyle: PaymentDetailsStyle = PaymentDetailsStyle(),
3
public var billingFormStyle: BillingFormStyle = BillingFormStyle()
4
)
5
6
public 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: