merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 45c08275667af27f5ff1a32a059521b67db37b3a
parent 41cf1b7d2a7889b85e082fad36f14335cad76dac
Author: Florian Dold <florian@dold.me>
Date:   Fri, 13 Aug 2021 14:38:35 +0200

adjust handling of 200 in public order status HTML page

Diffstat:
Mcontrib/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 @@ -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); }