UNPKG

cybersource-api

Version:

Module for connect with CyberSource by soap methods.

21 lines (20 loc) 579 B
module.exports = class Card { constructor(accountNumber,expirationMonth,expirationYear,cvNumber,cardType,moreParams){ this.accountNumber = accountNumber; this.expirationMonth = expirationMonth; this.expirationYear = expirationYear; this.cvNumber = cvNumber; this.cardType = cardType; this.moreParams } getJSON(){ let json = { accountNumber:this.accountNumber, expirationMonth:this.expirationMonth, expirationYear:this.expirationYear, cvNumber:this.cvNumber, cardType:this.cardType } return json; } }