#hellomynameissam-expired-cards

1 messages · Page 1 of 1 (latest)

silent void
#

What do you mean "by year or by month"? The test card 4000000000000069 / pm_card_chargeDeclinedExpiredCard is the one to use to test the expired decline case

modern cove
#

So I wanted to put in a year before 2021. But I get the expired card error

#

I wanted to override this in order to check a use case.

silent void
#

That's not supported. You can use any (future) expiry and the charge should still decline with expired_card

modern cove
#

What do you mean by future expiry?

silent void
#

a valid expiry date in the future

#

2022, 2023...

#

(any month)

#

ie, not in the past

modern cove
#

so it mentions this in the doc @silent void

silent void
#

Where do you see that?

modern cove
silent void
#

Sure, so you can get those errors if you're sending raw card details to the API (not recommended) and hitting such cases, but elements does local validation to avoid the need for this

#

The UI surfaces the issue before any request is made

modern cove
#

right I see. gotcha. Thanks for the help!!

silent void
#

NP!