doPayment method

  1. @override
Future<Map?> doPayment({
  1. required AuropayBuilder builder,
  2. required double amount,
  3. String? orderId,
})
override

doPayment @param AuropayBuilder

initiate payment with platform specific chanel and required data

Implementation

@override
Future<Map<dynamic, dynamic>?> doPayment(
    {required AuropayBuilder builder,
    required double amount,
    String? orderId}) async {
  final version = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(
      'do_payment', builder.toJson(amount, orderId: orderId));
  return version;
}