summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2019-07-11 13:08:33 +0000
committerDamien Bouvy <dbo@odoo.com>2019-07-18 06:55:59 +0000
commitad5472b8c5afcfae3cb34b3daa15c3c642ce1d27 (patch)
treec69849fd5005581180c24d39aeab06fbd7fedd50 /addons/web/static/src/js/fields
parent55548931fdd3bb9c5f5937ec74851899b8ea4070 (diff)
[IMP] payment_stripe: flow changes
The previous commit introduced some changes for SCA/PSD2 but some things were missing; most notably, registering payment cards in a s2s flow used the old Charge API that is not SCA-ready. This commit uses the SetupIntent API instead, allowing to register the card prior to payment. The global flow is described in the Stripe documentation in more details: https://stripe.com/docs/payments/cards/saving-cards Unfortunately, given the complete flow of payments, it is not possible to use the PaymentIntents API since this would require having the reference of the transaction before it gets created (the TX is created after the form submission, but the token must already exist at that point). Since this is meant to be backported, this changes are kept minimal in this feature branch. The PaymentIntents API would have been better since registering a card during a payment makes it more likely that future off-session transactions will not require an authentication step. We'll have to live with that for now; it's difficult to know exactly how this will affect customers before PSD2 goes into effect on september 14. Another branch might completely change the flow soon-ish to a more asynchroneous model, although it may miss the v13 freeze date -_-
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions