Contents

canMakePayments(usingNetworks:capabilities:)

Returns whether the user can make payments using a card from the specified network with the specified capabilities.

Declaration

nonisolated class func canMakePayments(usingNetworks supportedNetworks: [PKPaymentNetwork], capabilities capabilties: PKMerchantCapability) -> Bool

Parameters

  • supportedNetworks:

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

  • capabilties:

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

See Also

Determining whether the user can make payments