aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-13 14:38:35 +0200
committerFlorian Dold <florian@dold.me>2021-08-13 14:38:35 +0200
commit45c08275667af27f5ff1a32a059521b67db37b3a (patch)
tree818be5a89bc82e77ddab09c64e30ca4a5f845be5
parent41cf1b7d2a7889b85e082fad36f14335cad76dac (diff)
adjust handling of 200 in public order status HTML page
-rw-r--r--contrib/request_payment.en.must5
1 files changed, 4 insertions, 1 deletions
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);
}