summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2016-03-18 18:45:12 +0100
committerDenis Ledoux <dle@odoo.com>2016-03-21 10:30:03 +0100
commit15f27b2614a4d6f86ded20fc7b3d8e796a2db078 (patch)
tree0c9057eeb48317ba5834cf2d58e9fa2171248499 /addons/web/static/src/js/framework
parentaae56479880bdfec83d2d77af6b125486bfa90f6 (diff)
[FIX] website_sale: always re-render the `pay now` button
Before this revision, when a user tried to pay his cart with a first acquirer e.g. Ogone then came back to the shop (using the browser back button) then chose another acquirer e.g. Paypal a new transaction is created, due to the change of acquirer (following revision cb9d798) and therefore, the transaction has a new reference compared to the last payment transaction attempt (e.g. the ogone one) but, the old reference is still referenced within the `Pay now` form values, because the page wasn't re-rendered, because the user pressed the browser back button, and this doesn't refresh/re-render the page, and, therefore, the old reference was still referenced within the `Pay Now` form values. Therefore, the wrong reference was sent to the acquirer (e.g. paypal) and this prevented the payment validation at the payment feedback, as the new reference was expected in the feedback information, while we receive the older one. This revision makes sure to always re-render the `Pay now` form, so the transaction reference, as well as the other possible changes in the values, are correctly set, before sending the information to the acquirer.
Diffstat (limited to 'addons/web/static/src/js/framework')
0 files changed, 0 insertions, 0 deletions