gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: adjust handling of 200 in public


From: gnunet
Subject: [taler-merchant] branch master updated: adjust handling of 200 in public order status HTML page
Date: Fri, 13 Aug 2021 14:38:41 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 45c08275 adjust handling of 200 in public order status HTML page
45c08275 is described below

commit 45c08275667af27f5ff1a32a059521b67db37b3a
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Aug 13 14:38:35 2021 +0200

    adjust handling of 200 in public order status HTML page
---
 contrib/request_payment.en.must | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/contrib/request_payment.en.must b/contrib/request_payment.en.must
index e13fb859..f113faf0 100644
--- a/contrib/request_payment.en.must
+++ b/contrib/request_payment.en.must
@@ -105,7 +105,10 @@ body {
       if (req.readyState === XMLHttpRequest.DONE) {
         if (req.status === 200) {
           try {
-            window.location.reload(true);
+            let resp = JSON.parse(req.responseText);
+            if (resp.fulfillment_url) {
+                window.location.replace(resp.fulfillment_url);
+            }
           } catch (e) {
             console.error("could not parse response:", e);
           }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]