expired_card
The card has expired, so the same details will not work again.
What you see in Stripe
The decline code is on the PaymentIntent, in last_payment_error. The details of the attempt are on the Charge. Abridged, example values:
{
"id": "pi_example",
"object": "payment_intent",
"last_payment_error": {
"charge": "ch_example",
"decline_code": "expired_card"
}
}{
"id": "ch_example",
"object": "charge",
"payment_intent": "pi_example"
}The Charge has no top-level decline_code: read it from last_payment_error on the PaymentIntent. Stripe's pages do not say which outcome fields (outcome.type, outcome.network_status, network codes) this code carries, or whether it always comes with a Charge, so the example leaves them out rather than guess. For the same reason it shows no card details (payment_method_details). The fields shown are identifiers only.
Fields as documented in the Stripe API reference: PaymentIntent, Charge.
Why it happens on a subscription
A subscription keeps the same card on file until someone replaces it, so the card can reach its expiry date between two cycles. These are possibilities, and the code alone cannot tell them apart.
- The card reached its expiry date since the last successful charge.
- The cardholder was issued a replacement card and the saved details were never updated.
- The card is a virtual or company card issued for a fixed term, and the term has ended.
- The card was issued to a person who has left the customer's company, and no one added a replacement.
The expiry month and year are in payment_method_details.card (exp_month and exp_year), so you can set them against the date of the failure. Stripe's page does not say more about how the issuer applies the date.
Should you retry
Hard decline. Retrying the same expired card will not succeed. Stripe's next step is that the customer uses another card.
Stripe's decline-code table says the customer needs to use another card, so the same card will not work again. Stripe does not publish a retry wait or limit for this code, or say how retries of it affect issuer decisions. Stripe's card-declines page says card networks limit how often a single charge can be reattempted, recommends a maximum of eight retries for charges that permit them, and says issuers might see extra retries as potential fraud, which can increase declines for legitimate charges. Stripe: card declines.
- Ask the customer for the new card details through a card-update link.
- Where you can, reach out before the expiry date so the failure never happens.
Say the card on file has expired and give them a link to add a new one.
The customer needs to supply a different or reissued card.
How Thaw treats it
Thaw classes this code as hard. It plans up to three card-update emails over nine days instead of waiting for a retry, and it does not repeat the identical charge. If looking up the decline code from Stripe failed and still cannot be answered when an action is due, Thaw defers that action and sends nothing for it until the lookup answers. Separately, a card-expiring plan in Thaw emails the customer before a card's expiry date.
What Thaw does not do
Thaw does not look for a replacement card on the customer's account and does not add or change a card on their behalf. It asks the customer for a new card.
Sign in with an email link, then connect Stripe to get Thaw's free audit of your account. It only reads; nothing sends until you activate.
Sign in to connect StripeSource: Stripe docs: decline codes. Sample audit.