Appium switch to Webview

In my app we are navigating user to razorpay payment gateway from app.
I am unable to click on element after opening payment gateway. Can anyone help?

I have set auto_webview as true in desired capabilities

Does your webview in app debugabble? Can you reach your webview in app yourself with Safari browser (if it iOS) or Chrome (if it android) ?

no i cannot it directly navigates me to the gateway page

is it webview inside your app?

yes it is inside app

then check that you can access this webview yourself with Safari browser from mac computer (if it iOS) or Chrome from any computer (if it android).