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
We need Expo support ! #379
Comments
Just came here to say this! Stripe has made it easier to use their SDK whereas Razorpay is still stuck with JS/html only solution in a webview. You just need to make a config plugin[0] for android specific code[1], ios does not need much effort[2]. |
just following this. Not sure why no one is able to generate a plugin for this. :( |
are you able to use it in expo? |
Can someone pls share the android plugin pls ?? |
Any working solution for this issue? |
Hi, just adding my 2 cents. |
Hey Folks, let me know if the above paragraph answered your questions so that we can close this issue. |
Hi @kkyusufk , Thanks for your 2 cents, It gives a bit of clarity on the approach but recently I read a comment from Michael Wood regarding creating a config plugin that could make the integration simpler. Link: https://expo.canny.io/feature-requests/p/support-for-razorpay Could you please review it once and let's know the best way to continue with Razorpay with the expo? |
As of Expo SDK 46, and react-native-razorpay version 2.2.9, just installing the SDK with: yarn add react-native-razorpay and creating a dev client seems sufficient. There is no need to modify any .gradle or .java files. It all works automatically due to react native autolinking. |
@iprojectscloud-git thanks for the comment. You are absolutely right in case of android. @AdarshJais We would be reviewing the README and add a new section for EXPO support as well as remove stuff which is not required. |
Not sure if @kkyusufk already got it listed yet, but I made a config plugin to add support for UPI Intent on iOS. Can anyone take a look on it and check if there is something missing or that requires further changes? Thanks! |
Seems like there is no need for config plugin, in fact, we could just customize |
Here you go: #420 Please follow the instructions provided in the modified Readme pull request, and let me know if you encounter any problems. |
Describe the feature you'd like:
Currently most of the react native apps are based on EXPO framework. As it has some of the enterprise features such as eas build and easy to publish updates to Play Store/App Store. As of Razorpay only supports bare workflow which is react-native cli support. Razorpay has native modules dependency. So it can't be installed directly on expo. But after SDK 41. They have added support for building native modules with dev client (Separate binary just like Expo GO) but it will contain the native code modules in binary.
Suggested implementation:
Expo allows to implement native modules by building Config Plugins (Basically you tell expo what are the native code changes required ). When user run expo install razorpay. Expo will automatically configure native code changes with out ejecting the app.
Describe alternatives you've considered:
Similar implementation made in Stripe.
Currently we are using stripe payments as it supports expo. They have their UPI payment option in beta. But i feel Razorpay is still better for Indian consumers.
Teachability, Documentation, Adoption, Migration Strategy:
https://docs.expo.dev/guides/config-plugins/
! This is expo thread request for Razorpay support. https://expo.canny.io/feature-requests/p/support-for-razorpay
The text was updated successfully, but these errors were encountered: