Builder

Constructors

Link copied to clipboard
constructor(paymentIntent: PaymentIntent, countryCode: String, googlePayOptions: GooglePayOptions? = null)

Constructor for static PaymentIntent

constructor(paymentIntentProvider: PaymentIntentProvider, countryCode: String, customerId: String? = null, googlePayOptions: GooglePayOptions? = null)

Constructor for PaymentIntentProvider

constructor(paymentIntentSource: PaymentIntentSource, countryCode: String, customerId: String? = null, googlePayOptions: GooglePayOptions? = null)

Constructor for PaymentIntentSource (modern suspend-based version)

Functions

Link copied to clipboard
open override fun build(): Session
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setRequireBillingInformation(requireBillingInformation: Boolean): Session.Builder
Link copied to clipboard

Configure which billing fields the new-card UI should collect and the headless checkout should validate. Pass null (the default) to derive from the legacy setRequireBillingInformation / setRequireEmail flags. An empty set hides the entire billing section.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard