chargeCard method

  1. @override
Future<String?> chargeCard(
  1. BuildContext context, {
  2. required String amount,
  3. required String accountType,
  4. required ConnectivityType connectivityType,
})
override

Implementation

@override
Future<String?> chargeCard(BuildContext context,
    {required String amount,
    required String accountType,
    required ConnectivityType connectivityType}) async {
  var args = <String, dynamic>{
    "amount": amount,
    'account_type': '00',
  };

  final res =
      await methodChannel.invokeMethod<String>('startTransaction', args);
  return res;
}