easy_upi_payment

pub.dev version Twitter License: MIT

一个全新的 Flutter 插件,可以轻松实现 UPI 支付,目前仅支持 Android(仅适用于印度)。

截图

下载 Easy Upi Payment Apk

系统要求

  • Flutter: >= 2.5.0
  • Dart: >=2.17.5 <3.0.0
  • Android: 最低 SDK 19

入门

将插件包添加到项目中的 pubspec.yaml 文件

dependencies:
  easy_upi_payment: ^0.1.0

安装新的依赖

flutter pub get

现在转到 android/app/build.gradle 并添加以下行

    defaultConfig {
-       minSdkVersion flutter.minSdkVersion
+       minSdkVersion 19
    }

    dependencies {
+       implementation "dev.shreyaspatil.EasyUpiPayment:EasyUpiPayment:3.0.3"
    }

用法

    final res = await EasyUpiPaymentPlatform.instance.startPayment(
      EasyUpiPaymentModel(
          payeeVpa: 'gaurav.jajoo@upi',
          payeeName: 'Gaurav Jajoo',
          amount: 10.0,
          description: 'Testing payment',
        ),
      );
      // TODO: add your success logic here
      print(res);
    } on EasyUpiPaymentException {
      // TODO: add your exception logic here
    }

有关更多详细信息,请参阅 示例

注意:它使用了第三方 Android 包 EasyUpiPayment-Android

许可证

MIT License

Copyright (c) 2022 GJJ2019

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

GitHub

查看 Github