Type Method

canMakePaymentsUsingNetworks:

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

Declaration

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

Parameters

supportedNetworks

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

Return Value

YES if the user can make payments through any of the specified networks; otherwise, NO.

Discussion

User may not be able to make payments for a variety of reasons. For example, this functionality may not be supported by their hardware, or it may be restricted by parental controls.

If there are no configured payment cards, this method always returns NO.

See Also

Determining Whether the User Can Make Payments

+ canMakePayments

Returns whether the user can make payments.

+ canMakePaymentsUsingNetworks:capabilities:

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