paymentRequestWithNativePay static method
Future<Token>
paymentRequestWithNativePay({
- required AndroidPayPaymentRequest androidPayOptions,
- required ApplePayPaymentOptions applePayOptions,
Implementation
static Future<Token> paymentRequestWithNativePay(
{required AndroidPayPaymentRequest androidPayOptions, required ApplePayPaymentOptions applePayOptions}) {
if (kIsWeb) {
throw UnimplementedError();
} else {
if (Platform.isAndroid) {
return _paymentRequestWithAndroidPay(androidPayOptions);
} else if (Platform.isIOS) {
return _paymentRequestWithApplePay(applePayOptions);
} else
throw UnimplementedError();
}
}