SupportedPaymentMethod

sealed class SupportedPaymentMethod : Parcelable

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.

Types

Link copied to clipboard
object Affirm : SupportedPaymentMethod
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object Card : SupportedPaymentMethod
Link copied to clipboard
object Companion
Link copied to clipboard
object Eps : SupportedPaymentMethod
Link copied to clipboard
Link copied to clipboard
object Ideal : SupportedPaymentMethod
Link copied to clipboard
object Klarna : SupportedPaymentMethod
Link copied to clipboard
object P24 : SupportedPaymentMethod
Link copied to clipboard
object PayPal : SupportedPaymentMethod
Link copied to clipboard
Link copied to clipboard
object Sofort : SupportedPaymentMethod
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
fun getPMAddForm(stripeIntent: StripeIntent, config: PaymentSheet.Configuration?): LayoutFormDescriptor

This will get the form layout for the supported method that matches the top pick for the payment method. It should be known that this payment method has a form that matches the capabilities already.

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

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

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 paramKey: MutableMap<String, Any?>

This is a map of the fields in payment_method_options. See this for details.

Link copied to clipboard
val type: PaymentMethod.Type

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

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard