initiateTransaction method

  1. @override
Future<Map?> initiateTransaction({
  1. required UPITransaction upiTransaction,
})
override

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 ?? "",
  );
}