Card

February 26, 2020 ยท 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

NameGetterSetterTypeDescriptionNotes
idgetId()setId($value)stringUnique ID for this card. Generated by Square.[optional]
card_brandgetCardBrand()setCardBrand($value)stringThe card's brand. See CardBrand for possible values[optional]
last_4getLast4()setLast4($value)stringThe last 4 digits of the card number.[optional]
exp_monthgetExpMonth()setExpMonth($value)intThe expiration month of the associated card as an integer between 1 and 12.[optional]
exp_yeargetExpYear()setExpYear($value)intThe four-digit year of the card's expiration date.[optional]
cardholder_namegetCardholderName()setCardholderName($value)stringThe name of the cardholder.[optional]
billing_addressgetBillingAddress()setBillingAddress($value)\SquareConnect\Model\AddressThe billing address for this card.[optional]
fingerprintgetFingerprint()setFingerprint($value)stringNot 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]
card_typegetCardType()setCardType($value)stringThe type of the card. The Card object includes this field only in response to Payments API calls. See CardType for possible values[optional] [beta]
prepaid_typegetPrepaidType()setPrepaidType($value)stringIndicates whether the Card is prepaid or not. The Card object includes this field only in response to Payments API calls. See CardPrepaidType for possible values[optional] [beta]
bingetBin()setBin($value)stringThe first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API returns this field.[optional]

Note: All properties are protected and only accessed via getters and setters.

[Back to Model list] [Back to API list] [Back to README]