简体   繁体   English

Apple 和 Stripe:在 xcode 中看不到商家 ID/Apple Pay 证书

[英]Apple and stripe : Merchant id/apple pay certificate could not seen in xcode

I have followed every steps to create stripe credit card payment functionality with apple pay in my app.我已经按照每个步骤在我的应用程序中使用 Apple Pay 创建条纹信用卡支付功能。 It is works fine for my xcode and merchant id/bundle id.它适用于我的 xcode 和商家 ID/捆绑 ID。

What I need: My client have his own apple developer account, and he want to add his client's merchant id in app.我需要什么:我的客户有自己的苹果开发者帐户,他想在应用程序中添加客户的商家 ID。

What I have from client: 1. IOS developer certificate(with Bundle id) 2. Apple pay certificate 3. Merchant id我从客户那里得到的: 1. IOS 开发者证书(带 Bundle id) 2. Apple pay 证书 3. 商家 id

I have added developer certificate and apple pay certificate in key chain.我在钥匙串中添加了开发者证书和苹果支付证书。 as well as changed "Build settings -> code signing" with clients developer certificate .以及使用客户端开发人员证书更改“构建设置 - > 代码签名”

Problem: Here " capability -> Apple pay -> merchant id " of client id does not displayed.问题:这里没有显示客户端ID的“ capability -> Apple pay -> Merchant id ”。 If I click on "fix issue".如果我点击“修复问题”。 xcode redirect me to select my developer profile. xcode 重定向我以选择我的开发人员配置文件。

Please confirm is this information is enough.请确认此信息是否足够。 If yes please assist me to solve this.如果是,请帮我解决这个问题。

My screen is now look like this When I click on add/refresh :我的屏幕现在看起来像这样当我点击添加/刷新时:

在此处输入图片说明

Please tell me what I missing请告诉我我错过了什么

Have you created these certificates on your machine.您是否在您的机器上创建了这些证书。 If not then ask for p12 certificate.如果没有,则要求提供 p12 证书。 It will resolve your issue.它将解决您的问题。

@AkshayPatil : You are facing this issue only because of wrong certificates or wrong process. @AkshayPatil :您面临这个问题只是因为错误的证书或错误的过程。

  1. Check whether "Apple Pay" is activated or not before certificate was created.在创建证书之前检查“Apple Pay”是否被激活。
  2. You should get .p12 certificate when someone create these certificate on another machine当有人在另一台机器上创建这些证书时,您应该获得 .p12 证书
  3. You should use same apple account to activate "Apple Pay" otherwise you will not be able to access these certificates and Apple pay will throw an error.您应该使用相同的苹果账户激活“Apple Pay”,否则您将无法访问这些证书,Apple Pay 将引发错误。 I tried on my machine.我在我的机器上试过。 It works fine.它工作正常。 You should add "merchant."您应该添加“商家”。 before merchant ID.在商家 ID 之前。

Add manually and test it.手动添加并测试。 See screenshot看截图在此处输入图片说明

Just had this problem appear when I tried to add Apple Pay to my capabilities.当我尝试将 Apple Pay 添加到我的功能时,就出现了这个问题。 Nothing really worked, except for disabling automatic signing, downloading a Development profile from developer.apple.com, importing it, having it error out, and then re-enabling automatic signing.除了禁用自动签名,从 developer.apple.com 下载开发配置文件,导入它,让它出错,然后重新启用自动签名之外,没有什么真正起作用的。

That made everything work again.这让一切重新开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM