razorpay / react-native-razorpay

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

Fix issue with presentation #349

Open sahil-prakash opened 3 years ago

sahil-prakash commented 3 years ago

The view controller for checkout was not presented in certain scenarios because it attempted to present itself on an incorrect view controller. Added code to get the topmost view controller to present the checkout VC on.

aditya-keri-betterhalf commented 2 years ago

I've tried adding the code you've mentioned in the PR in node_modules/react-native-razorpay/ios/RazorpayCheckout.m but still facing the same issue. Am I missing something here ?