UpiIntent class

The main entry point for upi_intent plugin

Example usage:

final response = await UpiIntent.pay(
  context: context,
  payment: UpiPayment(
    payeeVpa: 'merchant@upi',
    payeeName: 'My Shop',
    amount: 99.00,
    transactionNote: 'Order #1234',
  ),
);

if (response != null && response.isSuccess) {
  print('Payment successful! TxnID: ${response.transactionId}');
}

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

buildUpiUrl(UpiPayment payment) → String
Build a raw UPI URL without launching anything
getInstalledApps() → Future<List<UpiApp>>
Get list of UPI apps installed on the device
pay({required BuildContext context, required UpiPayment payment}) → Future<UpiResponse?>
Launch UPI payment with a beautiful app picker
payWithApp({required UpiPayment payment, required UpiApp app}) → Future<UpiResponse?>
Pay directly with a specific UPI app (no picker shown)