AirwallexRecurringSession
Deprecated
Use Session instead. AirwallexRecurringSession will be removed in a future version.
Replace with
import com.airwallex.android.core.Session
Session.Builder(paymentIntent, countryCode, googlePayOptions)For recurring payment (without create payment intent)
Types
Properties
Payment amount. This is the order amount you would like to charge your customer. required.
The client secret for this session. Used for authenticating API requests.
Country code
It is required if the PaymentIntent is created for recurring payment
Google Pay options
Control whether saved cards are displayed on the list screen. Always true for recurring sessions.
Whether or not billing information is required for 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.
Indicate whether the subsequent payments are scheduled. Only applicable when next_triggered_by is merchant. One of scheduled, unscheduled. Default: unscheduled
The party to trigger subsequent payments. Can be one of merchant, customer. required.
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
Billing contact fields the SDK should collect on the new-card screen. null preserves legacy behavior (derived from isBillingInformationRequired / isEmailRequired).
Only applicable when next_triggered_by is customer and the payment_method.type is card.If true, the customer must provide cvc for the subsequent payment with this PaymentConsent. Default: false
Effective set of billing contact fields, resolving null to the legacy boolean-derived defaults that match Android's pre-existing UI:
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.