IntentConfiguration

Contains information needed to render PaymentSheet. The values are used to calculate the payment methods displayed and influence the UI.

Note: The PaymentIntent or SetupIntent you create on your server must have the same values or the payment/setup will fail.

Parameters

mode

Whether PaymentSheet should present a payment or setup flow.

Constructors

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

Types

Link copied to clipboard

Controls when the funds will be captured.

Link copied to clipboard
object Companion
Link copied to clipboard
sealed class Mode

Contains information about the desired payment or setup flow.

Link copied to clipboard
class SellerDetails(businessName: String, networkId: String, externalId: String)
Link copied to clipboard

Indicates that you intend to make future payments with this PaymentIntent's payment method. See our docs for more info.

Functions

Link copied to clipboard

The payment method types eligible to display. If empty, we dynamically determine the payment method types using your Stripe Dashboard settings. A non-empty list cannot be combined with excludedPaymentMethodTypes or paymentMethodConfigurationId.

Link copied to clipboard

The payment method types to exclude from those selected dynamically using your Stripe Dashboard settings. This can also exclude wallets such as google_pay. A non-empty list cannot be combined with allowedPaymentMethodTypes.

Link copied to clipboard

The account (if any) for which the funds of the intent are intended. See our docs for more info.

Link copied to clipboard

The configuration ID (if any) for the selected payment method configuration. See https://stripe.com/docs/payments/multiple-payment-method-configs for more information.

Link copied to clipboard

The payment methods types to display. If empty, we dynamically determine the payment method types using your Stripe Dashboard settings.

Link copied to clipboard

Whether the customer must re-enter the CVC of a saved card before paying. Defaults to false.

Link copied to clipboard

Configures PaymentSheet to create a shared payment token instead of confirming an intent.