From a2c5410622806d42ef6250c979b9aaa9927d1118 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Fri, 6 Sep 2019 13:57:31 +0000 Subject: [IMP] payment: sca-readyness - allow acquirers to arbitrarily include info about the tx in the processing page - pending is now a valid state that could require customer action in the payment processing page - don't blindly redirect to the return url of another tx if a pending transaction is there This latest change might mean that customers with many tx attempts might have a sub-par experience as they may need to click manually on the redirect url of a successful tx while before they were redirected immediately. --- addons/payment/static/src/js/payment_processing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/payment/static/src/js/payment_processing.js') diff --git a/addons/payment/static/src/js/payment_processing.js b/addons/payment/static/src/js/payment_processing.js index f419ca2f5fc..f0769852498 100644 --- a/addons/payment/static/src/js/payment_processing.js +++ b/addons/payment/static/src/js/payment_processing.js @@ -104,7 +104,7 @@ odoo.define('payment.processing', function (require) { return nbTx; } // if there's only one tx to manage - if(countTxInState(['tx_done', 'tx_error']) === 1) { + if(countTxInState(['tx_done', 'tx_error', 'tx_pending']) === 1) { var tx = render_values['tx_done'][0] || render_values['tx_error'][0]; if (tx) { window.location = tx.return_url; -- cgit v1.2.3