diff --git a/BTCPayServer/wwwroot/checkout/coinswitch.html b/BTCPayServer/wwwroot/checkout/coinswitch.html index 06314ecd4..899405a48 100644 --- a/BTCPayServer/wwwroot/checkout/coinswitch.html +++ b/BTCPayServer/wwwroot/checkout/coinswitch.html @@ -46,7 +46,9 @@ setTimeout(waitForCoinSwitch, 1000); return; } - payment.open(config); + payment.on("Exchange:Ready", function(){ + payment.open(config); + }); payment.on("Exchange:Complete", function () { if(window.localStorage){ window.localStorage.removeItem(toCurrencyAddress);