initiateTransaction method
Implementation
@override
Future<Map?> initiateTransaction({
required UPITransaction upiTransaction,
}) async {
return await launchIntent(
intentDetails: FlutterIntentWithResult(
url: upiTransaction.upiUrl,
requestCode: 1233,
),
onResponse: (dynamic response) {
upiTransaction.onResponse?.call(UPITransactionResponse.fromString(
response?['extraData']?['response'] ?? ""));
},
packageName: upiTransaction.upiApp?.packageName ?? "",
);
}