GoR*_*RoS 5 iphone objective-c ios applepay
我知道iOS 9 中有特定的新方法支持特定情况或用例的Apple Pay抑制。我有一个需要使用以下方法进行应用的人员之一:
+ (PKSuppressionRequestToken)requestAutomaticPassPresentationSuppressionWithResponseHandler:(void (^ _Nonnull)(PKAutomaticPassPresentationSuppressionResult result))responseHandler
Run Code Online (Sandbox Code Playgroud)
但是,每次调用此方法时,都会得到以下响应: PKAutomaticPassPresentationSuppressionResultDenied (Either the user prevented the suppression, or an internal error occurred)
在文档标记中作为重要提示,请注意:
重要说明此方法需要Apple发行的特殊权利。如果没有权利,则请求将失败,并显示PKAutomaticPassPresentationSuppressionResultNotSupported结果。有关更多信息,请访问developer.apple.com/apple-pay/。
为了得到PKAutomaticPassPresentationSuppressionResultSuccess
结果我们应该怎么做?我们在“ Apple ID”中启用了Apple Pay,甚至创建了Merchand ID,然后再次下载了Development Provisioning Profile,其中包括所有这些并包含在项目中。在那里,我们也启用了“ Apple Pay”功能,但是仍然PKAutomaticPassPresentationSuppressionResultDenied
出现错误。
测试环境信息:
谢谢大家
在向Apple开发人员技术支持(DTS)提出私人查询后,他们告诉我必须为此目的通过电子邮件请求特定的权利。在那封电子邮件中,我不得不说明为什么应该使用此PassKit功能以及如何使用它。
一旦他们提供了此权利(几周后),就足以将其添加到我们的配置文件中,该requestAutomaticPassPresentationSuppressionWithResponseHandler
方法将可以正常工作。