Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val amount: BigDecimal

Payment amount. This is the order amount you would like to charge your customer

Link copied to clipboard
abstract val clientSecret: String?

The client secret for this session. Used for authenticating API requests.

Link copied to clipboard
abstract val countryCode: String

Country code

Link copied to clipboard
abstract val currency: String

Amount currency

Link copied to clipboard
abstract val customerId: String?

The Customer who is paying for this PaymentIntent. This field is not required if the Customer is unknown (guest checkout). But it is required if the PaymentIntent is created for recurring payment.

Link copied to clipboard

Google Pay options

Link copied to clipboard

Control whether saved cards are displayed on the list screen

Link copied to clipboard

Whether or not billing information is required for card payments.

Link copied to clipboard
abstract val isEmailRequired: Boolean

Whether or not email is required for card payments

Link copied to clipboard

Indicates whether this session is configured for Express Checkout. Returns true when the session uses a PaymentIntentProvider for lazy payment intent creation.

Link copied to clipboard
abstract val paymentMethods: List<String>?

An array of payment method type names to limit the payment methods displayed on the list screen. Only available ones from your Airwallex account will be applied, any other ones will be ignored. Also the order of payment method list will follow the order of this array. API reference: https://www.airwallex.com/docs/api#/Payment_Acceptance/Config/_api_v1_pa_config_payment_method_types/get JSON Object field: items.name

Link copied to clipboard

Billing contact fields the SDK should collect (and validate) on the new-card payment screen. null means "derive from the legacy isBillingInformationRequired / isEmailRequired flags" so unmodified integrations keep current behavior. An empty set hides the entire billing section.

Link copied to clipboard

Effective set of billing contact fields, resolving null to the legacy boolean-derived defaults that match Android's pre-existing UI:

Link copied to clipboard
abstract val returnUrl: String?

The URL to redirect your customer back to after they authenticate or cancel their payment on the PaymentMethod’s app or site. If you’d prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.

Link copied to clipboard
abstract val shipping: Shipping?

Shipping information

Functions

Link copied to clipboard

Binds this session's PaymentIntentProvider to an Activity lifecycle. This ensures the provider is cleaned up when the Activity is destroyed. Should be called once when the session starts being used with a specific Activity.

Link copied to clipboard

Extension function to resolve PaymentIntent from session. If paymentIntent is available, calls callback immediately. If paymentIntentProvider is available (transient field), uses it to get the intent asynchronously. If paymentIntentProviderId is available (after binding), retrieves from repository.