Skip to content

Commit

Permalink
[R-97] adding log
Browse files Browse the repository at this point in the history
  • Loading branch information
Robby Amaral authored and Robby Amaral committed May 6, 2021
1 parent ca7cec7 commit f3a678e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clickbus-payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ MercadoPago.prototype.createToken = function(form, clickPromise, options, public
logger(response);

if (status != 201 && status != 200) {
console.error('error generating mercadoPago token', response);
this.reset();
clickPromise.finish(status, response);
return;
Expand Down

0 comments on commit f3a678e

Please sign in to comment.