setCard method
Associate and mapping Card model properties to transaction
@param card
Implementation
void setCard(Card card) {
number = Helpers.trimValue(card.number);
cvv2 = card.cvv2;
expire_month = sprintf('%02d', [card.expire_month]);
expire_year = card.expire_year.toString();
cardholder = Helpers.trimValue(card.cardholder);
}