presentPaymentSheet method
Implementation
Future<PaymentSheetResult> presentPaymentSheet() async {
final value = await _channel.invokeMapMethod<Object?, Object?>(
'presentPaymentSheet',
);
if (value == null) {
throw const FormatException('Native payment sheet returned no result');
}
return PaymentSheetResult.fromJson(value);
}