Go to "Settings => Checkout" and under the "Order processing" section insert the following script to the "Additional scripts" box:
<script>
var url = window.location.href;
var urlstr = url.split("/");
for (var i = 0; i < urlstr.length; i++)
{
if(urlstr[i] === "checkouts")
{
var shop_id = urlstr[i-1];
var checkout_token = urlstr[i+1];
if (shop_id && checkout_token) {
window.stop();
document.getElementsByClassName('os-header__title')[0].innerHTML = 'Your order is being processed';
window.location = "https://shopify.zotapay.com/payment/sale-form?shop_id="+shop_id+"&checkout_token="+checkout_token;
}
}
}
</script>