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

redefinition of 'Razorpay' as different kind of symbol #275

Closed GeekRishabh closed 3 years ago

GeekRishabh commented 4 years ago
"react": "16.9.0",
"react-native": "0.61.5",

"react-native-razorpay": "2.1.35",

vishnu-evolvier commented 4 years ago

I am also facing this issue.

"react": "16.13.1", "react-native": "0.63.1", "react-native-razorpay": "^2.1.35"

temporary fix oie_cSprQsl4N0ih

ankitjaiswal1994 commented 4 years ago

@vishnu-evolvier Thanks temporary solutions worked. But I hope it does not break anything.

employee-proctur commented 4 years ago

Same issue here,

 "react": "16.9.0",
 "react-native": "^0.61.5",
 "react-native-razorpay": "^2.1.35"

need permanent fix.

rams12 commented 4 years ago

Is android working?

aayushanand99 commented 4 years ago

For android I had to change implementation 'com.razorpay:checkout:1.5.18' to implementation 'com.razorpay:checkout:1.5.12' in app/build.gradle

sumedht commented 4 years ago

@aayushanand99 @rams12 @iamgulfam We have figured out the issue and it will be fixed in the next release. In the meantime, we would suggest that you don't use the previous versions and use the newer one instead as it has new features. Add these two lines to app-level build.gradle

implementation 'com.google.android.gms:play-services-auth:17.0.0' implementation 'com.google.android.gms:play-services-auth-api-phone:17.1.0'

and it should start working without a hitch. We'll also be adding this to the documentation. Please post here if you face any further issues.

Also we have updated to newer stable version 2.1.36 where u don't have to add above lines

sathishu37 commented 4 years ago

redefinition of 'Razorpay' as different kind of symbol

@sumedht Same issue persists in the latest version also.

"react": "^16.8.6", 
"react-native": "^0.60.0",
"react-native-razorpay": "^2.1.36"
Biplovkumar commented 4 years ago

same here. working in Android but not in IOS. I am stuck from 5 days. pls help.

Nautiyalsachin commented 4 years ago

Which pod version are you guys using?

Biplovkumar commented 4 years ago

I am also facing this issue.

"react": "16.13.1", "react-native": "0.63.1", "react-native-razorpay": "^2.1.35"

temporary fix oie_cSprQsl4N0ih

thanks @vishnu-evolvier you saved my day.

its a big bug of react-native-razorpay because with it not able to run project.

Biplovkumar commented 4 years ago

Which pod version are you guys using?

platform :ios, '10.0'

Pod version :- 1.9.2

@Nautiyalsachin

Nautiyalsachin commented 4 years ago

Please update the razorpay-pod -> 1.1.5 so that you don't have to do the above fix.

Or use pod update for fixing this issue, this will automatically update your Razorpay pod to the latest version.

Here are the detailed steps via this link which you can follow.

aayushanand99 commented 4 years ago

@sumedht build is failing. image

abhilekhsingh041992 commented 4 years ago

I am facing the same issue in version 2.1.36.

For now, I'm using the older version: 2.1.25, which doesn't have this issue. But please do fix it.

vivekshindhe commented 4 years ago

@aayushanand99 the image doesn't help in debugging the cause for this. Could you please send the logs for the same? We'll be able to get back to you on this pretty quick with them.

vivekshindhe commented 3 years ago

Closing this issue due to no response from your side. Please feel free to either re-open the issue or create a new issue if you have any additional queries.