diff --git a/BTCPayServer/wwwroot/checkout/coinswitch.html b/BTCPayServer/wwwroot/checkout/coinswitch.html index 899405a48..448e4007c 100644 --- a/BTCPayServer/wwwroot/checkout/coinswitch.html +++ b/BTCPayServer/wwwroot/checkout/coinswitch.html @@ -39,7 +39,10 @@ to_amount: parseFloat(toCurrencyDue), state: orderId }; - waitForCoinSwitch(); + + payment.on('Exchange:Ready', function(){ + waitForCoinSwitch(); + }) function waitForCoinSwitch() { if (typeof payment.open !== "function") {