问题描述
目前我正在尝试开发一个原生 iOS 应用程序,我必须在其中集成基于 Stripe 的 Apple Pay,为此我在我的项目中添加了他们提供的 SDK.
Currently i am trying to develop a native iOS application where i have to integrate Stripe based Apple Pay, For that i have added the SDK provided by them inside my project.
在最后一步,我将测试 Apple Pay 功能,但我不确定如何执行.
At the final step, i am going to test the apple pay functionality but i am not sure how i can perform it.
1) 我是否必须在我的 Passbook 申请中添加一些虚拟/测试卡帐户?
1) Do i have to add some dummy / test card account in my Passbook application ?
2) 或者我是否必须在我的 Passbook 应用程序中添加一些真实的卡帐户,但是在付款操作时,如果我执行任何交易然后从我的帐户中扣除余额?
2) or Do i have to add some real card account in my Passbook application but while payment operation, if i perform any transaction then do it deduct the balance from my account?
3) 或者 Passbook 不需要任何设置用于开发目的
3) or Nothing setup is required for Passbook for development purpose
请指导我.
推荐答案
根据 文档 如果您使用测试 API 密钥,他们会检测到它.这是它的确切内容:
According to the documentation if you use your test API keys they'll detect it. Here is what it says exactly:
如何使用 Stripe 测试 Apple Pay?
Apple 不会让您向 Passport 和 iPhone 添加假信用卡.但是,如果您使用 Apple Pay 和测试 Stripe API 密钥,我们会在提出 Apple Pay 请求时识别这种情况,并且返回一个成功的测试卡令牌.要在实时模式下测试付款,您需要使用有效的信用卡.
Apple won’t let you add a fake credit card to Passport and the iPhone. However, if you’re using Apple Pay and your test Stripe API keys, we’ll recognize the situation when the Apple Pay request is made and return a successful test card token. To test a payment in live mode, you’ll need to use a working credit card.
这篇关于如何测试基于 Stripe 的 Apple Pay?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!