IntentConfiguration

Parameters

mode

Whether PaymentSheet should present a payment or setup flow.


constructor(mode: PaymentSheet.IntentConfiguration.Mode, paymentMethodTypes: List<String> = emptyList(), paymentMethodConfigurationId: String? = null, onBehalfOf: String? = null, requireCvcRecollection: Boolean = false)

Deprecated

Use the required-argument constructor and the builder methods instead.

Replace with

IntentConfiguration(mode).paymentMethodTypes(paymentMethodTypes).paymentMethodConfigurationId(paymentMethodConfigurationId).onBehalfOf(onBehalfOf).requireCvcRecollection(requireCvcRecollection)

constructor(mode: PaymentSheet.IntentConfiguration.Mode, paymentMethodTypes: List<String>)

Deprecated

Use the required-argument constructor and the builder methods instead.

Replace with

IntentConfiguration(mode).paymentMethodTypes(paymentMethodTypes)

constructor(mode: PaymentSheet.IntentConfiguration.Mode, paymentMethodTypes: List<String>, paymentMethodConfigurationId: String?)

Deprecated

Use the required-argument constructor and the builder methods instead.

Replace with

IntentConfiguration(mode).paymentMethodTypes(paymentMethodTypes).paymentMethodConfigurationId(paymentMethodConfigurationId)

constructor(mode: PaymentSheet.IntentConfiguration.Mode, paymentMethodTypes: List<String>, paymentMethodConfigurationId: String?, onBehalfOf: String?)

Deprecated

Use the required-argument constructor and the builder methods instead.

Replace with

IntentConfiguration(mode).paymentMethodTypes(paymentMethodTypes).paymentMethodConfigurationId(paymentMethodConfigurationId).onBehalfOf(onBehalfOf)

constructor(sharedPaymentTokenSessionWithMode: PaymentSheet.IntentConfiguration.Mode, sellerDetails: PaymentSheet.IntentConfiguration.SellerDetails?, paymentMethodTypes: List<String> = emptyList(), paymentMethodConfigurationId: String? = null, onBehalfOf: String? = null, requireCvcRecollection: Boolean = false)

Deprecated

Use the required-argument constructor and the builder methods instead.

Replace with

IntentConfiguration(sharedPaymentTokenSessionWithMode).sharedPaymentTokenSession(sellerDetails).paymentMethodTypes(paymentMethodTypes).paymentMethodConfigurationId(paymentMethodConfigurationId).onBehalfOf(onBehalfOf).requireCvcRecollection(requireCvcRecollection)