From 6ed44181d081b3cfd8875dc82e4e155970cc07f5 Mon Sep 17 00:00:00 2001 From: Toufik Benjaa Date: Wed, 11 Jul 2018 17:47:29 +0200 Subject: [IMP] payment_*: payment acquirers error handling 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 --- .../payment/static/src/xml/payment_processing.xml | 150 +++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 addons/payment/static/src/xml/payment_processing.xml (limited to 'addons/payment/static/src/xml/payment_processing.xml') diff --git a/addons/payment/static/src/xml/payment_processing.xml b/addons/payment/static/src/xml/payment_processing.xml new file mode 100644 index 00000000000..386a03bb117 --- /dev/null +++ b/addons/payment/static/src/xml/payment_processing.xml @@ -0,0 +1,150 @@ + + + + +
+ +
+

Payments failed

+
    + +
  • +

    + + +

    + + An error occured during the processing of this payment.
    + Reason: +
    +
  • +
    +
+
+
+

Payments received

+ +
+ +
+

Waiting for payment

+
    + +
  • +

    + + +

    + + + + + + We are waiting for the payment acquirer to confirm the payment. + + +
  • +
    +
+
+ +
+

Cancelled payments

+
    + +
  • +

    + + +

    + + This transaction has been cancelled.
    + No payment has been processed. +
    +
  • +
    +
+
+
+
+ + +
+

We are not able to find your payment, but don't worry.

+

You should receive an email confirming your payment in a few minutes.

+

If, the payment hasn't been confirmed you can contact us.

+
+
+ + +
+

Server error: Unable to contact the Odoo server.

+

Please wait ...

+
+
+ + +
+

Internal server error

+
+
+
+ +
-- cgit v1.2.3