6
votes

I am working to integrate Apple pay in my application to test it. I assume, I need to have some test card added in my wallet app . Without this I am getting an error in Xcode that reads "This device cannot make payments."

I have done all the setup related to Xcode, and under capability I can see my merchant id selected and all 3 checkmarks done.

So I tried adding test card for apple pay testing (getting the token) I followed the process as setting -> wallet and apple pay -> add credit/debit card -> enter manually -> Here I have given fake credentials taken from apple

testcards from apple site FPAN: 5204 2477 5000 1497 Expiration Date: 11/2022 CVC: 111

But none of the cards are accepted, for MASTERCARDS I get error like, issuer doesn't yet offer support for this card. Likewise errors for visa test cards I get.

So how am I suppose to test apple pay integration without having to add the cards in apple pay setup or how can I add a test card successfully so that I get the token.

EDIT: I was able to successfully see the apple pay presentation screen, as simulated cards are allready added in it by default.

I am looking for the same with real device.

5

5 Answers

7
votes

Hi I have just got this answer from support

It’s not possible to add a test credit card number (even Braintree’s test cards) into Apple’s Passbook. So any credit card you wanted to add into Passbook even for testing purposes would need to be real.

updating it so that user should not be confused when they work with apple pay.

3
votes

Visit the developer page here. and scroll down there are some testing credit card list available.

3
votes

You need to setup a sandbox test account and then add cards to wallet using the data provided on apples website. You cannot just use that data when you signin into your device using regular Apple Id.

3
votes

Make sure you are adding the test card in settings > wallet & apple pay (scroll down) and not in the apple id, icloud, itunes & appstore section at the top of settings

2
votes

Using these Card Details I was able to add Card to Wallet App

CARD Number: 5204 2477 5000 1505
Expiration Date: 11/2022
CVC: 111

Source - https://www.mobindustry.net/how-to-successfully-integrate-apple-pay-into-your-ios-app/