PaymentMethodData

data class PaymentMethodData(val attach: Boolean?, val type: ChargeIntentsRequests.PaymentMethodType, val cardNumber: String, val expMonth: String, val expYear: String, val cvc: String, val billing: FrameObjects.BillingAddress?)

Inline card details used to create a new payment method during charge intent creation.

Constructors

Link copied to clipboard
constructor(attach: Boolean?, type: ChargeIntentsRequests.PaymentMethodType, cardNumber: String, expMonth: String, expYear: String, cvc: String, billing: FrameObjects.BillingAddress?)

Properties

Link copied to clipboard

true to attach the resulting payment method to the customer for future use.

Link copied to clipboard

Billing address associated with the card, or null.

Link copied to clipboard
@SerializedName(value = "card_number")
val cardNumber: String

The card number.

Link copied to clipboard
val cvc: String

The card verification code.

Link copied to clipboard
@SerializedName(value = "exp_month")
val expMonth: String

Two-digit expiration month (e.g., "01" for January).

Link copied to clipboard
@SerializedName(value = "exp_year")
val expYear: String

Four-digit expiration year (e.g., "2027").

Link copied to clipboard

The type of payment method being provided.