ApplePayNetwork class

Card networks that can be offered in the native Apple Pay sheet.

Use the predefined constants (visa, masterCard, mada, …) for the common networks. To support a network Apple has added but this package does not yet expose, pass a custom value:

ApplePayNetwork('Jaywan') // must match Apple's exact PKPaymentNetwork raw value

Custom values are forwarded straight to PKPaymentNetwork(rawValue:) on iOS, so they must use Apple's exact spelling/casing (e.g. "Jaywan"). The predefined constants below are case-insensitive.

To accept mada cards, make sure mada is included.

Constructors

ApplePayNetwork(String value)
Creates a network identifier. Prefer the predefined constants; use this only for networks not yet exposed by the package.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The identifier sent to the native platform.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

amex → const ApplePayNetwork
American Express
discover → const ApplePayNetwork
Discover
jcb → const ApplePayNetwork
JCB
mada → const ApplePayNetwork
mada (Saudi domestic network)
maestro → const ApplePayNetwork
Maestro
masterCard → const ApplePayNetwork
Mastercard
visa → const ApplePayNetwork
Visa