Skip to content
Permalink
Browse files

[FIX] payment_stripe: undefined handler after renaming variable

  • Loading branch information...
wtaferner committed Mar 21, 2019
1 parent 3a76d45 commit fd73a565c8bfa0947b3d0f104adf494a0231a94c
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/payment_stripe/static/src/js/stripe.js
@@ -32,7 +32,7 @@ odoo.define('payment_stripe.stripe', function(require) {
image: $("input[name='stripe_image']").val(),
locale: 'auto',
token: function(token, args) {
handler.isTokenGenerate = true;
stripeHandler.isTokenGenerate = true;
if ($.blockUI) {
var msg = _t("Just one more second, confirming your payment...");
$.blockUI({
@@ -56,7 +56,7 @@ odoo.define('payment_stripe.stripe', function(require) {
$.unblockUI();
}
}).done(function(data){
handler.isTokenGenerate = false;
stripeHandler.isTokenGenerate = false;
window.location.href = data;
}).fail(function(){
var msg = arguments && arguments[1] && arguments[1].data && arguments[1].data.arguments && arguments[1].data.arguments[0];

0 comments on commit fd73a56

Please sign in to comment.
You can’t perform that action at this time.