I am aware that there is specific new method in iOS 9 that supports Apple Pay suppression for specific scenarios or use cases. I have one of those who need to be applied with the following method:
+ (PKSuppressionRequestToken)requestAutomaticPassPresentationSuppressionWithResponseHandler:(void (^ _Nonnull)(PKAutomaticPassPresentationSuppressionResult result))responseHandler
However, every time we call this method we get the following response: PKAutomaticPassPresentationSuppressionResultDenied (Either the user prevented the suppression, or an internal error occurred)
In the documentation marks as an importante note that:
IMPORTANT This method requires a special entitlement issued by Apple. If the entitlement is not present, the request will fail with a PKAutomaticPassPresentationSuppressionResultNotSupported result. For more information, see developer.apple.com/apple-pay/.
What should we do in order to get the PKAutomaticPassPresentationSuppressionResultSuccess
result? We have enabled the Apple Pay in our "Apple ID" and even created a Merchand ID, after that downloaded again the Development Provisioning Profile which includes all this and included in the project. There as well we enabled the "Apple Pay" capability but we still get the PKAutomaticPassPresentationSuppressionResultDenied
error.
Testing environment Information:
Thanks for all
If you're seeing notifications about needing to complete the Apple Pay setup process, you do so in your regular Settings app. If you've already set up Apple Pay but don't want it to send you any notifications, you can disable notifications in the Wallet section of the Settings app.
ApplePay opens on your phone because you've got your finger resting on the home button while the phone is locked. It can also sometimes open if you double-click the home button while the phone is locked. Happens to me all the time because I'm clumsy. ;-) Can I remove my card from someone else's Apple Pay?
Go to Settings > Notifications > Wallet , turn Allow Notifications off. Go to Settings > Wallet & Apple Pay , turn both the Apple Cash and Double-Click Home Button off. Go to Settings > Safari , scroll to the bottom, turn Check for Apple Pay off.
After opening a private query to the Apple Developer Technical Support (DTS) they told me I had to request a specific entitlement for this purpose via email. In that email I had to justify why should I use this PassKit functionality and how would it be utilized.
Once they made this entitlement available (after some weeks) it was just enough to add it to our provisioning profiles and the requestAutomaticPassPresentationSuppressionWithResponseHandler
method would work without any problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With