CustomerProfileCreditCard

This object represents a credit card in the customer profile's stored credit cards.

This object is only available in version 3+ of the javascript checkout. Version 3 is the REST based checkout.

Field

Type

Description

merchantId

StringMerchant ID

 

customerProfileId

integer

Unique identifier for the customer who owns this card

id

integer

Unique identifier for this card.

THIS IS IT! This is the value you want to put into cart.customerProfileCreditCardId in order to use a stored credit card during a purchase.

Typically, the credit cards are gathers from cart.customerProfile.creditCards and iterated into a select box. This id is then the option value.

cardType

String

VISA, MasterCard, etc.

cardExpMonth

integer

Expiration Month (1-12)

cardExpYear

integer

Expiration Year

cardNumber

String

This will always be masked except for the last four numbers.

lastUsedDate

String

ISO8601 formatted date string of the last time the card was used.

lastUsedDateFormatted

String

Pretty formatted (long) string of the last time the card was used. Very handy for using in javascript templates.