presentPaymentSheet method

  1. @override
Future<Map<String, dynamic>?> presentPaymentSheet()
override

Presents the payment sheet.

Throws an UnimplementedError if the method is not implemented.

Implementation

@override
Future<Map<String, dynamic>?> presentPaymentSheet() async {
  final result = await methodChannel
      .invokeMethod<Map<dynamic, dynamic>>('presentPaymentSheet');
  if (result != null) {
    final Map<String, dynamic> resultMap = Map<String, dynamic>.from(result);
    return resultMap;
  }
  return null;
}