#
1 messages · Page 1 of 1 (latest)
👋🏻
Hi, taking a look here. I know a test card that allows you to attach a card successfully but declined at a payment. Looking if we have one for an expired card.
our use case is kinda obscure
for example you add a card that expires this month ( October ) today via setup intents
once we enter November the card is still visible via the react-native-stripe sdk sheets. When attempting to re-confirm the card again or paying it throws an expired card error ( which is expected )
however is there any way to test that without waiting a month ?
or is this the closest thing stripe has?
I was able to confirm that there is not a way to do this.
Yes, that is the closest test card
does stripe not automatically removed expired cards?
It depends on what you mean with 'remove'?
Are these for Subscriptions? Or one time payments?
one offs
What do you mean by remove? For one-offs, we would decline the card when a charge is made.
well the said expired card still shows up in the react-native-stripe payment sheet when accessing via setup intents. If the modal is confirmed with the said card it throws an expired error. Is there any reason to keep expired cards accessible via the modal?
You can detach that expired card by from customer by detaching the Payment Method, https://stripe.com/docs/api/payment_methods/detach. Just because it's expired, Stripe does not just deletes them.
yea ok that is what i thought
because within the UI in the payment sheet there is no indication of which cards are expired or anything
as feedback to the users
I just re-read this, is there a question in there, sorry if I've missed it?