Stripe decline code · By Hanzalah Seikhai, Stripe developer
Stripe expired_card: stop losing subscription renewals to expired cards
expired_card means: The card has expired.
Retry? No, needs an updated card.
Why it happens
- The card on file has passed its expiry date.
- On subscriptions, Stripe can often update card details automatically through the card networks, but not for every bank.
What to do
- Ask for a new card at checkout.
- For subscriptions, turn on the emails about expiring cards in the Billing settings and link customers to the Customer Portal to update the card.
- Handle payment_method.automatic_updated or customer.updated if your app stores card details such as the last four digits.
Where to find the code
In the Stripe Dashboard, open the failed payment and read the decline reason. In code, the error from the API has decline_code next to code: card_declined. Some errors also carry an advice_code that says whether a retry can work.
If declines like this are hurting your conversions, I find the cause in your integration and fix it as a fixed-price job. Hire me on Upwork or send the error. All codes are on the Stripe decline codes page.