Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: _reactNativeRazorpay.default.open is not a function. #145

Closed
kkcool6 opened this issue Jan 8, 2019 · 6 comments
Closed

TypeError: _reactNativeRazorpay.default.open is not a function. #145

kkcool6 opened this issue Jan 8, 2019 · 6 comments

Comments

@kkcool6
Copy link

kkcool6 commented Jan 8, 2019

Followed the video on integration with react native, but unable to make it work on IOS, integration is successful but the checkout function not working tried on the existing project and on a fresh project as well.

Here is the configuration.
Xcode 10 ,
RN 0.57.1
React 16.5.0
Razor pay version 2.0.18

here is the output from xcode console .
TypeError: _reactNativeRazorpay.default.open is not a function. (In '_reactNativeRazorpay.default.open(options)', '_reactNativeRazorpay.default.open' is undefined)

@iThink32
Copy link
Contributor

iThink32 commented Jan 8, 2019

@kkcool6 please refer the example project in this repo , run npm I on it , remove node-modules from react-native-razorpay or blacklist it.

@kkcool6
Copy link
Author

kkcool6 commented Jan 10, 2019

Thanks @iThink32 , I checked the example folder and it worked, but I noticed that version of razor pay is 2.0.13 and also there are two more frameworks attached in Xcode, SystemConfiguration and CoreTelephony, so I changed my razorpay version and included these frameworks and it solved my problem.
I don't know whether the latest razorpay version or these missing frameworks were causing issues, and if it is the missing frameworks than you guy's should update the readme section.

@iThink32
Copy link
Contributor

iThink32 commented Jan 10, 2019

@kkcool6 hey first of all our latest react-native-razorpay package is 2.0.18, please update your package to the latest one and try.Try running npm update instead of npm i

@kkcool6
Copy link
Author

kkcool6 commented Jan 10, 2019

I was using the latest version before, tried a clean install of all modules as well, but it didn't work,

But I can try again with a fresh installation and with both the frameworks, will update the status if it works for me.

@iThink32
Copy link
Contributor

@kkcool6 ok , try the example folder with the latest repo.

@iThink32
Copy link
Contributor

closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants