-
Notifications
You must be signed in to change notification settings - Fork 67
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
com.razorpay.CheckoutActivity has leaked IntentReceiver #128
Comments
do you solve this issue? I faced the same issue |
have you solve this issue???Facing same issue |
I added the below in thr proguard rules file and then it was working fine -keepclassmembers class * { -keepattributes JavascriptInterface -dontwarn com.razorpay.** -optimizations !method/inlining/* -keepclasseswithmembers class * { |
please give me correct proguard rules some thing you have messed up i think line number 2 showing error in my ide |
https://razorpay.com/docs/payment-gateway/android-integration/standard/ Gives the correct proguard rules. |
Thankyou!! |
I have added those rules to my proguard file but it still doesn't work, can anybody please help me |
Facing The same issue in v- 1.6.12 |
just ignored it!! |
In production its working fine and also set pro guard rules @ankit1057 |
Future openCheckout(OrderProvider orderProvider) async {
} void _handlePaymentSuccess(PaymentSuccessResponse response) {
} //when payment not done void _handlePaymentError(PaymentFailureResponse response) {
} void _handleExternalWallet(ExternalWalletResponse response) { Im using this kind of code I have passed the All is working fine, but after I'm getting the payment id it is validating. this is my OrderProvider import 'package:flutter/material.dart'; class OrderProvider with ChangeNotifier{ String? status; filterOrder(status){ totalAmount(amount, String shopName, email){ paymentStatus(success){ } if (_cartProvider.cod == false) {
I/chromium( 7587): [INFO:CONSOLE(1)] "Uncaught TypeError: window.getDeviceDetails is not a function", source: https://api.razorpay.com/v1/payments/pay_J91TMMJ4kcCsO2/redirect_callback?key_id=rzp_test_2Nsm4ZGj6heV50 (1) E/com.razorpay.checkout( 7587): Webview JS Error: Uncaught SyntaxError: Invalid or unexpected token I/chromium( 7587): [INFO:CONSOLE(1)] "Uncaught SyntaxError: Invalid or unexpected token", source: https://api.razorpay.com/v1/payments/create/checkout# (1) Getting these Errors repeatedly, Someone please tell me what is going on in this package. I have a deadline and when I started this it is working fine till getting to the page but after payment, it does not show the callBack to the successful payment. Feel free to discuss with me, mayurdokras2404@gmail.com |
@MayurDokras hi brother! i am getting the same issue. First payment works fine and after that the event listeners dont work |
Hi,
Actually, it is package issue bro. Cause if I'm not getting the flag that
the payment is not done. Still the package is sending Payment Successful
status to the App.
So, I'm thinking to go with another option and if u get the solution for
this issue. Please let me know.
From,
Mayur Dokras.
…On Thu, 21 Apr, 2022, 4:59 pm Faisal Mushtaq, ***@***.***> wrote:
@MayurDokras <https://github.com/MayurDokras> hi brother! i am getting
the same issue. First payment works fine and after that the event listeners
dont work
—
Reply to this email directly, view it on GitHub
<#128 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKRV2TKHTN3JTFBLJI74GPTVGE32PANCNFSM5B7DP2ZA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
E/com.razorpay.checkout: Webview JS Error: Uncaught SyntaxError: Invalid or unexpected token |
@samuel-sujith It has already been fixed #134 . Please update to the most recent version to resolve this issue also the issue is not related to this repo . If the issue still persists after upgrading could you please create a new issue in this repo |
I am using 'com.razorpay:checkout:1.6.26' in my android dependencies. While running the payment scenario for my app, I am getting the below error go to razorpay page java.lang.NoSuchFieldError: No static field NO_OPTIONS of type Lcom/google/android/gms/common/api/Api$ApiOptions$NoOptions; in class Lcom/google/android/gms/common/api/Api$ApiOptions; or its superclasses (declaration of 'com.google.android.gms.common.api.Api$ApiOptions' appears in /data/app/com.smaple-suaPyGsU26tVlh7gKARYpQ==/base.apk!classes2.dex) |
Hi @dhavalpatel666 I am also facing the same issue but I am facing this issue on @eabdullazyanov/react-native-sms-user-consent plugin. Have you got any solution for this issue? |
I am using 'com.razorpay:checkout:1.6.11' in my android dependencies.
While running the payment scenario for my app, I am getting the below error
E/com.razorpay.checkout: Webview JS Error: Uncaught ReferenceError: otpPermissionCallback is not defined
I/chromium: [INFO:CONSOLE(1)] "Uncaught ReferenceError: otpPermissionCallback is not defined", source: https://api.razorpay.com/v1/payments/pay_HjyJpCXUmEggBd/callback/08b127d2a0d9ad380b5b13ce290ea6018bdf9085/rzp_test_gYefCg3wjpjcPZ?status=authorized&token_recurring_status=rejected&language_code=en (1)
E/ActivityThread: Activity com.razorpay.CheckoutActivity has leaked IntentReceiver com.razorpay.AutoReadOtpHelper@8c37f9c that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.razorpay.CheckoutActivity has leaked IntentReceiver com.razorpay.AutoReadOtpHelper@8c37f9c that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:1167)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:950)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1339)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1319)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1313)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:596)
at com.razorpay.CheckoutPresenterImpl.onSubmit(CheckoutPresenterImpl.java:958)
at com.razorpay.CheckoutBridge$2.secure(CheckoutBridge.java:158)
at com.razorpay.CheckoutPresenterImpl.executeWebViewCallback(CheckoutPresenterImpl.java:1256)
at com.razorpay.CheckoutPresenterImpl.access$700(CheckoutPresenterImpl.java:49)
at com.razorpay.CheckoutPresenterImpl$9.run(CheckoutPresenterImpl.java:1242)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6238)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:933)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
As per many issues which i saw already, this was fixed but I keep getting this error anyway.
Can this please be resolved.
Thanks,
Sujith.
The text was updated successfully, but these errors were encountered: