As the title stated. I'm developing an app that allows you to make payment through a 3rd party payment gateway. The payment gateway support 2 payment types: credit card and direct debit.
I'm currently using iframe and it works fine if the payment method is credit card. The problem is with the direct debit, since user needed to sign in to another 3rd party banking portal, it forced ionic to open a platform's browser popup. I want to be at least navigate the iframe instead of opening a popup. I tried many ways to intercept the popup but failed. The only way I can stop the popup is using iframe's sandbox like so:
<iframe src="https://someurl.lol" sandbox="allow-forms allow-same-origin allow-scripts"></iframe>
but with this, I can't do anything else, the page doesn't even navigate.
So is it possible to embed another webview inside the ionic webview? Or another possible solution is to navigate the iframe instead of opening the popup; basically intercepting the iframe's window.open() instead of blocking.