transactionWith method
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}');
}
}