SetupIntent

data class SetupIntent @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(val id: String?, val cancellationReason: SetupIntent.CancellationReason?, val created: Long, val countryCode: String?, val clientSecret: String?, val description: String?, val isLiveMode: Boolean, val paymentMethod: PaymentMethod? = null, val paymentMethodId: String?, val paymentMethodTypes: List<String>, val status: StripeIntent.Status?, val usage: StripeIntent.Usage?, val lastSetupError: SetupIntent.Error? = null, val unactivatedPaymentMethods: List<String>, val linkFundingSources: List<String>, val nextActionData: StripeIntent.NextActionData?, paymentMethodOptionsJsonString: String? = null) : StripeIntent

A SetupIntent guides you through the process of setting up a customer's payment credentials for future payments.

Constructors

Link copied to clipboard
constructor(id: String?, cancellationReason: SetupIntent.CancellationReason?, created: Long, countryCode: String?, clientSecret: String?, description: String?, isLiveMode: Boolean, paymentMethod: PaymentMethod? = null, paymentMethodId: String?, paymentMethodTypes: List<String>, status: StripeIntent.Status?, usage: StripeIntent.Usage?, lastSetupError: SetupIntent.Error? = null, unactivatedPaymentMethods: List<String>, linkFundingSources: List<String>, nextActionData: StripeIntent.NextActionData?, paymentMethodOptionsJsonString: String? = null)

Types

Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard
data class Error : StripeModel

The error encountered in the previous SetupIntent confirmation.

Properties

Link copied to clipboard

Reason for cancellation of this SetupIntent.

Link copied to clipboard
open override val clientSecret: String?

The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.

Link copied to clipboard
open override val countryCode: String?

Country code of the user.

Link copied to clipboard
open override val created: Long

Time at which the object was created. Measured in seconds since the Unix epoch.

Link copied to clipboard
open override val description: String?

An arbitrary string attached to the object. Often useful for displaying to users.

Link copied to clipboard
open override val id: String?

Unique identifier for the object.

Link copied to clipboard
open override val isConfirmed: Boolean

Whether confirmation has succeeded and all required actions have been handled.

Link copied to clipboard
open override val isLiveMode: Boolean

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

Link copied to clipboard
open override val lastErrorMessage: String?
Link copied to clipboard

The error encountered in the previous SetupIntent confirmation.

Link copied to clipboard
open override val linkFundingSources: List<String>

Payment types that are accepted when paying with Link.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val paymentMethod: PaymentMethod? = null

The expanded PaymentMethod represented by paymentMethodId.

Link copied to clipboard
open override val paymentMethodId: String?

ID of the payment method used with this SetupIntent.

Link copied to clipboard
open override val paymentMethodTypes: List<String>

The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.

Link copied to clipboard
open override val status: StripeIntent.Status?
Link copied to clipboard

Payment types that have not been activated in livemode, but have been activated in testmode.

Link copied to clipboard

Indicates how the payment method is intended to be used in the future.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun requiresAction(): Boolean
Link copied to clipboard
open override fun requiresConfirmation(): Boolean
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)