搜索插件、代码仓与 APP 分类

插件详情v0.1.6

easy_upi_payment

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

Android
近 30 天下载
102
喜欢数
29
Pub 分数
150

安装插件

flutter pub add easy_upi_payment

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Easy UPI Payment 是一个 Flutter 插件,旨在简化印度 Android 设备上的 UPI(统一支付接口)交易。它使开发者能够以最少的设置将 UPI 支付集成到其应用中,利用原生 UPI 意图系统。该插件抽象了复杂的实现细节,允许用户通过支持的 UPI 应用(如 Google Pay、PhonePe 或 Paytm)发起支付。目前仅限于 Android 平台,提供了一种安全地处理支付请求和响应的简化方式。非常适合面向印度用户的电子商务、公用事业和服务类应用。

适合场景

  • 应用内购买
  • 账单支付
  • 捐赠收集
  • 服务费收取
  • 数字钱包充值

主要特点

  • 与 Android UPI 意图的简单集成
  • 支持主要的 UPI 应用
  • 安全的支付处理
  • 所需最少代码
  • 实时交易状态

适合对象

  • 印度电商应用
  • 移动银行工具
  • 订阅服务
  • 非营利捐赠平台
  • 公用事业账单支付应用

使用建议

  • 仅限 Android 支持
  • 仅限印度
  • 需要在用户设备上安装 UPI 应用
  • 无 iOS 支持
  • 取决于用户 UPI 应用的可用性

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

easy_upi_payment

pub.dev version Twitter License: MIT

A new flutter plugin to make upi payment with ease currently only supported by Android (only for India).

Screenshot

Download Easy Upi Payment Apk

System requirements

  • Flutter: >= 2.5.0
  • Dart: ">=2.17.6 <3.0.0"
  • Android: min sdk 19

Getting started

Add the plugin package to the pubspec.yaml file in your project:

dependencies:
  easy_upi_payment: ^0.1.5

Install the new dependency:

flutter pub get

now go to android/app/build.gradle & add following lines

    defaultConfig {
-       minSdkVersion flutter.minSdkVersion
+       minSdkVersion 19
    }

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

Usage

    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
    }

for more details see example

Note: its uses third party android package EasyUpiPayment-Android

License

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.

所属分类

依赖

依赖清单 1 项

  • plugin_platform_interface^2.1.6

源码仓库

使用此插件的项目