canMakePayments(usingNetworks:capabilities:)
Returns whether the user can make payments using a card from the specified network with the specified capabilities.
Declaration
class func canMakePayments(usingNetworks supportedNetworks: [PKPaymentNetwork], capabilities capabilties: PKMerchantCapability) -> BoolParameters
- supportedNetworks:
An array of payment networks, as listed in Payment Networks.
- capabilties:
A bitmask of capability values. For a list of possible values, see Pkmerchantcapability.
Return Value
true, if the device supports Apple Pay and the user has added a compatible card; otherwise, false.
Discussion
Use this method to see whether the user can make payments using a card from one of the selected networks (for example, American Express, Discover, Mastercard, Visa, etc.) with the selected capabilities (for example, credit, debit, etc.).