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.
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
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:
Screenshot-2
Screenshot-3
After pressing back button it says onSuccess.