[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'.
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user