summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@odoo.com>2017-12-10 01:51:58 +0100
committerOlivier Dony <odo@odoo.com>2017-12-10 01:55:47 +0100
commit0a74272bed54a628e5717f04d318d6c80094731d (patch)
tree87312002f35ec406e54d89635c5b304e00a00680 /addons/web/static/src/js/views/basic/basic_model.js
parent3bc1e0175d85a70806999109e928c234e8cc2ca4 (diff)
[FIX] payment_stripe: do not rely on token email
Depending on the payment flow, the `email` field may not always be present in the token data coming from Stripe. Currently, it is missing in s2s mode, because we do not send it. To avoid a KeyError during creation of the customer, we can use token["card"]["name"] instead, which is always provided (it contains either email or cardholder name), or the explicit ` description`, when provided.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions