ExternalPaymentMethodSpec

data class ExternalPaymentMethodSpec(val type: String, val label: String, val lightImageUrl: String, val darkImageUrl: String? = null) : Parcelable

Information for displaying external payment methods (EPMs), delivered in the v1/elements/sessions response.

See also: https://git.corp.stripe.com/stripe-internal/pay-server/blob/master/lib/elements/api/private/struct/external_payment_method_data.rb

Constructors

Link copied to clipboard
constructor(type: String, label: String, lightImageUrl: String, darkImageUrl: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "dark_image_url")
val darkImageUrl: String? = null

URL of a 48x pixel tall, variable width PNG representing the payment method suitable for display against a dark background color. If null, use lightImageUrl instead.

Link copied to clipboard
@SerialName(value = "label")
val label: String

Localized label for the payment method, e.g. "FooPay".

Link copied to clipboard
@SerialName(value = "light_image_url")
val lightImageUrl: String

URL of a 48x pixel tall, variable width PNG representing the payment method suitable for display against a light background color.

Link copied to clipboard
@SerialName(value = "type")
val type: String

The type of the external payment method, e.g. "external_foopay".

Functions

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