Type Method

availableNetworks()

Returns the list of available payment networks that are supported by Apple Pay.

Declaration

class func availableNetworks() -> [PKPaymentNetwork]

Return Value

An array of strings representing the available payment networks. For a list of possible networks, see PKPaymentNetwork.

Discussion

To dynamically select the payment networks at runtime, use this method to get the complete list of currently supported networks. You can then filter this list, as needed, and assign the results to the payment request’s supportedNetworks property.

See Also

Selecting the Payment Networks

var supportedNetworks: [PKPaymentNetwork]

The payment networks that you support.

struct PKPaymentNetwork

Payment networks.