SupportedPaymentMethod

data class SupportedPaymentMethod(    val code: PaymentMethodCode,     val requiresMandate: Boolean,     @StringRes val displayNameResource: Int,     @DrawableRes val iconResource: Int,     val tintIconOnSelection: Boolean,     val requirement: PaymentMethodRequirements,     val formSpec: LayoutSpec)

Enum defining all payment method types for which Payment Sheet can collect payment data.

FormSpec is optionally null only because Card is not converted to the compose model.

Constructors

Link copied to clipboard
fun SupportedPaymentMethod(    code: PaymentMethodCode,     requiresMandate: Boolean,     @StringRes displayNameResource: Int,     @DrawableRes iconResource: Int,     tintIconOnSelection: Boolean,     requirement: PaymentMethodRequirements,     formSpec: LayoutSpec)

Functions

Link copied to clipboard
fun supportsCustomerSavedPM(): Boolean

Returns true if the payment method supports confirming from a saved payment method of this type. See PaymentMethodRequirements for description of the values

Properties

Link copied to clipboard
val code: PaymentMethodCode

This describes the PaymentMethod Type as described https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types

Link copied to clipboard
val displayNameResource: Int

This describes the name that appears under the selector.

Link copied to clipboard
val formSpec: LayoutSpec

This describes how the UI should look.

Link copied to clipboard
val iconResource: Int

This describes the image in the LPM selector. These can be found internally here

Link copied to clipboard
val requirement: PaymentMethodRequirements

This describes the requirements of the LPM including if it is supported with PaymentIntents w/ or w/out SetupFutureUsage set, SetupIntent, or on-session when attached to the customer object.

Link copied to clipboard
val requiresMandate: Boolean

This describes if the LPM requires a mandate see ConfirmPaymentIntentParams.mandateDataParams.

Link copied to clipboard
val tintIconOnSelection: Boolean

Indicates if the lpm icon in the selector is a single color and should be tinted on selection.