Card

November 20, 2019 ยท View on GitHub

Description

Represents the payment details of a card to be used for payments. These details are determined by the card_nonce generated by SqPaymentForm.

Properties

NameTypeDescriptionNotes
idStringUnique ID for this card. Generated by Square.[optional]
cardBrandStringThe card's brand (such as `VISA`). See `CardBrand` for all possible values. See CardBrand for possible values[optional]
last4StringThe last 4 digits of the card number.[optional]
expMonthLongThe expiration month of the associated card as an integer between 1 and 12.[optional]
expYearLongThe four-digit year of the card's expiration date.[optional]
cardholderNameStringThe name of the cardholder.[optional]
billingAddressAddressThe billing address for this card.[optional]
fingerprintStringNot currently set. Intended as a Square-assigned identifier, based on the card number, to identify the card across multiple locations within a single application.[optional]
binStringThe first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API returns this field.[optional]