diff options
-rw-r--r-- | contrib/request_payment.en.must | 5 |
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); } |