#Sandra
1 messages · Page 1 of 1 (latest)
hello! can you share which specific step you're having trouble with?
is it that you're unable to attach the invalid card to your customer?
Hey @strong sedge
I am not from the Stripe support team. But maybe you could take a look at https://stripe.com/docs/testing?testing-method=card-numbers#declined-payments
Maybe it shows what you need in the table labeled as: Expired card decline.
Best regards.
Paddy
Sorry @sleek flower for interrupting.
Hello!!
@sleek flower yes, it is that step
@rancid oak I didn't try with that one
I tried with generic decline
so for step 2 onwards, you'll need to attach one of the credit cards that will get declined
try using https://stripe.com/docs/api/payment_methods/attach with one of the test card PaymentMethod ids, and include validate=false
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you! is it the only way?
pretty much yes. The card will get declined if you attempt to add it normally
got it, I will try like that then, thanks!!