Mode

sealed class Mode : Parcelable

Contains information about the desired payment or setup flow.

Inheritors

Types

Link copied to clipboard
class Payment @JvmOverloads constructor(    val amount: Long,     val currency: String,     setupFutureUse: PaymentSheet.IntentConfiguration.SetupFutureUse? = null,     captureMethod: PaymentSheet.IntentConfiguration.CaptureMethod = CaptureMethod.Automatic) : PaymentSheet.IntentConfiguration.Mode

Use this if your integration creates a PaymentIntent.

Link copied to clipboard
class Setup @JvmOverloads constructor(    val currency: String? = null,     setupFutureUse: PaymentSheet.IntentConfiguration.SetupFutureUse = SetupFutureUse.OffSession) : PaymentSheet.IntentConfiguration.Mode

Use this if your integration creates a SetupIntent.

Functions

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