Thaw

All decline codes

card_declined

card_declined is the general error code Stripe returns when a card payment is refused. When the issuer shares a more specific reason it arrives as a separate decline code such as insufficient_funds or generic_decline, so look at the decline code before deciding what to do.

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",
    "code": "card_declined"
  }
}
{
  "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. card_declined is the error code; when the issuer shares a specific reason, decline_code sits next to it.

Fields as documented in the Stripe API reference: PaymentIntent, Charge.

Why it happens on a subscription

card_declined names no cause, so the reasons are those of the decline code that comes with it. These are possibilities, and the code alone cannot tell them apart.

Read last_payment_error.decline_code on the PaymentIntent. If it is present, that code is the one to follow. If it is absent, Stripe has no specific reason to give.

Should you retry

Unclear. On its own it does not say whether a retry will help. Use the accompanying decline code, and any advice code Stripe returns, to decide.

Stripe's pages give no retry advice for card_declined itself; the advice belongs to the decline code that comes with it, and outcome.advice_code (do_not_try_again, try_again_later or confirm_card_data) gives the issuer's or network's guidance when it is present. Stripe does not publish a retry wait for card_declined. 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 declined and invite them to try another card or contact their card issuer.

Depends on the underlying decline code; often the customer needs to contact their issuer or use another card.

How Thaw treats it

Thaw classes this code as soft. It plans recovery emails that carry a link to update the card, a card-update email on day six, and two retries. The first retry is planned for day three or later and the second for day nine or later, each also after a wait from the failure. The wait is chosen from 12 hours, 24 hours, 48 hours, 72 hours, 5 days, 7 days, 10 days; for this code the choice starts from a wait of 72 hours, and Thaw's record of past retry outcomes can change which wait is chosen, so the retry date is the later of the step day and the chosen wait. Either retry can then move forward by up to four days to reach the first, second, fifteenth or sixteenth of the month (UTC). A retry is checked again when it is due. Thaw has no rule for card_declined itself: it reads the decline code, and a code it has no rule for is soft. 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.