cashfree / react-native-cashfree-pg-sdk

Sample app demonstrating integration of Cashfree's payment gateway in your React native project
https://docs.cashfree.com/docs/react-native-integration
MIT License
8 stars 11 forks source link

React native Expo support #23

Open crstnmac opened 1 year ago

crstnmac commented 1 year ago

Is there react-native expo support for this SDK?

shivankacker commented 1 year ago

@crstnmac no support for expo : ( I tried implementing it the whole way and in the end it says it's not supported. Really need expo support for this.

crstnmac commented 1 year ago

Having expo support with typescript would be a game changer for most of the Indian react-native apps having payments

hshah965 commented 1 year ago

@skks1212 did you trying using expo development build by modifying ios plist using plugins? I tried with that and it worked fine upto a point. It is working perfectly on SANDBOX environment but getting "OH SNAP" error in PRODUCTION environment with any payment method.

Edit - Maybe it's crashing in Production due to app package whitelisting not done. Have sent it for approval, will update here on further development.

Edit 2 - Successfully ran the package on expo managed workflow after app package whitelisting approved. @crstnmac let me know if you need any help on the setup.

shivankacker commented 1 year ago

@hshah965 My primary OS is Android. I implemented a workaround by using a web view and running the web javascript checkout library. Works like a charm, and you can easily setup a web app to handle the payments for you. However I will not be able to use it because cashfree has disabled onboarding for new merchants : (

hshah965 commented 1 year ago

@hshah965 My primary OS is Android. I implemented a workaround by using a web view and running the web javascript checkout library. Works like a charm, and you can easily setup a web app to handle the payments for you. However I will not be able to use it because cashfree has disabled onboarding for new merchants : (

Ah that sucks. But if you get the opportunity and want to set it up with expo, it’s a pretty easy integration after using expo development builds and plugins to modify ios plist.

gajraj-m commented 9 months ago

@hshah965 My primary OS is Android. I implemented a workaround by using a web view and running the web javascript checkout library. Works like a charm, and you can easily setup a web app to handle the payments for you. However I will not be able to use it because cashfree has disabled onboarding for new merchants : (

Ah that sucks. But if you get the opportunity and want to set it up with expo, it’s a pretty easy integration after using expo development builds and plugins to modify ios plist.

Can you please elaborate how to achieve that. Would be of great help. Thank you

LostAnurag commented 2 weeks ago

@skks1212 did you trying using expo development build by modifying ios plist using plugins? I tried with that and it worked fine upto a point. It is working perfectly on SANDBOX environment but getting "OH SNAP" error in PRODUCTION environment with any payment method.

Edit - Maybe it's crashing in Production due to app package whitelisting not done. Have sent it for approval, will update here on further development.

Edit 2 - Successfully ran the package on expo managed workflow after app package whitelisting approved. @crstnmac let me know if you need any help on the setup.

i am using expo and facing issues in integration of cashfree PG what I can do can you guide me please