razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
107 stars 147 forks source link

Unusual behavior is observed when initiating an eMandate payment #341

Open jpeevi opened 1 year ago

jpeevi commented 1 year ago

Description

When initiating an eMandate authorization payment and encountering a failure, the user will be directed to a retry process. On the web platform, the user will be presented with an error message on the bank details page. Please refer to the attached screenshot for reference.

Web retry flow: image

In the Flutter Plugin, if an eMandate authorization payment fails, the retry process is initiated from the contact detail page. Kindly refer to the provided screenshot.

Flutter retry flow: Screenshot_20230817_215647

Upon the user clicking the "Retry" button in the Flutter, Plugin a notable distinction from the web version is that they are not afforded the chance to re-enter their bank account details. Instead, they are promptly redirected to the bank page. Regrettably, this transaction will instantly encounter failure, accompanied by the below exception:

The amount must be atleast INR 1.00

Screenshot_20230817_214001

Sample payload:

Razorpay razorpay = Razorpay();
              var options = {
                'key': 'rzp_test_nLSHkfrIsdUvu2',
                'order_id': "order_MRCdqiwNj25KvJ",
                'customer_id' :'cust_MR9X5DyfkjhrBA',
                "recurring" : "1",
                'retry' :{'enabled' : true }
              };

https://github.com/razorpay/razorpay-flutter/assets/5638276/9f5c7788-d0ee-4b49-ada9-3dfb20ede95d

Flutter Version :

razorpay_flutter: ^1.3.5

Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f468f3366c (5 weeks ago) • 2023-07-12 15:19:05 -0700
Engine • revision cdbeda788a
Tools • Dart 3.0.6 • DevTools 2.23.1
HeyAvi commented 1 year ago

Hello team, I'm having the same issue in my app and after 2 days passed I see no updates from your side. And this is the second time I saw the error in production, We've lost a few customers also due to this. Let us know if you do not want to continue the Razorpay service in Flutter so that we can go for some good alternatives. Thanks and Regards.

HeyAvi commented 1 year ago
[√] Flutter (Channel stable, 3.13.0, on Microsoft Windows [Version 10.0.22621.2134], locale en-IN)
    • Flutter version 3.13.0 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision efbf63d9c6 (4 days ago), 2023-08-15 21:05:06 -0500
    • Engine revision 1ac611c64e
    • Dart version 3.1.0
    • DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\avina\AppData\Local\Android\Sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.9)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio Build Tools 2019 version 16.11.32106.194
    • Windows 10 SDK version 10.0.16299.0

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] IntelliJ IDEA Ultimate Edition (version 2022.3)
    • IntelliJ at D:\System\Softwares\IntelliJ IDEA 2022.3.1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] VS Code (version 1.81.1)
    • VS Code at C:\Users\avina\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.70.0

[√] VS Code (version 1.82.0-insider)
    • VS Code at C:\Users\avina\AppData\Local\Programs\Microsoft VS Code Insiders
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 14 (API 34) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.2134]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 116.0.5845.96
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 115.0.1901.203

[√] Network resources
    • All expected network resources are available.

• No issues found!

environment:
  sdk: '>=3.0.2 <4.0.0'

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.4
  url_launcher: ^6.1.11
  cached_network_image: ^3.2.1
  firebase_core: ^2.13.0
  firebase_auth: ^4.6.1
  firebase_database: ^10.2.1
  share_plus: ^7.0.1
  http: ^1.1.0
  intl: ^0.18.0
  package_info_plus: ^4.0.1
  firebase_analytics: ^10.4.1
  google_mobile_ads: ^3.0.0
  firebase_messaging: ^14.6.1
  flutter_local_notifications: ^15.1.0+1
  razorpay_flutter: ^1.3.5
  fluttertoast: ^8.2.1
  scrollable_positioned_list: ^0.3.8
  device_preview: ^1.1.0
  flutter_animate: ^4.1.1+1
  shared_preferences: ^2.1.1
  flutter_rating_bar: ^4.0.1
  dotted_line: ^3.2.2
  flutter_bloc: ^8.1.3
  firebase_dynamic_links: ^5.3.3
  cloud_firestore: ^4.8.4
  google_sign_in: ^6.1.4
  sign_in_button: ^3.2.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^2.0.1