PaymentMethod

@JsonClass(generateAdapter = true)
data class PaymentMethod : Parcelable

PaymentMethod objects represent your customer's payment instruments. They can be used with PaymentIntents to collect payments, or saved to Customer objects to store instrument details for future payments.

For more information, see the official Stripe docs: Payment methodsAttach payment method

Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal

Functions

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

Properties

Link copied to clipboard
val cardDetails: CardDetails? = null

A CardDetails object containing more details about the payment method

Link copied to clipboard
val cardPresentDetails: CardPresentDetails? = null

Details about the card-present payment method

Link copied to clipboard
val customer: String? = null

The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.

Link copied to clipboard
val id: String

Unique identifier for the object.

Link copied to clipboard
val interacPresentDetails: CardPresentDetails? = null

Details about the interac-present payment method

Link copied to clipboard
val livemode: Boolean = false

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

Link copied to clipboard
val metadata: Map<String, String>?

Return any metadata that was attached to this PaymentMethod upon creation