razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
124 stars 107 forks source link

Razor Pay Not invoking Success Handler in React Native Webview #325

Closed themanojk closed 3 years ago

themanojk commented 3 years ago

I am using Expo for my react native app, I have integrated razor pay in webview, which is working on the web properly. The problem is occurring in webview after payment happens.. I can see on the webpage it is written the browser doesn't have javascript enabled, and after that, the success handler is not being invoked. I am able to do other javascript operations from the webpage like API call using fetch and other stuff. Is there anything which I am not doing properly. Here is my code for webview.

<WebView source={{ uri: this.state.url }} style={{ flex: 1, margin: 20 }} javaScriptEnabled={true} domStorageEnabled={true} />

sumedht commented 3 years ago

@razorpay/techpgintegrations Can u check with webview integration here.

AnoopRz commented 3 years ago

@themanojk Please refer to this doc and make sure you are following the steps as mentioned here https://razorpay.com/docs/payment-gateway/web-integration/standard/webview/