PaymentMethod

@JsonClass(generateAdapter = true)
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

A CardDetails object containing more details about the payment method

Link copied to clipboard

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

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