Inappbrowser external link

i’m using stripe payment gateway, what happening is that when the user is allowed to enter the otp that he/she has got on the mobile.
In this scenario,
when the pop is opened in the inappbrowser inside the app the flow continues good and well.
But when the otp pop up opens in the browser then the navigation back to app is not happening where the flow stops and stuck.
I want a solution to open all external link in the inappbrowser by default if or if not there is a url.