Thaw

All decline codes

invalid_account

The card, or the account the card is connected to, is invalid.

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": "invalid_account"
  }
}
{
  "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 saved card until someone replaces it, so the card or its account can stop being valid between two cycles. These are possibilities, and the code alone cannot tell them apart.

The pattern across the customer's earlier charges is the main clue: a card that paid for several cycles and then failed has changed, while one refused on its first charge may never have worked.

Should you retry

Unclear. Stripe's next step is that the customer contacts their card issuer to check that the card is working correctly.

Stripe's decline-code table gives this next step: the customer needs to contact their card issuer to check that the card is working correctly. 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.

Say the card was not accepted and ask them to check with their card issuer or use another card.

The customer should contact their card issuer or provide another 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.

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 Stripe

Source: Stripe docs: decline codes. Sample audit.