且构网

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

如何测试基于 Stripe 的 Apple Pay?

更新时间:2023-12-03 21:30:22

根据 文档 如果您使用测试 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?

How do I test Apple Pay with Stripe?

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.