CreateCardPaymentMethodRequest

data class CreateCardPaymentMethodRequest(val type: FrameObjects.PaymentMethodType = FrameObjects.PaymentMethodType.CARD, var cardNumber: String, val expMonth: String, val expYear: String, var cvc: String, val customer: String? = null, val account: String? = null, val billing: FrameObjects.BillingAddress? = null)

Request body for creating a card payment method.

Constructors

Link copied to clipboard
constructor(type: FrameObjects.PaymentMethodType = FrameObjects.PaymentMethodType.CARD, cardNumber: String, expMonth: String, expYear: String, cvc: String, customer: String? = null, account: String? = null, billing: FrameObjects.BillingAddress? = null)

Properties

Link copied to clipboard
val account: String? = null

Optional identifier of the merchant account to associate with this payment method.

Link copied to clipboard

Optional billing address to attach to this payment method.

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

The card number. Encrypted via Evervault before transmission when PaymentMethodsAPI.createCardPaymentMethod is called with encryptData = true.

Link copied to clipboard
val customer: String? = null

Optional identifier of the customer to associate with this payment method.

Link copied to clipboard
var cvc: String

The card verification code. Encrypted via Evervault before transmission when PaymentMethodsAPI.createCardPaymentMethod is called with encryptData = true.

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

Two-digit card expiration month (e.g., "04").

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

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

Link copied to clipboard