transactionWith method

  1. @override
Future<String?> transactionWith(
  1. double amount,
  2. int transactionType
)
override

Implementation

@override
Future<String?> transactionWith(double amount, int transactionType) async {
  try {
    final String? response = await _methodChannel.invokeMethod('transactionWith', {
      'amount': amount,
      'transactionType': transactionType,
    });
    return response;
  } on PlatformException catch (e) {
    throw Exception('Failed to perform transaction with: ${e.message}');
  }
}