IntentConfiguration

class IntentConfiguration @JvmOverloads constructor(val mode: PaymentSheet.IntentConfiguration.Mode, val paymentMethodTypes: List<String> = emptyList(), val paymentMethodConfigurationId: String? = null, val onBehalfOf: String? = null) : Parcelable

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.

paymentMethodTypes

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

paymentMethodConfigurationId

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

onBehalfOf

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

Constructors

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

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 : Parcelable

Contains information about the desired payment or setup flow.

Link copied to clipboard

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

Properties

Link copied to clipboard
Link copied to clipboard
val onBehalfOf: String? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)