Other posts are mostly right. To add a credit card, you need to be on a physical device, and if you are testing, you must log in to Apple Pay Sandbox Account .
However, you can still test Simulator perfectly, just use the Pay with Passcode button and it will get fake paymentTokenfrom Apple.

source
share