Skip to content

Commit

Permalink
Merge pull request #11 from diegobarrera/feature/PayUMexIntegration
Browse files Browse the repository at this point in the history
use birthdate fallback
  • Loading branch information
diegobarrera authored May 10, 2018
2 parents a639c62 + 8a7c56c commit 5eacb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/payu.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ module.exports.sale = function(payload, credentials, type, cb) {
},
};
if (country === 'MX') {
body.payer.birthdate = payload.metadata.birthdate;
body.payer.birthdate = payload.metadata.birthdate || '1990-05-25';
}
if (payload.payment.cvc) {
body.transaction.creditCard = {
Expand Down

0 comments on commit 5eacb1d

Please sign in to comment.