Skip to content
pubscout

upi_india

3.0.1, released 6 years ago by an unverified publisher

A Flutter plugin to perform UPI transactions through different apps in Android.

WASM-readyRepository archivedUnverified publisher
$ flutter pub add upi_india
Source repository

What it does

Allows Android applications to query installed UPI apps and initiate payments using UPI IDs or account numbers. It handles responses and returns transaction statuses such as success, submission, or failure.

AI-written summary of version 3.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building an Android app that needs to accept UPI payments.
  • You want to allow users to pay using popular UPI apps like Google Pay, PhonePe, or Paytm.

Skip it when

  • You need iOS support, as this plugin is Android-only.
  • You are looking for non-UPI payment gateways.

Strengths

  • Supports a wide range of verified and non-verified UPI apps on Android.
  • Provides custom exception handling for common transaction errors.

Weaknesses

  • Restricted to Android only.
  • Some major apps like Google Pay and PhonePe may occasionally report errors like maximum limit exceeded.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Android only. Requires integrating with Android UPI intent handling.

UpiIndia _upiIndia = UpiIndia();
Future<UpiResponse> initiateTransaction(UpiApp app) async {
  return _upiIndia.startTransaction(
    app: app,
    receiverUpiId: "9078600498@ybl",
    receiverName: 'Md Azharuddin',
    transactionRefId: 'TestingUpiIndiaPlugin',
    transactionNote: 'Not actual. Just an example.',
    amount: 1.00,
  );
}