A flutter plugin for integrating razorpay payment gateway. Supports Android and iOS.

Overview

Flutter Razorpay Plugin

image

A flutter plugin for razorpay integration for both android and ios.

If you use this library in your app, please let me know and I'll add it to the list.

Installing

Add this in pubspec.yaml

  razorpay_plugin: ^0.3.0

Using

import 'package:razorpay_plugin/razorpay_plugin.dart';
  startPayment() async {
    Map<String, dynamic> options = new Map();
    options.putIfAbsent("name", () => "Razorpay T-Shirt");
    options.putIfAbsent("image", () => "https://www.73lines.com/web/image/12427");
    options.putIfAbsent("description", () => "This is a real transaction");
    options.putIfAbsent("amount", () => "100");
    options.putIfAbsent("email", () => "[email protected]");
    options.putIfAbsent("contact", () => "9988776655");
    //Must be a valid HTML color.
    options.putIfAbsent("theme", () => "#FF0000");
    //Notes -- OPTIONAL
    Map<String, String> notes = new Map();
    notes.putIfAbsent('key', () => "value");
    notes.putIfAbsent('randomInfo', () => "haha");
    options.putIfAbsent("notes", () => notes);
    options.putIfAbsent("api_key", () => "API_KEY_HERE");
    Map<dynamic,dynamic> paymentResponse = new Map();
    paymentResponse = await Razorpay.showPaymentForm(options);
    print("response $paymentResponse");

}

Response :

 {"code": 0, "message": "payment cancelled by user"}

or

 {"code": 1, "message": "rpz_asdw23axd223s"}

If payment is successful message will contain the payment_id from razorpay.

Demo app

Apps using this library

  • Worth It - Best Deals, Offers & Discounts Android | iOS
Comments
  •  CocoaPods could not find compatible versions for pod

    CocoaPods could not find compatible versions for pod "razorpay_plugin":

    [!] CocoaPods could not find compatible versions for pod "razorpay_plugin": In Podfile: razorpay_plugin (from .symlinks/plugins/razorpay_plugin/ios)

    Specs satisfying the razorpay_plugin (from.symlinks/plugins/razorpay_plugin/ios) dependency were found, but they required a higher minimum deployment target.

    [!] Automatically assigning platform ios with version 8.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

    opened by SandyAra 8
  • android.permission.RECEIVE_SMS error while uploading to playstore

    android.permission.RECEIVE_SMS error while uploading to playstore

    I see that razorpay_flutter uses

    android.permission.RECEIVE_SMS

    but my application does not use this permission, when i tried to upload a build to play store i got a missing android.permission.RECEIVE_SMS warning after adding it to my androidmanifest the warning went away, so it is not clear in the readme, so

    Update the readme to include <uses-permission android:name="android.permission.RECEIVE_SMS" />

    opened by rajeshzmoke 3
  • app crashes when compiled with 0.2.9

    app crashes when compiled with 0.2.9

    When in pubspec.yaml

      razorpay_plugin: ^0.2.9 
    

    Flutter app crashes on launch. Even if I did not import or use any code from within the app. Removing it makes the app work again.

    Flutter doctor -v:

    flutter doctor -v
    [✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Linux, locale en_IN)
        • Flutter version 1.5.4-hotfix.2 at /home/raveesh/Android/flutter
        • Framework revision 7a4c33425d (11 days ago), 2019-04-29 11:05:24 -0700
        • Engine revision 52c7a1e849
        • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
    
     
    [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
        • Android SDK at /home/raveesh/Android/Sdk
        • Android NDK location not configured (optional; useful for native profiling
          support)
        • Platform android-28, build-tools 28.0.3
        • Java binary at: /home/raveesh/Android/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build
          1.8.0_152-release-1343-b16-5323222)
        • All Android licenses accepted.
    
    [✓] Android Studio (version 3.4)
        • Android Studio at /home/raveesh/Android/android-studio
        • Flutter plugin version 34.0.2
        • Dart plugin version 183.5901
        • Java version OpenJDK Runtime Environment (build
          1.8.0_152-release-1343-b16-5323222)
    
    [✓] VS Code (version 1.33.1)
        • VS Code at /usr/share/code
        • Flutter extension version 3.0.0
    
    [✓] Connected device (1 available)
        • Moto G 5 Plus • 192.168.1.2:5555 • android-arm • Android 8.1.0 (API 27)
    
    • No issues found!
    
    

    flutter analyze:

    Analyzing dole_app...                                                   
    No issues found! (ran in 17.0s)
    

    flutter run -v

    [ +322 ms] Running Gradle task 'assembleDebug'... (completed in 20.4s)
    [ +438 ms] calculateSha: LocalDirectory: '/media/raveesh/Archiver4T/current_active_project/dole/dole_app/build/app/outputs/apk'/app.apk
    [+4546 ms] Built build/app/outputs/apk/debug/app-debug.apk.
    [  +77 ms] executing: /home/raveesh/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /media/raveesh/Archiver4T/current_active_project/dole/dole_app/build/app/outputs/apk/app.apk AndroidManifest.xml
    [  +17 ms] Exit code 0 from: /home/raveesh/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /media/raveesh/Archiver4T/current_active_project/dole/dole_app/build/app/outputs/apk/app.apk AndroidManifest.xml
    [        ] N: android=http://schemas.android.com/apk/res/android
                 E: manifest (line=2)
                   A: android:versionCode(0x0101021b)=(type 0x10)0x3
                   A: android:versionName(0x0101021c)="0.0.3" (Raw: "0.0.3")
                   A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
                   A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
                   A: package="in.cookytech.dole_app" (Raw: "in.cookytech.dole_app")
                   A: platformBuildVersionCode=(type 0x10)0x3
                   A: platformBuildVersionName="0.0.3" (Raw: "0.0.3")
                   E: uses-sdk (line=7)
                     A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                     A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
                   E: uses-permission (line=14)
                     A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
                   E: uses-permission (line=17)
                     A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
                   E: uses-permission (line=18)
                     A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
                   E: uses-permission (line=19)
                     A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw: "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
                   E: uses-permission (line=20)
                     A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw: "com.google.android.c2dm.permission.RECEIVE")
                   E: application (line=28)
                     A: android:label(0x01010001)="FitExpo 2019" (Raw: "FitExpo 2019")
                     A: android:icon(0x01010002)=@0x7f0a0000
                     A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                     A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                     A: android:supportsRtl(0x010103af)=(type 0x12)0xffffffff
                     A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                     E: activity (line=35)
                       A: android:theme(0x01010000)=@0x7f0d00a5
                       A: android:name(0x01010003)="in.cookytech.dole_app.MainActivity" (Raw: "in.cookytech.dole_app.MainActivity")
                       A: android:launchMode(0x0101001d)=(type 0x10)0x1
                       A: android:configChanges(0x0101001f)=(type 0x11)0x400037b4
                       A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                       A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                       E: intent-filter (line=52)
                         E: action (line=53)
                           A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                         E: category (line=55)
                           A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                     E: meta-data (line=60)
                       A: android:name(0x01010003)="com.facebook.sdk.ApplicationId" (Raw: "com.facebook.sdk.ApplicationId")
                       A: android:value(0x01010024)=@0x7f0c0052
                     E: activity (line=64)
                       A: android:theme(0x01010000)=@0x7f0d0165
                       A: android:label(0x01010001)=@0x7f0c0027
                       A: android:name(0x01010003)="com.facebook.FacebookActivity" (Raw: "com.facebook.FacebookActivity")
                       A: android:configChanges(0x0101001f)=(type 0x11)0x5b0
                     E: activity (line=69)
                       A: android:name(0x01010003)="com.facebook.CustomTabActivity" (Raw: "com.facebook.CustomTabActivity")
                       A: android:exported(0x01010010)=(type 0x12)0xffffffff
                       E: intent-filter (line=72)
                         E: action (line=73)
                           A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
                         E: category (line=75)
                           A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
                         E: category (line=76)
                           A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
                         E: data (line=78)
                           A: android:scheme(0x01010027)=@0x7f0c0053
                     E: activity (line=83)
                       A: android:name(0x01010003)="com.hashbnm.razorpayplugin.RazorpayActivity" (Raw: "com.hashbnm.razorpayplugin.RazorpayActivity")
                       A: android:configChanges(0x0101001f)=(type 0x11)0x4e0
                     E: activity (line=86)
                       A: android:theme(0x01010000)=@0x1030010
                       A: android:name(0x01010003)="com.google.firebase.auth.internal.FederatedSignInActivity" (Raw: "com.google.firebase.auth.internal.FederatedSignInActivity")
                       A: android:permission(0x01010006)="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN" (Raw: "com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN")
                       A: android:exported(0x01010010)=(type 0x12)0xffffffff
                       A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                       A: android:launchMode(0x0101001d)=(type 0x10)0x2
                     E: service (line=94)
                       A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
                       A: android:exported(0x01010010)=(type 0x12)0x0
                       E: meta-data (line=97)
                         A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
                         A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                       E: meta-data (line=100)
                         A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar" (Raw: "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar")
                         A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                       E: meta-data (line=103)
                         A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" (Raw:
                         "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar")
                         A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                       E: meta-data (line=106)
                         A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw: "com.google.firebase.components:com.google.firebase.iid.Registrar")
                         A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                     E: receiver (line=111)
                       A: android:name(0x01010003)="com.razorpay.RzpTokenReceiver" (Raw: "com.razorpay.RzpTokenReceiver")
                       E: intent-filter (line=112)
                         E: action (line=113)
                           A: android:name(0x01010003)="rzp.device_token.share" (Raw: "rzp.device_token.share")
                     E: activity (line=117)
                       A: android:theme(0x01010000)=@0x7f0d00a4
                       A: android:name(0x01010003)="com.razorpay.CheckoutActivity" (Raw: "com.razorpay.CheckoutActivity")
                       A: android:configChanges(0x0101001f)=(type 0x11)0x4b0
                       E: intent-filter (line=121)
                         E: action (line=122)
                           A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                         E: data (line=124)
                           A: android:scheme(0x01010027)="io.rzp" (Raw: "io.rzp")
                           A: android:host(0x01010028)="rzp.io" (Raw: "rzp.io")
                     E: activity (line=129)
                       A: android:theme(0x01010000)=@0x1030010
                       A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" (Raw: "com.google.android.gms.auth.api.signin.internal.SignInHubActivity")
                       A: android:exported(0x01010010)=(type 0x12)0x0
                       A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                     E: service (line=138)
                       A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.RevocationBoundService" (Raw: "com.google.android.gms.auth.api.signin.RevocationBoundService")
                       A: android:permission(0x01010006)="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" (Raw: "com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION")
                       A: android:exported(0x01010010)=(type 0x12)0xffffffff
                     E: activity (line=143)
                       A: android:name(0x01010003)="com.facebook.CustomTabMainActivity" (Raw: "com.facebook.CustomTabMainActivity")
                     E: provider (line=153)
                       A: android:name(0x01010003)="com.facebook.internal.FacebookInitProvider" (Raw: "com.facebook.internal.FacebookInitProvider")
                       A: android:exported(0x01010010)=(type 0x12)0x0
                       A: android:authorities(0x01010018)="in.cookytech.dole_app.FacebookInitProvider" (Raw: "in.cookytech.dole_app.FacebookInitProvider")
                     E: receiver (line=158)
                       A: android:name(0x01010003)="com.facebook.CurrentAccessTokenExpirationBroadcastReceiver" (Raw: "com.facebook.CurrentAccessTokenExpirationBroadcastReceiver")
                       A: android:exported(0x01010010)=(type 0x12)0x0
                       E: intent-filter (line=161)
                         E: action (line=162)
                           A: android:name(0x01010003)="com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED" (Raw: "com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED")
                     E: receiver (line=165)
                       A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementReceiver")
                       A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                       A: android:exported(0x01010010)=(type 0x12)0x0
                     E: receiver (line=170)
                       A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
                       A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw: "android.permission.INSTALL_PACKAGES")
                       A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                       A: android:exported(0x01010010)=(type 0x12)0xffffffff
                       E: intent-filter (line=175)
                         E: action (line=176)
                           A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw: "com.android.vending.INSTALL_REFERRER")
                     E: service (line=180)
                       A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw: "com.google.android.gms.measurement.AppMeasurementService")
                       A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                       A: android:exported(0x01010010)=(type 0x12)0x0
                     E: service (line=184)
                       A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw: "com.google.android.gms.measurement.AppMeasurementJobService")
                       A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
                       A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                       A: android:exported(0x01010010)=(type 0x12)0x0
                     E: receiver (line=190)
                       A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw: "com.google.firebase.iid.FirebaseInstanceIdReceiver")
                       A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw: "com.google.android.c2dm.permission.SEND")
                       A: android:exported(0x01010010)=(type 0x12)0xffffffff
                       E: intent-filter (line=194)
                         E: action (line=195)
                           A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE")
                     E: service (line=202)
                       A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdService" (Raw: "com.google.firebase.iid.FirebaseInstanceIdService")
                       A: android:exported(0x01010010)=(type 0x12)0xffffffff
                       E: intent-filter (line=205)
                         A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
                         E: action (line=206)
                           A: android:name(0x01010003)="com.google.firebase.INSTANCE_ID_EVENT" (Raw: "com.google.firebase.INSTANCE_ID_EVENT")
                     E: activity (line=210)
                       A: android:theme(0x01010000)=@0x1030010
                       A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
                       A: android:exported(0x01010010)=(type 0x12)0x0
                     E: provider (line=215)
                       A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
                       A: android:exported(0x01010010)=(type 0x12)0x0
                       A: android:authorities(0x01010018)="in.cookytech.dole_app.firebaseinitprovider" (Raw: "in.cookytech.dole_app.firebaseinitprovider")
                       A: android:initOrder(0x0101001a)=(type 0x10)0x64
                     E: meta-data (line=221)
                       A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
                       A: android:value(0x01010024)=@0x7f080004
    [   +2 ms] Stopping app 'app.apk' on Moto G 5 Plus.
    [        ] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell am force-stop in.cookytech.dole_app
    [ +195 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell pm list packages in.cookytech.dole_app
    [ +710 ms] package:in.cookytech.dole_app
    [   +3 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell cat /data/local/tmp/sky.in.cookytech.dole_app.sha1
    [  +53 ms] 9cf17ff69b31f5a564964c665e1d4062f6d8f6e8
    [   +1 ms] Installing APK.
    [   +1 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb version
    [  +11 ms] Android Debug Bridge version 1.0.40
               Version 28.0.2-5303910
               Installed as /home/raveesh/Android/Sdk/platform-tools/adb
    [        ] executing: /home/raveesh/Android/Sdk/platform-tools/adb start-server
    [  +11 ms] Installing build/app/outputs/apk/app.apk...
    [        ] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 install -t -r /media/raveesh/Archiver4T/current_active_project/dole/dole_app/build/app/outputs/apk/app.apk
    [+40151 ms] Performing Streamed Install
                         Success
    [        ] Installing build/app/outputs/apk/app.apk... (completed in 40.2s)
    [   +1 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell echo -n e98d2d7b164f03007f42e12cfad4876bc53e7ef6 > /data/local/tmp/sky.in.cookytech.dole_app.sha1
    [  +35 ms] Moto G 5 Plus startApp
    [   +1 ms] executing: /home/raveesh/Android/Sdk/platform-tools/adb -s 192.168.1.2:5555 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez
    verify-entry-points true in.cookytech.dole_app/in.cookytech.dole_app.MainActivity
    [ +204 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=in.cookytech.dole_app/.MainActivity (has extras) }
    [        ] Waiting for observatory port to be available...
    
    
    opened by raveesh-me 2
  • Payment id is not generating after transaction failed

    Payment id is not generating after transaction failed

    payment not showing when transaction failed. But it generating in razor pay. For checking the payment details. It is difficult to find failed transactions details. So write a method to retrieve payed id after transaction failed.

    opened by fazil-augr 2
  • App Crashing in Android on startPayment

    App Crashing in Android on startPayment

    I have tried to integrate the plugin. Unfortunately, the app crashes with the following exception

    I/WebViewFactory(32008): Loading com.google.android.webview version 69.0.3497.91 (code 349709100) I/art (32008): Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TracingControllerAdapter> I/art (32008): Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TracingControllerAdapter> I/cr_LibraryLoader(32008): Time to load native libraries: 16 ms (timestamps 4359-4375) E/cr_VariationsUtils(32008): Failed reading seed file "/data/user/0/com.example.consumersample/app_webview/variations_seed_new": /data/user/0/com.example.consumersample/app_webview/variations_seed_new: open failed: ENOENT (No such file or directory) I/chromium(32008): [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0 I/cr_LibraryLoader(32008): Expected native library version number "69.0.3497.91", actual native library version number "69.0.3497.91" I/cr_BrowserStartup(32008): Initializing chromium process, singleProcess=true I/chromium(32008): [INFO:aw_field_trial_creator.cc(54)] First-WebView-Experiment not found W/cr_media(32008): Requires BLUETOOTH permission E/libEGL (32008): validate_display:255 error 3008 (EGL_BAD_DISPLAY) E/chromium(32008): [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_BAD_ATTRIBUTE W/AudioCapabilities(32008): Unsupported mime audio/ima-adpcm W/AudioCapabilities(32008): Unsupported mime audio/mpeg-L1 W/AudioCapabilities(32008): Unsupported mime audio/mpeg-L2 I/Choreographer(32008): Skipped 40 frames! The application may be doing too much work on its main thread. W/VideoCapabilities(32008): Unrecognized profile/level 32768/2 for video/mp4v-es W/VideoCapabilities(32008): Unsupported mime video/mjpg I/VideoCapabilities(32008): Unsupported profile 4 for video/mp4v-es W/VideoCapabilities(32008): Unrecognized profile/level 0/0 for video/mpeg2 W/VideoCapabilities(32008): Unrecognized profile/level 0/2 for video/mpeg2 W/VideoCapabilities(32008): Unrecognized profile/level 0/3 for video/mpeg2 I/VideoCapabilities(32008): Unsupported profile 4 for video/mp4v-es W/cr_MediaCodecUtil(32008): HW encoder for video/avc is not available on this device. I/art (32008): Background sticky concurrent mark sweep GC freed 6080(339KB) AllocSpace objects, 0(0B) LOS objects, 21% free, 1672KB/2MB, paused 23.712ms total 96.221ms E/chromium(32008): [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_BAD_ATTRIBUTE I/Choreographer(32008): Skipped 38 frames! The application may be doing too much work on its main thread. D/AndroidRuntime(32008): Shutting down VM E/AndroidRuntime(32008): FATAL EXCEPTION: main E/AndroidRuntime(32008): Process: com.example.consumersample, PID: 32008 E/AndroidRuntime(32008): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.consumersample/com.razorpay.CheckoutActivity}: java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=8 E/AndroidRuntime(32008): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417) E/AndroidRuntime(32008): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477) E/AndroidRuntime(32008): at android.app.ActivityThread.-wrap11(ActivityThread.java) E/AndroidRuntime(32008): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1345) E/AndroidRuntime(32008): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(32008): at android.os.Looper.loop(Looper.java:148) E/AndroidRuntime(32008): at android.app.ActivityThread.main(ActivityThread.java:5438) E/AndroidRuntime(32008): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(32008): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:762) E/AndroidRuntime(32008): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652) E/AndroidRuntime(32008): Caused by: java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=8 E/AndroidRuntime(32008): at java.lang.String.startEndAndLength(String.java:298) E/AndroidRuntime(32008): at java.lang.String.substring(String.java:1087) E/AndroidRuntime(32008): at com.razorpay.AnalyticsUtil.getKeyType(:223) E/AndroidRuntime(32008): at com.razorpay.AnalyticsUtil.setAppDetails(:212) E/AndroidRuntime(32008): at com.razorpay.AnalyticsUtil.setup(:52) E/AndroidRuntime(32008): at com.razorpay.l__d$.setOptions(:11048) E/AndroidRuntime(32008): at com.razorpay.b__J_.onCreate(:96) E/AndroidRuntime(32008): at com.razorpay.E$_6$.onCreate(:23) E/AndroidRuntime(32008): at com.razorpay.CheckoutActivity.onCreate(:8) E/AndroidRuntime(32008): at android.app.Activity.performCreate(Activity.java:6251) E/AndroidRuntime(32008): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110) E/AndroidRuntime(32008): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370) E/AndroidRuntime(32008): ... 9 more

    opened by shyjuzz 2
  • Module compiled with Swift 5.0 cannot be imported by the Swift 5.1 compiler

    Module compiled with Swift 5.0 cannot be imported by the Swift 5.1 compiler

    iOS build is failing with below exception with new XCODE release Version 11.0. Please update your iOS SDK to 5.1 in Flutter Project. Module compiled with Swift 5.0 cannot be imported by the Swift 5.1 compiler: /ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftmodule

    opened by pobyt 1
  • How to implement automatic capture of payment?

    How to implement automatic capture of payment?

    Whenever we get payment we have to manually capture the payment there's a way to automatically capture payment using Orders API https://docs.razorpay.com/v1/page/orders but I don't know how to start working on it with this plugin.

    enhancement 
    opened by MDSADABWASIM 1
  • Can't get it to work on iOS

    Can't get it to work on iOS

    Hi, I have use_frameworks! in my pod file but it crashes on iOS. When I try to launch the Razorpay payment screen, it says the following (repeat 4-5 times) and the app crashes:

     "signalStrengthChanged:info:",
        "cellChanged:cell:",
        "connectionStateChanged:connection:dataConnectionStatusInfo:",
        "carrierBundleChange:"
    )
    

    I'm running Xcode 10.1 and I've set the target iOS version to 10.0.

    Note: it works fine on Android.

    Is there anything else I need to do to get it to work on iOS?

    Note: I'm opening a new issue since this one is closed: #1

    EDIT: I tried to run the example app, and THAT WORKS! My pod file is exactly the same as the podfile in this repository, but the plugin doesn't work in my app :-(...

    opened by kbrmimbyl 1
  • razorpay_plugin

    razorpay_plugin

    When we can except web support from razorpay plugin. Anyone suggest some solution for another payment plugin that works similar to razorpay because we used razorpay for apps

    opened by Manjunath375 0
  • CocoaPods could not find compatible versions for pod

    CocoaPods could not find compatible versions for pod "razorpay_flutter":

    I'm trying to run an app that used razorpay_flutter:1.2.2 for flutter and when I want to run it on the ios simulator or physical device

    this error appears

    Error running pod install
    Error launching application on iPhone 12 Pro.
    

    and when I entered the ios file inside the project and trying to install cocoapods and update it

    then run pod install this error appears

    [!] CocoaPods could not find compatible versions for pod "razorpay_flutter":
      In Podfile:
        razorpay_flutter (from `.symlinks/plugins/razorpay_flutter/ios`)
    
    Specs satisfying the `razorpay_flutter (from `.symlinks/plugins/razorpay_flutter/ios`)` dependency were found, but they required a higher minimum deployment target.
    

    I also tried to change the deployment target from Xcode, nothing works what to do now?

    I'm using

    • flutter channel stable, 1.20.3
    • XCode Version 12.1
    • ios version 14.1
    opened by Tabarek 2
  • razorpay_flutter: ^1.1.4  give error when adding it in depenences.

    razorpay_flutter: ^1.1.4 give error when adding it in depenences.

    razorpay_flutter: ^1.1.4

    when i am adding the razorpay_flutter while the app is running, it works fine but when i restart the app i have the error error: constructor RazorpayFlutterPlugin in class RazorpayFlutterPlugin cannot be applied to given types; [ +1 ms] flutterEngine.getPlugins().add(new com.razorpay.razorpay_flutter.RazorpayFlutterPlugin()); [ ] ^ [ ] required: Registrar [ ] found: no arguments [ ] reason: actual and formal argument lists differ in length [ ] 1 error [ ] FAILURE: Build failed with an exception. [ ] * What went wrong: [ ] Execution failed for task ':app:compileDebugJavaWithJavac'. [ ] > Compilation failed; see the compiler error output for details. [ ] * Try: [ ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. [ ] * Get more help at https://help.gradle.org [ ] BUILD FAILED in 39s

    opened by m0nusingh 1
  • Issue when deploying AppBundle in playstore.

    Issue when deploying AppBundle in playstore.

    The app works fine on local development environment but when deployed to play store it crashes on opening gateway.

    Flutter Version : Flutter 1.12.13+hotfix.7 • channel stable • https://github.com/flutter/flutter.git Framework • revision 9f5ff2306b (9 days ago) • 2020-01-26 22:38:26 -0800 Engine • revision a67792536c Tools • Dart 2.7.0

    Plugin Version : razorpay_plugin : 0.3.0

    Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.chennaieguide.mobile/com.razorpay.CheckoutActivity}: java.lang.ClassNotFoundException: Didn't find class "com.razorpay.d__1_" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/base.apk", zip file "/data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/split_config.arm64_v8a.apk", zip file "/data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/split_config.en.apk", zip file "/data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/split_config.xxhdpi.apk"],nativeLibraryDirectories=[/data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/lib/arm64, /data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/base.apk!/lib/arm64-v8a, /data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/split_config.arm64_v8a.apk!/lib/arm64-v8a, /data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/split_config.en.apk!/lib/arm64-v8a, /data/app/com.chennaieguide.mobile-f98OWS6waZ_LpgO6jAszlg==/split_config.xxhdpi.apk!/lib/arm64-v8a, /system/lib64]]
           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3138)
           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3289)
           at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
           at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
           at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2012)
           at android.os.Handler.dispatchMessage(Handler.java:106)
           at android.os.Looper.loop(Looper.java:227)
           at android.app.ActivityThread.main(ActivityThread.java:7211)
           at java.lang.reflect.Method.invoke(Method.java)
           at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:575)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:903)
    
    opened by RajaShanmugamJM 2
  • Unable to resume activity: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=8888, result=0, data=Intent { (has extras) }} to activity  java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.MethodChannel$Result.success(java.lang.Object)' on a null object reference

    Unable to resume activity: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=8888, result=0, data=Intent { (has extras) }} to activity java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.MethodChannel$Result.success(java.lang.Object)' on a null object reference

    Hi, catch this crash on crashlytics.:-

    RazorpayPlugin.java line 48 com.hashbnm.razorpayplugin.RazorpayPlugin.onActivityResult

    Flutter version 1.5.4

    Stacktrace catch on crashlytics:

    Fatal Exception: java.lang.RuntimeException: Unable to resume activity : java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=8888, result=0, data=Intent { (has extras) }} to activity {com.foodmonk.androidapp/com.foodmonk.customer_app_v2.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.MethodChannel$Result.success(java.lang.Object)' on a null object reference at android.app.ActivityThread.performResumeActivity + 3657(ActivityThread.java:3657) at android.app.ActivityThread.handleResumeActivity + 3697(ActivityThread.java:3697) at android.app.ActivityThread.handleLaunchActivity + 2927(ActivityThread.java:2927) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage + 1639(ActivityThread.java:1639) at android.os.Handler.dispatchMessage + 106(Handler.java:106) at android.os.Looper.loop + 176(Looper.java:176) at android.app.ActivityThread.main + 6662(ActivityThread.java:6662) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 547(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main + 873(ZygoteInit.java:873)

    Caused by java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=8888, result=0, data=Intent { (has extras) }} to activity : java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.MethodChannel$Result.success(java.lang.Object)' on a null object reference at android.app.ActivityThread.deliverResults + 4365(ActivityThread.java:4365) at android.app.ActivityThread.performResumeActivity + 3629(ActivityThread.java:3629) at android.app.ActivityThread.handleResumeActivity + 3697(ActivityThread.java:3697) at android.app.ActivityThread.handleLaunchActivity + 2927(ActivityThread.java:2927) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage + 1639(ActivityThread.java:1639) at android.os.Handler.dispatchMessage + 106(Handler.java:106) at android.os.Looper.loop + 176(Looper.java:176) at android.app.ActivityThread.main + 6662(ActivityThread.java:6662) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 547(RuntimeInit.java:547)

    opened by vivekkujur 1
Owner
Chetan Kaushik
Software Engineer @gojek • Founder @TheAlgorithms • Google Summer of Code 2017 • Amateur Musician and Chess Player
Chetan Kaushik
A robust Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS

?? Paystack Plugin for Flutter A Flutter plugin for making payments via Paystack Payment Gateway. Fully supports Android and iOS. ?? Installation To u

Wilberforce Uwadiegwu 165 Jan 4, 2023
A shopping cart application that lets the user create an account, select items, save the items in the cart, pay using the payment gateway, change account details and check order history.

Shopping Cart A new Flutter application. The main code file has all the code required for the mobile application. Getting Started This project is a st

null 1 Oct 14, 2021
Zaincash payment gateway integration for flutter

zaincash_flutter A none offical Zaincash payment gateway integration for flutter INSTALL in your project terminal enter dart pub add zaincash USE F

Karrar S. Honi 1 May 20, 2022
Flutter/dart package for payment gateway bKash (Bangladesh)

bKash(BD) Mobile Finance Payment Gateway Flutter Package This is a Flutter package for bKash BD Payment Gateway. This package can be used in flutter p

Codeboxr CodeHub 6 Nov 11, 2022
Item selling mobile app with secure payments with Payhere payment gateway. Auto APK generation with github actions CI/CD.

payhere_demo A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Shihara Dilshan 2 Jan 20, 2022
A Flutter plugin for handling Connectivity and REAL Connection state in the mobile, web and desktop platforms. Supports iOS, Android, Web, Windows, Linux and macOS.

cross_connectivity A Flutter plugin for handling Connectivity and REAL Connection state in the mobile, web and desktop platforms. Supports iOS, Androi

MarchDev Toolkit 29 Nov 15, 2022
A Flutter plugin that supports Pangle SDK on Android and iOS.

Thanks for non-commercial open source development authorization by JetBrains. 穿山甲 Flutter SDK `pangle_flutter`是一款集成了字节跳动穿山甲 Android 和 iOS SDK的 Flutter

null 121 Dec 2, 2022
Lightweight SMS Misr gateway implementation in dart (unofficial).

palestine_sms_misr (unofficial) Part of PalestineDevelopers Lightweight SMS Misr gateway implementation in dart (unofficial). Table Of Contents Featur

Palestine Developers 3 Mar 10, 2022
A basic demo example for integrating between Appwrite & Flutter 💙

?? Quiz With Flutter A simple Quiz App built with Flutter and Appwrite ?? Getting Started ?? Install Appwrite Follow our simple Installation Guide to

Appwrite 35 Nov 22, 2022
A Flutter plugin to read 🔖 metadata of 🎵 media files. Supports Windows, Linux & Android.

flutter_media_metadata A Flutter plugin to read metadata of media files. A part of Harmonoid open source project ?? Install Add in your pubspec.yaml.

Harmonoid 60 Dec 2, 2022
P2P payment solution using Stream's Flutter SDK and Rapyd's Wallet API

Peer-to-peer payment integration to a messaging app using Flutter ?? This project shows how to integrate a peer-to-peer payment solution to your Strea

Souvik Biswas 15 Dec 8, 2022
Attendance and Payment manager

Manage Me Application A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you st

Rohit Karnawat 1 Oct 16, 2021
Online wallet app for money transfer and bill payment.

shapshapcoins Payment Platform Getting Started This project is a starting point for a Flutter application. A few

Ndoye Philip Ndula 1 Nov 14, 2021
Official Flutter SDK for Khalti Payment systems

Khalti Payment Gateway for Flutter Use Khalti Payment Gateway solution in your app or website to simplify payment for your customers. You do not need

Khalti 16 Oct 13, 2022
Generate a new file by compressed video, and provide metadata. Get video thumbnail from a video path, supports JPEG/GIF. To reduce app size not using FFmpeg in IOS.

flutter_video_compress Generate a new path by compressed video, Choose to keep the source video or delete it by a parameter. Get video thumbnail from

天海るり 179 Dec 8, 2022
A Flutter plugin to retrieve and manage contacts on Android and iOS devices. Maintainer: @lukasgit

contacts_service A Flutter plugin to access and manage the device's contacts. Usage To use this plugin, add contacts_service as a dependency in your p

Lukas Dickie 166 Dec 28, 2022
A Flutter plugin for playing music on iOS and Android.

Stereo plugin for Flutter A Flutter plugin for playing music on iOS and Android. Features Play/pause Stop Duration / seek to position Load track from

2find 67 Sep 24, 2022
A flutter IM plugin for android and ios

flutter_openim_sdk Download demo flutter_openim_widget A flutter IM plugin for android and ios. Getting Started 1,Add dependency in yaml flutter_op

kostia7alania 1 Dec 3, 2021
Video player-2.2.10 - A Flutter plugin for iOS, Android and Web for playing back video on a Widget surface

Video Player plugin for Flutter A Flutter plugin for iOS, Android and Web for pl

null 2 Sep 29, 2022