diff options
| author | Joren Van Onder <jov@odoo.com> | 2019-05-01 23:44:50 +0000 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2019-05-07 17:42:33 +0000 |
| commit | 41871bf5620b608e2200961323cc83c7cbd87442 (patch) | |
| tree | b7654a71bfe0bb0456c912176d09ea51c76cb186 /doc/reference/javascript_reference.rst | |
| parent | b87454ee1b4538834afc20c78c68b37ad39114a8 (diff) | |
[FIX] payment: prevent duplicate payments with payment tokens
When paying an eCommerce order with an acquirer which doesn't
redirect (payment_flow: s2s) the "Pay Now" button is correctly
disabled after clicking it. This prevents a user from clicking it
multiple times and being charged multiple times.
When paying with an existing payment token however the button was not
disabled and the user gets no feedback his request is being
processed. Charging an existing payment token takes a while (~5
seconds with Authorize) and so it's possible users will hit the button
multiple times.
This disables the button when reusing an existing payment
token. Additionally it now uses the correct font awesome icon (fa-lock
instead of fa-plus-circle).
opw-1981064
closes odoo/odoo#33196
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
