razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 149 forks source link

UPI payment calls onSuccess even the payment is canceled with test keys. #242

Closed AhmadRehan71 closed 2 years ago

AhmadRehan71 commented 2 years ago

Open razorpay and Click on UPI payments pay with UPI, cancel the payment by pressing back button while it's under process, A popup will appear click on Yes, Cancel it will close the window and will go to onSuccess, Payment is canceled it should not go to onSuccess.

Flutter Version :

Flutter version: 2.10.2 Dart version: 2.16.1 Library version = razorpay_flutter: ^1.2.9

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.10.2, on macOS 12.2.1 21D62 darwin-x64, locale en-PK) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.1) [✓] Connected device (1 available) [✓] HTTP Host Availability

• No issues found!

Steps To Reproduce

Step1. Open Razorpay Step2. Select 'UPI-Phonepe' and click on 'Pay ' button Step3. While processing payment abort payment by browsing back button Step4. It will call the onSuccess

Expected Results

It should not call the onSuccess when payment is canceled

Screenshot-1: 1

Screenshot-2 2

Screenshot-3 3

After pressing back button it says onSuccess.

vivekshindhe commented 2 years ago

@AhmadRehan71 Are you using test keys? Test keys don't work for UPI intent payments.

AhmadRehan71 commented 2 years ago

Yes it is with test Keys. Thanks.