且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Stripe和Apple Pay在iOS App中不起作用

更新时间:2023-12-03 21:39:28

2015年5月-也遇到了此问题.

May 2015 - Also encountered this problem.

由于我的配置文件和其他未正确设置的内容出现问题,我必须为我的应用程序重做所有证书.

I had to redo all the certificates for my app due, because I had an issue with the provisioning profile and other stuff that were not set up correctly.

Apple pay WAS在所有更改之前都可以工作...在我更改所有证书之后仍然可以工作,但是....天后它停止工作!!!

Apple pay WAS working before all the changes...still worked after I changed all the certificates, but....day later it stopped working!!!

这就是我所做的.

我检查了手机中的Apple Pay设置,重新添加了我的帐单邮寄地址(有时可能是问题所在,但这不是问题所在).

I check the Apple Pay settings in the phone, re-added my billing address (sometimes this could be the problem, but it wasn't).

我在应用程序中检查了权利证书,以确保已正确设置.在这里,请确保您已经包括了您的商家ID ...应该从Merchant.com.nameOfApp开始(您可以从Apple Center的商家ID中获取它.(这很好-没问题)

I check the entitlements certificate in the app, to make sure that it was properly setup. Here make sure you have your merchant id included...should start with merchant.com.nameOfApp (you can get this from apple center under merchant id. (This was good - not the problem)

检查了我所有的证书-一切似乎都是正确的.

Checked all my certificates - everything seem to be correct.

我做的最后一件事是重新生成苹果薪水证明.繁荣!这就是问题所在.不知道为什么,它只是起作用.从您的计算机上删除条纹和Apple Apple Pay的旧证书,然后按照Stripe/Apple Pay文档中的说明进行操作.

The last thing I did was to regenerate the certificate for apple pay. BOOM! That was the issue. Not sure why, it just worked. Delete the old certificates for stripe and apple apple pay from your computer and follow the instructions in the stripe/apple pay documentation.

在这里看到

https://stripe.com/docs/mobile/apple-pay

希望获得帮助!