changeset 275bc3d40b54 in modules/account_payment_stripe:default
details: 
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset;node=275bc3d40b54
description:
        Replace form by link in email

        Using form in email raises warnings on most client.

        issue9273
        review321271002
diffstat:

 email_checkout.html |  24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diffs (34 lines):

diff -r 68d91f242ddb -r 275bc3d40b54 email_checkout.html
--- a/email_checkout.html       Mon May 04 12:11:10 2020 +0200
+++ b/email_checkout.html       Tue May 19 18:52:22 2020 +0200
@@ -9,15 +9,21 @@
             <div>
                 <h1>Authorization needed</h1>
                 <p>You need to authorize the payment ${payment.rec_name}.</p>
-                <form method="GET" action="${payment.stripe_checkout_url}">
-                    <button type="submit"
-                            style="cursor:pointer;
-                            padding: 0.5em 1em; font-size:2em;
-                            border: 1px solid #2E6DA4; border-radius: 4px;
-                            color: #FFF; background-color: #337AB7;">
-                        Checkout
-                    </button>
-                </form>
+                <a href="${payment.stripe_checkout_url}"
+                   style="display: block; text-decoration: none;
+                          width: max-content; margin: 0 auto;
+                          padding: 0.5em 1em; font-size:2em;
+                          border: 1px solid #2E6DA4; border-radius: 4px;
+                          color: #FFF; background-color: #337AB7;">
+                    Checkout
+                </a>
+            </div>
+            <hr style="margin-top: 20px;
+            border-style: solid none none; border-color: #EEE"></hr>
+            <div style="font-size: 80%; color: #777">
+                <p>Button is not working? Paste this into your browser:</p>
+                <p>${payment.stripe_checkout_url}</p>
+                <p>If you didn't make this request, you can ignore this 
email.</p>
             </div>
         </div>
         </py:for>

Reply via email to