getApplePayToken method

  1. @override
Future<NoonApplePayToken?> getApplePayToken(
  1. NoonApplePayConfig config
)
override

Presents the native Apple Pay sheet and returns the resulting token.

Returns null if the user cancels the sheet.

Implementation

@override
Future<NoonApplePayToken?> getApplePayToken(NoonApplePayConfig config) {
  throw UnsupportedError(
    'getApplePayToken is iOS-only. On Flutter Web use '
    'NoonPayments.payWithApplePayServerSide(...).',
  );
}