It is likely that your Apple Pay app right is not configured correctly.
I noticed that canMakePayments returns YES and canMakePaymentsUsingNetworks: returns NO when the right is not set.
(I also noticed that they can return YES when the seller ID set by you on PKPaymentRequest does not match the seller ID of your Apple Pay right. In this case, your PKPaymentAuthorizationViewController will be non-nil, but it will register a cryptic error in the console).
So, to make sure that Apple Pay is configured for your application, make sure that “Apple Pay” is “On” in the “Features” section of your target settings and that it has a merchant ID (which you will need to configure if you still have this did not do).
Then either:
- If you use your
BTPaymentProvider integration BTPaymentProvider , make sure that the certificate and seller ID are correctly configured in the Braintree control panel. - If you use the
PassKit direct integration PassKit , make sure that you set the merchantIdentifier property to the appropriate seller ID in the right.
Brent source share