PaymentMethod

@Serializable
data class PaymentMethod : Serializable

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 methods Attach payment method

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

Properties

Link copied to clipboard
@SerialName(value = "affirm")
val affirmDetails: AffirmDetails? = null

Details about the affirm payment method

Link copied to clipboard
@SerialName(value = "card")
val cardDetails: CardDetails? = null

A CardDetails object containing more details about the payment method

Link copied to clipboard
@SerialName(value = "cardPresent")
val cardPresentDetails: CardPresentDetails? = null

Details about the card-present payment method

Link copied to clipboard
val created: Long = 0

Time at which the PaymentMethod was created. Measured in seconds since the Unix epoch.

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
@SerialName(value = "interacPresent")
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

Return any metadata that was attached to this PaymentMethod upon creation

Link copied to clipboard
val type: PaymentMethodType? = null
Link copied to clipboard
@SerialName(value = "wechatPay")
val wechatPayDetails: WechatPayDetails? = null

Details about the wechat-pay payment method