AirwallexPaymentSession
For one-off payment
Properties
Payment amount. This is the order amount you would like to charge your customer. required.
Indicate if the payment shall be captured immediately after authorized. Only applicable to Card. Default: true
Country code
The Customer who is paying for this PaymentIntent. This field is not required if the Customer is unknown (guest checkout).
Google Pay options
control whether saved cards are displayed on the list screen
Whether or not billing information is required for card payments. When set to false, any billing information will be ignored.
Whether or not email is required for card payments. Set to 'true' if you'd like to collect customers' email
Indicates whether this session is configured for Express Checkout. Returns true when the session uses a PaymentIntentProvider for lazy payment intent creation.
The PaymentIntent object, optional when using paymentIntentProvider.
PaymentIntentProvider instance. This field is transient and not parceled. It is stored only in memory and bound to the Activity lifecycle via PaymentIntentProviderRepository.
Internal identifier for the PaymentIntentProvider stored in the repository. This is set when bindToActivity is called.
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
Functions
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.
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.