Credit Card Details
creditCard.getToken()
The credit card token. If you didn’t specify a token when the credit card was created, the gateway will generate a 4-character alphanumeric token.
String Attributes
creditCard.getBin()- the first 6 digits of the credit card number”creditCard.getCardType()creditCard.getCardholderName()creditCard.getCustomerId()- the ID of the customer this credit card is associated tocreditCard.getExpirationMonth()- formatted as MMcreditCard.getExpirationYear()- formatted as YYYYcreditCard.getExpirationDate()- MM/YYYY”creditCard.getLast4()- last four digits of the numbercreditCard.getMaskedNumber()- the bin, six asterisks, and the last 4
Boolean Attributes
creditCard.isDefault()
Timestamps
creditCard.getCreatedAt()creditCard.getUpdatedAt()
Associations
creditCard.getSubscriptions()
An array of subscriptions associated to the credit card.
creditCard.getBillingAddress()
The billing address that is attached to this card.