Type Method

canMakePaymentsUsingNetworks:capabilities:

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

Declaration

+ (BOOL)canMakePaymentsUsingNetworks:(NSArray<PKPaymentNetwork> *)supportedNetworks capabilities:(PKMerchantCapability)capabilties;

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

YES, 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

+ canMakePayments

Returns whether the user can make payments.

+ canMakePaymentsUsingNetworks:

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