upi_payment_qrcode_generator
用于用户扫描并支付指定金额给收款人或用户特定金额的UPI支付二维码生成器。
为Flutter生成UPI支付二维码
{"sdk":"flutter"}^4.1.0^1.0.0{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
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.
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 |
Use this plugin in Flutter app too:
| Android | iOS | MacOS | Web | Linux | Windows |
|---|---|---|---|---|---|
| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
In the dependencies: section of your pubspec.yaml, add the following line:
dependencies:
upi_payment_qrcode_generator: <latest_version>
Import the Package:
import 'package:upi_payment_qrcode_generator/upi_payment_qrcode_generator.dart';
Create UPIDetails Object.
final upiDetails = UPIDetails(upiID: "UPI ID", payeeName: "Payee Name", amount: 1);
Here, UPIDetails contains requires a set of properties where,
NOTE: UPI Transaction will operate only in INR.
Include this widget in you Widget Tree
UPIPaymentQRCode(upiDetails: upiDetails, size: 200,),
Here, UPIPaymentQRCode contains requires a set of properties,
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,
Don't Forget to give Star and Like 🚀