From dfe7f00e781503b01ec2b68df90a3f19c0060933 Mon Sep 17 00:00:00 2001 From: tbe-odoo Date: Mon, 22 Jan 2018 10:43:16 +0100 Subject: [PATCH] [FIX] stripe: Fix when no access token set - When no access token is set, the stripe implementation uses a the access token the string 'undefined'. --- addons/payment_stripe/static/src/js/stripe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment_stripe/static/src/js/stripe.js b/addons/payment_stripe/static/src/js/stripe.js index 5c239582419..4f468805e6e 100644 --- a/addons/payment_stripe/static/src/js/stripe.js +++ b/addons/payment_stripe/static/src/js/stripe.js @@ -81,7 +81,7 @@ odoo.define('payment_stripe.stripe', function(require) { return false; } - var so_token = $("input[name='token']").val(); + var so_token = $("input[name='token']").val() || ''; var so_id = $("input[name='return_url']").val().match(/quote\/([0-9]+)/) || undefined; if (so_id) { so_id = parseInt(so_id[1]);