summaryrefslogtreecommitdiff
path: root/addons/payment/static/src/js/payment_processing.js
AgeCommit message (Collapse)Author
2020-01-06[FIX] payment: authorized payment should redirect automaticallyDamien Bouvy
From the PoV of the customer, there is no difference between an authorized payment and a captured payment; they should get redirected to the confirmation page in both cases. closes odoo/odoo#42780 X-original-commit: 452676737dd657a5d31a88fa89cc136cbe69b96a Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-20[MERGE] forward port branch saas-12.4 up to 4a1321bc99dChristophe Simonis
closes odoo/odoo#37127 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-09-17[MERGE] forward port branch saas-12.3 up to d8ce75466e4Christophe Simonis
2019-09-13[IMP] payment: sca-readynessDamien Bouvy
- 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.
2019-08-16[IMP] payment: support SEPA Direct Debit acquirerJohan Demaret Rivarola
The purpose of this commit is to expose SEPA Direct Debit acquirer to the Odoo community edition. The dedicated module, though, is restricted to the enterprise edition. Minor changes in following modules: - base: added ir.module.module record - payment: - added data to expose the new payment acquirer. - added 'to_buy' field to track whether the payment acquirer is restricted to enterprise users. - allow multi word payment acquirer name. It was breaking on the first underscore. task-1870363 closes odoo/odoo#26427
2019-08-12[IMP] payment: UI/flowVictor Feyens
2019-06-06[MERGE] forward port branch saas-12.3 up to 409679866b2Christophe Simonis
2019-06-03[FIX] *: correct some javascript errorsChristophe Simonis
Oversight of previous forward-port.
2019-06-03[MERGE] forward port branch saas-12.2 up to 995aa1685eeChristophe Simonis
2019-06-04[REF] *: handle inline scripts preparing for frontend JS lazy loadingqsm-odoo
* payment, im_livechat Inline scripts using `odoo.define` cannot work anymore as the boot.js file loading will be deferred. Most of features which used an inline script should probably be entirely refactored. This commit focuses on removing the inline scripts with a minimal diff (or at least tried to). Note: for the website livechat, the inline script was kept as it seems to be a longer refactoring to get rid of it (even though it is clearly possible). The inline script was however adapted to make sure it works with lazy loaded JS in the frontend. Part of https://github.com/odoo/odoo/pull/32181 task-1961045
2019-05-17[FIX] payment: do not display postgres operational errorsToufik Ben Jaa
- When processing payments on the payments processing page, `psycopg2.OperationalError` can be raised. We do not want those exceptions to be displayed to the customers, instead we want the polling page to try to process the payments again. This commit hides the display of psycopg2 operational errors. - This commit also fixes the "processing your payments" message being hidden after the first polling, no matter if the processing has succeeded or not. closes odoo/odoo#33462 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2019-03-25[MERGE] forward port branch saas-12.2 up to 230ad8c381eChristophe Simonis
closes odoo/odoo#32088 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-06[REF] payment: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2019-03-12[FIX] payment: wire transfer redirectionJohan Demaret Rivarola
When sequentially paying multiple SO with wire transfer, the user was always redirected to the first paid SO. This commit fixes this issue by redirecting to the most recent one. Technical choice: payment_transaction rows are ordered by id desc so we can trust the first one will be the most recent on the client side (in the scope of this diff). opw-1949629 Closes #31754 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2018-09-26[FIX] payment: always redirect when using wire transferDemaret Rivarola Johan
The user should always be redirected when paying with wire transfer. This is because the landing page displays useful data such as the communication. Closes #27194
2018-09-25[FIX] payment: remove ES6 specific constructGéry Debongnie
Using the arrow syntax from ES6 is nice, but it breaks the doc build process.
2018-09-19[IMP] payment_*: payment acquirers error handlingToufik Benjaa
This commit aims to improve the user experience when using payment acquirers. There currently are no error feedback with some acquirers, which leaves the user wondering what is going on and what is the real status of its payment. In some cases, the user is currently being redirected to the home page even though the payment has failed. We want to make it more obvious to the user that something unexpected has happened by redirecting to an intermediate page that will provide good feedback on payments status. Another goal of this commit is to order acquirers by sequence instead of by flow and to select the first acquirer by default. This feature was already implmented in commit fe294fd43e521bd2d339e962f43acf46c3d4cb97, some UI adaptations were needed though. Related to task #36680 Closes #26958