1

I am using WooCommerce plugin and Paypal Express checkout for the payment. Everything is working fine till now. Now I got a new domain and I put domain as GoDaddy Masking and thus it loads the Main site in an iframe. The site loads fine, but the checkout is not working as Paypal doesn't supports iframe.

Opening the paypal redirect link in a new tab works fine. So I put target="_blank" for the checkout form, but as the form submission is ajax and target="_blank" not handled in WooCommerce js, it doesn't work.

Is there any work around? Please let us know your suggestions.

1 Answer 1

-3

Using javascript you can open payapal page in another tab

<script>
function OpenInNewTab(url) {
  var win = window.open(url, '_blank');
  win.focus();
}
</script>
<a onclick="OpenInNewTab();">Paypal link</a>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.