NoonApplePayConfig class

Configuration used to present the native Apple Pay sheet (PassKit).

This is required for the direct Apple Pay integration where the merchant app collects the Apple Pay token itself instead of using Noon's drop-in payment sheet.

Constructors

NoonApplePayConfig({required String merchantIdentifier, required String countryCode, required String currencyCode, required List<NoonApplePaySummaryItem> summaryItems, List<ApplePayNetwork> supportedNetworks = const [ApplePayNetwork.visa, ApplePayNetwork.masterCard, ApplePayNetwork.mada], List<ApplePayMerchantCapability> merchantCapabilities = const [ApplePayMerchantCapability.threeDSecure]})
const

Properties

countryCode String
ISO 3166-1 alpha-2 country code of the merchant (e.g. "AE", "SA").
final
currencyCode String
ISO 4217 currency code (e.g. "AED", "SAR"). Should match the order.
final
hashCode int
The hash code for this object.
no setterinherited
merchantCapabilities List<ApplePayMerchantCapability>
Merchant capabilities. Defaults to ApplePayMerchantCapability.threeDSecure.
final
merchantIdentifier String
Your Apple Pay merchant identifier, e.g. merchant.com.yourcompany.app.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summaryItems List<NoonApplePaySummaryItem>
Lines shown in the Apple Pay sheet. The last item is the grand total.
final
supportedNetworks List<ApplePayNetwork>
Card networks to accept. Include ApplePayNetwork.mada for mada cards.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Serializes the config for the method channel.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited