Last updated:
0 purchases
ns upi
ns_upi #
Find installed UPI payment apps on your phone and make payments using any one of them.
Getting Started #
Add this package to your flutter project's pubspec.yaml as a dependency as follows:
dependencies:
...
ns_upi: ^1.0.2
copied to clipboard
Import the package as follows:
import 'package:ns_upi/ns_upi.dart';
copied to clipboard
iOS configuration #
In Runner/Info.plist add or modify the LSApplicationQueriesSchemes key so it includes custom query schemes shown as follows:
...
<key>LSApplicationQueriesSchemes</key>
<array>
<string>Bandhan</string>
<string>BHIM</string>
<string>CanaraMobility</string>
<string>CentUPI</string>
<string>com.amazon.mobile.shopping</string>
<string>com.ausmallfinancebank.aupay.bhimupi</string>
<string>com.jkbank.bhimjkbankupi</string>
<string>com.rbl.rblimplicitjourney</string>
<string>com.syndicate.syndupi</string>
<string>com.vijayabank.UPI</string>
<string>cred</string>
<string>dbin</string>
<string>freecharge</string>
<string>gpay</string>
<string>hdfcnewbb</string>
<string>imobileapp</string>
<string>in.cointab.app</string>
<string>in.fampay.app</string>
<string>kvb.app.upiapp</string>
<string>lotza</string>
<string>mobikwik</string>
<string>money.bullet</string>
<string>myairtel</string>
<string>myJio</string>
<string>paytm</string>
<string>payzapp</string>
<string>phonepe</string>
<string>truecaller</string>
<string>ucoupi</string>
<string>upi</string>
<string>upibillpay</string>
<string>whatsapp</string>
<string>www.citruspay.com</string>
</array>
...
copied to clipboard
Usage #
Get list of installed apps
final List<ApplicationMeta> appMetaList = await NsUpi.getInstalledUpiApps();
copied to clipboard
Do a UPI transaction
Future<void> upiTransaction(ApplicationMeta appMeta) {
final UpiTransactionResponse response = await NsUpi.initiateTransaction(
amount: '1.00',
app: appMeta.application,
receiverName: 'Ajay Kumar',
receiverUpiAddress: '7875056731@paytm',
transactionRef: 'NONSTOPIO000001',
transactionNote: 'A TEST UPI Transaction',
);
debugPrint(response.status);
}
copied to clipboard
Note: This package is inspired from upi_pay package.
As the package was not maintained for a long time, I decided to create a new package with some
additional features.
Contributing #
There are couple of ways in which you can contribute.
Propose any feature, enhancement
Report a bug
Fix a bug
Participate in a discussion and help in decision making
Write and improve some documentation. Documentation is super critical and its importance
cannot be overstated!
Send in a Pull Request :-)
Thanks to all contributors of this package
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.