PaymentMethodData

Details about a payment method.

object or null

The payment card details associated with the payment method.

cardType
string or null
Deprecated

The payment card brand. For example, AMEX™, Discover™, Mastercard™, or Visa™.

Enum: "VISA" "MASTERCARD" "AMEX" "DISCOVER" "JCB" "DINERS" "CITI" "MAESTRO" "LASER" "SOLO" "INTERAC" "EFTPOS" "UNKNOWN"
id
required
string

The unique identifier of the saved payment method.

lastFour
string or null
Deprecated

The last four digits of the payment card.

month
string or null
Deprecated

The expiration month of the payment card.

toastCashStoredValue
object or null
type
required
string

The type of saved payment method.

usBankAccount
object or null
year
string or null
Deprecated

The expiration year of the payment card.

{
  • "id": "string",
  • "type": "string",
  • "cardType": "VISA",
  • "lastFour": "string",
  • "month": "string",
  • "year": "string",
  • "card": {
    },
  • "toastCashStoredValue": { },
  • "usBankAccount": { }
}