paymentRequestWithNativePay static method

Future<Token> paymentRequestWithNativePay({
  1. required AndroidPayPaymentRequest androidPayOptions,
  2. 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();
  }
}