FlutterNativeUpi class
A Flutter Native UPI (Unified Payments Interface) manager for handling UPI transactions.
This class encapsulates methods to initiate UPI transactions, retrieve a list of UPI apps, and launch UPI apps on both Android and iOS platforms. It uses platform channels to communicate with native code for UPI transaction initiation and app navigation.
Constructors
- FlutterNativeUpi(MethodChannel _channel)
- Creates an instance of FlutterNativeUpi with the provided method channel.
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
-
getAllUpiApps(
) → Future< List< UpiApp> > - Retrieves a list of UPI apps available on the device.
-
initiateTransaction(
UPIRequestParameters upiRequestParams) → Future< UpiResponse> -
Initiates a UPI transaction with the given
upiRequestParams
. -
initiateTransactioniOS(
String? url) → Future< String> - Initiates a UPI transaction on iOS with the provided URL.
-
isValidDecimal(
String input) → bool -
Checks if the provided
input
is a valid decimal. -
makeDecimal(
String amount) → String -
Converts the provided
amount
to a valid decimal format. - Navigates to the App Store to download the specified UPI payment app.
-
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