PaymentMethod

data class PaymentMethod : StripeModel

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.

Related guides: Payment Methods and More Payment Scenarios.

See PaymentMethodCreateParams for PaymentMethod creation

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class BillingDetails @JvmOverloads constructor(val address: Address? = null, val email: String? = null, val name: String? = null, val phone: String? = null) : StripeModel, StripeParamsModel

Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.

Link copied to clipboard
class Builder
Link copied to clipboard

If this is a card PaymentMethod, this hash contains details about the card.

Link copied to clipboard

If this is a card_present PaymentMethod, this hash contains details about the Card Present payment method.

Link copied to clipboard
object Companion
Link copied to clipboard

Requires the FPX payment method enabled on your account via https://dashboard.stripe.com/account/payments/settings.

Link copied to clipboard

If this is an ideal PaymentMethod, this hash contains details about the iDEAL payment method.

Link copied to clipboard
Link copied to clipboard

If this is a sepa_debit PaymentMethod, this hash contains details about the SEPA debit bank account.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class TypeData : StripeModel
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to "unspecified".

Link copied to clipboard

If this is an au_becs_debit PaymentMethod, this hash contains details about the bank account.

Link copied to clipboard

If this is a bacs_debit PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.

Link copied to clipboard

Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.

Link copied to clipboard

If this is a card PaymentMethod, this hash contains details about the card.

Link copied to clipboard

If this is a card_present PaymentMethod, this hash contains details about the Card Present payment method.

Link copied to clipboard

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

Link copied to clipboard

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

If this is a fpx PaymentMethod, this hash contains details about the FPX payment method.

Link copied to clipboard

Unique identifier for the object.

Link copied to clipboard

If this is an ideal PaymentMethod, this hash contains details about the iDEAL payment method.

Link copied to clipboard

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
Link copied to clipboard

If this is a sepa_debit PaymentMethod, this hash contains details about the SEPA debit bank account.

Link copied to clipboard

If this is a sofort PaymentMethod, this hash contains details about the SOFORT payment method.

Link copied to clipboard

The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.

Link copied to clipboard
Link copied to clipboard

If this is an us_bank_account PaymentMethod, this hash contains details about the bank account.

Functions

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