applepay

PKPaymentAuthorizationViewController not nil but not showing

你。 提交于 2021-02-10 09:24:09
问题 I'm trying to display a PKPaymentAuthorizationViewController which is not nil but isn't showing. I worked before but it doesn't anymore. The entitlement and merchant id seems good. Here is my init code (without useless code) PKPaymentRequest *request = [PKPaymentRequest new]; request.merchantIdentifier = kApplePayMerchantId; request.merchantCapabilities = PKMerchantCapability3DS; request.supportedNetworks = self.class.supportedNetworks; request.countryCode = _countryCode; request.currencyCode

How can I increase the failure timeout of an apple Pay operation?

非 Y 不嫁゛ 提交于 2021-01-29 14:10:33
问题 In the current implementation, my payment takes a long time in some cases. Often users have an error like "Apple pay not completed". The question says that in iOS 11 this happens after 15-20 seconds, can I increase this time , if so, how ? If the payment has time to process during this time, the payment in apple pay is successful. 回答1: Unfortunately this is not possible from what i know and what i found , the onpaymentauthorized method has to be called within 30 seconds , if not the payment

ApplePay测试开发心得

亡梦爱人 提交于 2020-10-29 17:03:36
ApplePay测试开发心得 上周自己测试了一下 ApplePay 的开发. 今天面试的一个iOS开发, 我说ApplePay和3D-Touch, 那货竟然一愣一愣的... 看来还是有很多人不太会的, 分享一下吧, 让更多的人学习. 不试不知道, 一试吓一跳, ApplePay开发竟然这么简单.... 苹果ApplePay开发文档 对于这种新技术, 最靠谱的就是苹果的开发文档了, 对染全是英文的, 但是看多了自然就能看懂了, 作为一名iOS程序猿, 我认为好好养成读苹果官方文档这个习惯还是不错的. 第一步: 配置环境 Applepay配置环境 苹果官方写的这么详细, 我就不写了, 按照步骤一步一步来就行了. 配置环境的过程就这么简单, 但是一步也不能少, 必须全部配置完. 第二步: 上代码 Apple Pay,是苹果公司在2014苹果秋季新品发布会上发布的一种基于NFC的手机支付功能,于2014年10月20日在美国正式上线。 2014年秋季applepay面世, 2016.2.18 ApplePay正式登陆中国, 说这些废话是想表达, ApplePay是个新东西, 所以它一定不会太难 ! 另外 苹果官方文档上面, 对代码部分也有很详细的教程. 以下代码就是唤出苹果支付的控制器, 可唤出控制器之前进行一些基本的设置. 详情请看注释, 也是很简单的,