-
Notifications
You must be signed in to change notification settings - Fork 150
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
App crashes instead of open razorpay payment page in flutter #42
Comments
Same issue with my implementation |
@idkashutosh try this - https://pub.dev/packages/razorpay_plugin |
Fixed it by adding the proguard rules in android |
@yashdabi Try adding proguard rules as shown in razorpay docs. https://razorpay.com/docs/payment-gateway/android-integration/standard/ Also if you are doing release build, do sign the apk by following the flutter release build guide. https://flutter.dev/docs/deployment/android |
@idkashutosh thanks, it's working 1 step
2 step
now Razorpay is working. |
thanks bro |
Thank you so much @yashdabi 🚀🚀 |
i m aslo facing same problem and i ahve added proguard rules ... did not worked ..the api key is test key ... it is woring with debug version, not working with release version can anyone guide please |
can anyone help please , how it will be fixed |
Closing this issue due to no further response. Please feel free to either re-open the issue or create a new issue if you have any additional queries. |
In the documentation, it says "If you are using proguard for your builds" use the following. But looks like progaurd is necessary, without which I'm getting this error. Can we mention it that way in the documentaion? |
I have integrated razorpay in flutter web but facing the same problem. Please anyone here to help me |
I have done everything like I have added progaurd rule and also mentioned it in gradle file but still, in production mode, the checkout button becomes an infinite white screen. I am using the test key. Please help! |
@rohan220217 what error is showing in Logcat after opening the Razorpay try this to see Logcat messages |
Thank you very much @yashdabi but I fixed my error while debugging. The checkout button becomes grey infinite screen because I have used incorrect parent widget |
As I used razor pay plugin today and it showed me some this signature error :
so fixed this error by commenting "useProguard true" in android/app/build.gradle and it worked for me |
If you tried everything and nothing worked! Accrording to razorpay docs, you should create an order in the server (probably using an API) before calling razorpay.open(Options). This only applies if you are sending an order_id in your razorpay options |
For me removing the useProguard in build.gradle worked properly.
|
This worked for me, great, thanks 👍 |
flutter run
is working fine in the emulator and real device.but after
flutter build apk
, the app Crashed on_razorpay.open(options);
and the plugin is not showing a crash report or any error in the visual studio code terminal.
in the visual studio code terminal
In the Andoid studio logcat
java.lang.ClassNotFoundException: Didn't find class "com.razorpay.d__1_"
The text was updated successfully, but these errors were encountered: