Skip to content

Commit

Permalink
Change payload for mundipagg token generate
Browse files Browse the repository at this point in the history
  • Loading branch information
joaolenon committed Oct 4, 2016
1 parent 644306a commit 5f8cccd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 31 deletions.
2 changes: 1 addition & 1 deletion clickbus-payments-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 7 additions & 15 deletions clickbus-payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,21 +477,13 @@ MundiPagg.prototype.createToken = function(form, clickPromise) {

MundiPagg.prototype.formatRequest = function(clickbusPayments) {
return {
CreditCardTransactionCollection: [
{
AmountInCents: clickbusPayments.getAmount(),
CreditCard: {
CreditCardBrand: clickbusPayments.getCardBrand(),
CreditCardNumber: clickbusPayments.getCreditCard(),
ExpMonth: clickbusPayments.getExpirationMonth(),
ExpYear: clickbusPayments.getExpirationYear(),
HolderName: clickbusPayments.getHolderName(),
SecurityCode: clickbusPayments.getSecurityCode()
},
CreditCardOperation: "AuthOnly",
InstallmentCount: clickbusPayments.getInstallment()
}
]
CreditCardBrand: clickbusPayments.getCardBrand(),
CreditCardNumber: clickbusPayments.getCreditCard(),
ExpMonth: clickbusPayments.getExpirationMonth(),
ExpYear: clickbusPayments.getExpirationYear(),
HolderName: clickbusPayments.getHolderName(),
SecurityCode: clickbusPayments.getSecurityCode(),
IsOneDollarAuthEnabled: false
}
};

Expand Down
Loading

0 comments on commit 5f8cccd

Please sign in to comment.