[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: adapt to new API
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: adapt to new API |
Date: |
Sun, 16 Aug 2020 16:17:42 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 33b1934 adapt to new API
33b1934 is described below
commit 33b19347ec672a7940add522e8344a2d97ba4211
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 16 16:17:40 2020 +0200
adapt to new API
---
contrib/request_payment.en.must | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/contrib/request_payment.en.must b/contrib/request_payment.en.must
index 048f6de..560714c 100644
--- a/contrib/request_payment.en.must
+++ b/contrib/request_payment.en.must
@@ -98,17 +98,17 @@ body {
if (req.readyState === XMLHttpRequest.DONE) {
if (req.status === 200) {
try {
- let resp = JSON.parse(req.responseText);
- if (resp.paid) {
- document.location.reload(true);
- }
+ document.location.reload(true);
} catch (e) {
console.error("could not parse response:", e);
}
}
- if (req.status === 302) {
+ if (req.status === 202) {
try {
- document.location.reload(true);
+ let resp = JSON.parse(req.responseText);
+ if (resp.fulfillment_url) {
+ window.location = 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: adapt to new API,
gnunet <=