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)
Content copied to clipboard
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)
Content copied to clipboard
Functions
Link copied to clipboard
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
Link copied to clipboard
This describes the image in the LPM selector. These can be found internally here
Link copied to clipboard
This describes if the LPM requires a mandate see ConfirmPaymentIntentParams.mandateDataParams.