Type Method

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) -> Bool

Parameters

supportedNetworks

An array of payment networks, as listed in Payment Networks.

capabilities

A bitmask of capability values. For a list of possible values, see PKPaymentMethodType.

Return Value

true, if the device supports Apple Pay and the user has added a compatible card; otherwise, NO.

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, Master Card, Visa, etc.) with the selected capabilities (for example, credit, debit, etc.).

See Also

Determining Whether the User Can Make Payments

class func canMakePayments() -> Bool

Returns whether the user can make payments.

class func canMakePayments(usingNetworks: [PKPaymentNetwork]) -> Bool

Returns whether the user can make payments through the specified network.