razorpay / react-native-razorpay

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

Duplicate class com.razorpay.Y_$B$ found in modules jetified-checkout-1.6.26-runtime (com.razorpay:checkout:1.6.26) and jetified-customui-3.9.9-runtime (com.razorpay:customui:3.9.9) #427

Closed prajeesh-splendre closed 1 year ago

prajeesh-splendre commented 1 year ago

I was using react-native-customui for the past few months for UPI intent flow, now i need to integrate react-native-razorpay for multiple payment methods, when i installed react-native-razorpay and run using npx react-native run-android in went into these stacktrace

image
vivekshindhe commented 1 year ago

You can't install both on the same project. Both use certain classes that are present in both packages.

prajeesh-splendre commented 1 year ago

Is there any workaround ?

vivekshindhe commented 1 year ago

@prajeesh-splendre no sir.

iamromec commented 1 year ago

@vivekshindhe if we use this, could you please explain how can we get all available (active) payment methods? Is there any API available for that?

I looked into it but didn't see it. So how does this plugin works?

iamromec commented 1 year ago

I'm thinking of switching to react-native-customui as react-native-razorpay doesn't work properly with test keys and development.

iamromec commented 1 year ago

I think this one, right: https://razorpay.com/docs/payments/third-party-validation/s2s-integration/methods-api/#next-steps

vivekshindhe commented 1 year ago

@iamromec We still aren't able to reproduce the error you're seeing on test keys. But let me assure you, it works correctly with both test and live keys for us. Regardless, if you want to switch to customui, please contact Razorpay's Help Desk and they should be able to help take this forward. Closing this ticket for now.