[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: respect already_paid_order_id in
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: respect already_paid_order_id in order status page JS |
Date: |
Mon, 07 Sep 2020 07:44:04 +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 f58fd14 respect already_paid_order_id in order status page JS
f58fd14 is described below
commit f58fd14035cd10fff43ce08e79109438928d03b8
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Mon Sep 7 11:13:51 2020 +0530
respect already_paid_order_id in order status page JS
---
contrib/request_payment.en.must | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/contrib/request_payment.en.must b/contrib/request_payment.en.must
index 73fc455..253c7d4 100644
--- a/contrib/request_payment.en.must
+++ b/contrib/request_payment.en.must
@@ -113,6 +113,16 @@ body {
console.error("could not parse response:", e);
}
}
+ if (req.status === 402) {
+ try {
+ let resp = JSON.parse(req.responseText);
+ if (resp.already_paid_order_id && resp.fulfillment_url) {
+ window.location = resp.fulfillment_url;
+ }
+ } catch (e) {
+ console.error("could not parse response:", e);
+ }
+ }
setTimeout(check, delayMs);
}
};
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: respect already_paid_order_id in order status page JS,
gnunet <=