FLUTTER ECOSYSTEM

AgnelSelvan/upi_payment_qrcode_generator

Flutter용 UPI 결제 QR 코드 생성

upi_payment_qrcode_generator 프로젝트 이미지
Stars
20
Forks
7
최근 푸시(UTC)
2025. 1. 4.
프로젝트 상태
활성
Agnel Selvan GitHub avatar
GITHUB User

Agnel Selvan ↗

Building @Smart-Bill-Book

언어C++CMakeDartSwiftCRubyKotlinHTMLObjective-CShellJava

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개
  • flutter{"sdk":"flutter"}
  • qr_flutter^4.1.0
  • flutter_lints개발 의존성^1.0.0
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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

https://user-images.githubusercontent.com/47639176/222973840-931fa9e8-c0e1-4ffe-812f-8018f84f44f5.png
UPI Payment QRCode without amount specified UPI Payment QRCode with amount specified
https://user-images.githubusercontent.com/47639176/150126450-390c028a-9a8c-4a63-be2b-15b41a091a6e.jpeg https://user-images.githubusercontent.com/47639176/150126345-fb291cd8-94e6-4fb0-88be-c65df5730d95.jpeg

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 🚀