问题
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.
At the final step, i am going to test the apple pay functionality but i am not sure how i can perform it.
1) Do i have to add some dummy / test card account in my Passbook application ?
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) or Nothing setup is required for Passbook for development purpose
Please guide me.
回答1:
According to the documentation if you use your test API keys they'll detect it. Here is what it says exactly:
How do I test Apple Pay with Stripe?
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.
来源:https://stackoverflow.com/questions/27062961/how-to-test-stripe-based-apple-pay