The other posts are mostly right. To add a credit card you need to be on a physical device and if you're testing you should be logged into a Apple Pay Sandbox Account.
However, you can still test just fine with the Simulator, just use the Pay with Passcode button and it will fetch a fake paymentToken
from Apple.