requestApplePay abstract method

Future<TapPayPrime?> requestApplePay({
  1. required List<CartItem> cartItems,
  2. required String currencyCode,
  3. required String countryCode,
})

Request Apple Pay

cartItems is the list of items in the cart currencyCode is the currency code of the transaction countryCode is the country code of the transaction

return ApplePayResult with value success as true if success. return ApplePayResult with value success as false if fail. return ApplePayResult with value message as String if fail. return ApplePayResult with value prime as String if success. return null if the request is incomplete

Implementation

Future<TapPayPrime?> requestApplePay({
  required List<CartItem> cartItems,
  required String currencyCode,
  required String countryCode,
});