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

插件详情v1.6.0

upi_payment_qrcode_generator

用于用户扫描并支付指定金额给收款人或用户特定金额的UPI支付二维码生成器。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
307
喜欢数
47
Pub 分数
135

安装插件

flutter pub add upi_payment_qrcode_generator

插件介绍

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

一个 Flutter 包,用于生成 UPI 支付二维码,实现无缝交易。它允许用户创建包含特定收款人信息和金额的可扫描二维码,通过支持 UPI 的应用程序实现快速安全的支付。该包支持 Android、iOS、Web、macOS、Windows 和 Linux 多个平台,非常适合跨平台应用。它简化了需要即时收款功能的应用程序(如电子商务、捐赠或服务账单)的集成。

适合场景

  • 电子商务结账
  • 捐赠收集
  • 服务计费
  • 发票付款
  • 数字收据
  • 点对点转账

主要特点

  • 跨平台支持
  • 可自定义金额和收款人
  • 安全的二维码生成
  • 轻松集成
  • 支持所有主要的 UPI 应用
  • 轻量且快速

适合对象

  • 移动和网页应用
  • 支付网关
  • 商业发票
  • 非营利捐赠系统
  • 零售POS系统

使用建议

  • 需要用户设备上的UPI应用
  • 仅限印度UPI生态系统
  • 二维码必须安全显示
  • 无离线交易跟踪
  • 取决于收件人UPI ID的有效性

原始 README

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

UPI Payment QRCode Generator.

This Plugin mainly focus on the generation of UPI Payment QRCode, so that the user can scan the QRCode for paying the specific amount of money using UPI.

pub package

UPI Payment QRCode without amount specified UPI Payment QRCode with amount specified

Features

Use this plugin in Flutter app too:

  • Make a UPI Payment to a Payee of specific amount of money by scanning the QRCode generated by this plugin.
  • You can generate a UPI Payment QRCode without entering specific amount, so that user can pay the amount they want to send.
  • You can add your branding Logo in QRCode.

Platform Support

Android iOS MacOS Web Linux Windows
✔️ ✔️ ✔️ ✔️ ✔️ ✔️

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

    dependencies:
        upi_payment_qrcode_generator: <latest_version>

Getting Started

Step 1

Import the Package:

import 'package:upi_payment_qrcode_generator/upi_payment_qrcode_generator.dart';
Step 2

Create UPIDetails Object.

final upiDetails = UPIDetails(upiID: "UPI ID", payeeName: "Payee Name", amount: 1);

Here, UPIDetails contains requires a set of properties where,

  • upiID value is required we need to pass the UPI ID or Virtual Payment Address(VPA) e.g 712534798@paytm
  • payeeName value is required, pass the payeeName or the Business Name
  • amount value is optional, if amount has value then the user cannot change the amount while transferring else the user can send the amount as per the user required.
  • transactionID value is optional, Transation ID is generated by the payment Service Provider. NOTE: Transaction ID has to be unique in each transaction otherwise, transaction results in Payment Failed
  • transactionNote value is optional, This is specially for the note you want to send while transferring the amount.
  • currencyCode value is optional, Default value is INR

NOTE: UPI Transaction will operate only in INR.

Step 3

Include this widget in you Widget Tree

UPIPaymentQRCode(upiDetails: upiDetails, size: 200,),

Here, UPIPaymentQRCode contains requires a set of properties,

  • upiDetails value is required we need to pass the UPI Details
Include Branding Logo in QRCode

Include this widget in you Widget Tree

  UPIPaymentQRCode(
    upiDetails: upiDetails, 
    size: 200,
    embeddedImagePath: 'assets/images/logo.png',
    embeddedImageSize: const Size(60, 60),
  ),

Here, UPIPaymentQRCode contains requires a set of properties,

  • upiDetails value is required we need to pass the UPI Details.
  • embeddedImagePath value is needed for passing the branding logo.
  • embeddedImageSize is for giving width and height to the embeddedImagePath.

Don't Forget to give Star and Like 🚀

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。