Skip to content
send.io
All posts

Card declined email templates: what to say for soft vs. hard declines

Card declined email templates that route soft declines to retry copy and hard declines to update instructions based on gateway codes. Map Stripe, Braintree, and Authorize.Net decline codes to targeted email templates that tell customers whether to wait for a retry or update their card.

On this page
TL;DR: Soft declines (insufficient funds, issuer timeout) can be recovered with the right copy and timing. Hard declines (stolen card, closed account) require customer intervention and different messaging. Map gateway decline codes to templates using webhook payload parsing, route retries through exponential backoff, and never include card numbers or deep links in decline emails. Send the Idempotency-Key header on every decline email request, since webhook handlers retry and send.io deduplicates by key for 24 hours.

Your payment webhook fires. The decline code says insufficient_funds, but your customer gets an email that reads "your payment failed." They don't know whether to retry, update their card, or call their bank, so they do nothing. The payment sits in limbo, your retry logic burns through attempts, and you lose the revenue.

A decline code is a routing instruction, not just an error message. Stripe, Braintree, and Authorize.Net return specific codes that tell you whether a retry will succeed or whether the customer needs to take action. Mapping those codes to targeted email templates recovers revenue from soft declines while protecting customers from confusing hard-decline messaging.

This guide covers lookup tables for Stripe, Braintree, and Authorize.Net, React Email components for each decline type, retry timing per gateway documentation, and the webhook payload parsing logic that routes each decline to the correct template.

Fixing churn caused by unclear decline messages

Generic decline emails create support tickets and failed payments. A customer whose card expired needs different instructions than a customer whose card was reported stolen. Routing both to the same message is a routing logic problem, not a copy problem.

The difference matters because soft declines represent temporary failures that retry logic can recover, while hard declines represent permanent failures that require customer intervention. A soft decline means the card is still valid but the transaction cannot process at that moment, such as insufficient funds or a network timeout, according to Stripe's decline code documentation. A hard decline means the card cannot be used again, such as a stolen card or closed account.

Automating responses by decline code

Your webhook handler owns the routing logic. When your payment provider fires a decline event, the webhook payload includes a decline code field that classifies the failure. Your handler parses that code, looks up the correct email template, and triggers the send.

Your payment gateway fires the decline webhook, and your handler maps the decline code to a template. send.io's transactional email API sends that email. send.io's event webhooks then report email delivery events, including the per-recipient diagnostic code, so you can confirm whether the decline email reached the customer.

The alternative is hardcoding decline logic in your payment service, which creates a maintenance burden every time a new gateway or decline code appears. A centralized lookup table eliminates that debt.

Mapping decline codes to user actions

Every decline code maps to one of two user actions: retry or intervene. Soft declines retry automatically with exponential backoff. Hard declines require the customer to update their payment method or contact their bank.

Classify by one rule: retry when the card is still valid and the failure is temporary. If the card is invalid or blocked, stop retrying and tell the customer what to fix.

Stripe classifies insufficient_funds as a soft decline that is retryable, while stolen_card and lost_card are hard declines that should never be retried. Those codes arrive in Stripe's own decline webhook payload. Braintree marks each processor code as Soft or Hard in its authorization response table, so classify per code rather than by range. Each gateway uses its own code format, so your handler needs one lookup table per gateway.

Once you've classified the decline, write specific copy. A soft decline email says "your payment didn't go through, but we'll retry automatically" or "update your card to avoid interruption." A hard decline email says "your card was declined permanently, please update your payment method" or "contact your bank to resolve this issue." Vague language like "there was a problem with your payment" forces the customer to guess, and guessing leads to inaction.

Mapping decline codes to resolution strategies

Decline codes from Stripe, Braintree, and Authorize.Net map to two categories: soft declines, which retry logic can recover, and hard declines, which require customer intervention.

Soft decline codes and recovery logic

Soft declines are temporary failures where the card is still valid. Common soft decline codes include:

  • Insufficient funds: The card doesn't have enough balance to cover the charge. Retry 1-3 days after the initial decline for customers paid weekly. For customers paid monthly, retry 7-10 days after the initial decline, when the account is more likely to have funds. If the pay cycle is unknown, 3-5 days is a common default.
  • Issuer timeout: The card issuer's system didn't respond in time. Retry after a few hours.
  • Card velocity exceeded: The card has been used too many times in a short period. Retry only after the velocity window that triggered the block resets, because retrying inside the same window fails identically.
  • Processing error: A temporary issue with the payment processor. Retry after a few hours. Your own retry scheduler can read the decline code from the gateway's webhook payload and set a different wait per code, so a processing_error retries within hours while an insufficient_funds retry waits until paychecks typically hit, rather than retrying the same day. No source here measures recovery for code-specific retry timing, so track it against your own baseline.

Hard decline codes and root causes

Hard declines signal permanent failures where you cannot use the card again. Common codes include stolen card, lost card, expired card, fraudulent, and closed account. Do not retry these codes. The customer must update their payment method or contact their bank.

Stripe classifies expired_card as a hard decline that should not be retried, while fraudulent, lost_card, and stolen_card are hard declines that should never be retried. Retrying a hard decline like stolen_card can trigger issuer penalties and suppress authorization rates over time, according to Recurflux's decline code encyclopedia.

The email logic branches on the decline classification. A soft decline triggers a retry email with a clear message about what happened and when the next retry will occur. A hard decline triggers an account notice that tells the customer to update their payment method or contact their bank.

Your webhook handler branches on the decline classification from the gateway's webhook payload, so a soft decline triggers a retry email while a hard decline triggers an account notice. send.io's transactional email API then sends the template your handler selects.

Recovering payments: email copy for soft declines

Soft decline emails tell the customer what happened, why it happened, and what to do next. The copy is specific, actionable, and timed to the retry schedule.

Soft decline email templates

Template for insufficient funds:

Subject: Your payment didn't go through, but we'll retry soon

Body:

Hi [Name],

Your payment of $[Amount] didn't go through because your card has insufficient funds. We'll automatically retry the payment on [Retry Date].

If you'd like to update your payment method before then, you can do so in your account settings.

Thanks, [Your Company]

Why this works: It names the specific problem (insufficient funds), tells the customer what happens next (automatic retry on a specific date), and provides an alternative action (update payment method).

Template for issuer timeout:

Subject: Temporary payment issue, we'll retry shortly

Body:

Hi [Name],

Your payment of $[Amount] didn't go through due to a temporary issue with your card issuer. We'll automatically retry the payment in a few hours.

No action is needed on your part. If the payment fails again, we'll let you know.

Thanks, [Your Company]

Why this works: It reassures the customer that the issue is temporary, sets expectations for the retry timing, and removes the burden of action.

Soft decline emails follow a consistent pattern: state the problem clearly, explain what happens next, provide a path to resolution, and set expectations if the retry fails. The tone is helpful, not alarmist.

Retry timing for soft declines

Retry timing matters. Retrying too soon wastes attempts and can trigger issuer fraud alerts. Retrying too late delays revenue recovery.

The recommended retry pattern is exponential backoff with jitter, which reduces the risk of overwhelming the system by spacing out retries and prevents synchronized retries (retry storms). The schedule below is a simplified fixed schedule without jitter, so production implementations should add random jitter to each delay.

A common retry schedule for soft declines:

Retry Attempt

Delay After Previous Attempt

Total Elapsed Time

1

1 day

Day 1

2

2 days

Day 3

3

2 days

Day 5

4

2 days

Day 7

5

3 days

Day 10

6

4 days

Day 14

Visa permits up to 20 reattempts in 30 days, up from 15 as of May 25, 2025, according to Beast Insights.

Card declined email template for hard declines

Hard decline emails tell the customer the payment method is no longer valid and they need to take action. The tone is direct but not accusatory, and the call to action is clear: update your payment method or contact your bank.

Hard decline email templates

Template for expired card:

Subject: Your card has expired, so please update your payment method

Body:

Hi [Name],

Your payment of $[Amount] didn't go through because your card ending in [Last4] has expired.

To continue your subscription, please update your payment method in your account settings.

Thanks, [Your Company]

Why this works: It identifies the expired card by last four digits, tells the customer exactly what to do (update payment method), and provides a direct link to the billing settings page.

Template for suspicious activity:

Subject: Payment declined, please contact your bank

Body:

Hi [Name],

Your payment of $[Amount] was declined because your card issuer flagged the transaction as suspicious.

To resolve this, please contact your bank to verify the transaction, then update your payment method in your account settings.

Thanks, [Your Company]

Why this works: It explains the issuer's action (flagged as suspicious), tells the customer to contact their bank, and provides a path to update the payment method once the issue is resolved.

Template for general payment failure:

Subject: Payment failed, please update your payment method

Body:

Hi [Name],

Your payment of $[Amount] didn't go through because your card was declined permanently. This can happen if the card was reported lost or stolen, or if the account was closed.

To continue your subscription, please update your payment method in your account settings.

If we don't receive an updated payment method by [Date], your subscription will be paused.

Thanks, [Your Company]

Why this works: It names the possible reasons (lost, stolen, closed account), tells the customer what to do (update payment method), and sets a deadline with a clear consequence (subscription paused).

Automating email routing via decline code tables

A decline-code-to-template lookup table centralizes the routing logic and eliminates the need for manual customer support scripts. The table maps each gateway's decline codes to the correct email template and retry action.

Stripe decline response mapping table

Stripe lists 46 card decline codes as of November 2026, including two deprecated codes (do_not_try_again and try_again_later). Local payment methods use a separate set of decline codes. The table below maps the most common card codes to soft/hard classification, recommended email template, and retry action.

Decline Code

Classification

Email Template

Retry Action

insufficient_funds

Soft

Low balance template

Retry after 1-3 days

expired_card

Hard

Expired card template

No retry. Request update

issuer_not_available

Soft

Issuer timeout template

Retry after a few hours

processing_error

Soft

Issuer timeout template

Retry after a few hours

card_velocity_exceeded

Soft

Velocity limit template

Retry after the velocity window resets

stolen_card

Hard

Suspicious activity template

No retry. Contact bank

lost_card

Hard

Suspicious activity template

No retry. Contact bank

fraudulent

Hard

Suspicious activity template

No retry. Contact bank

generic_decline

Soft

Low balance template

Retry after 1-3 days

Stripe's Smart Retries performs up to eight retry attempts within two weeks by default for new accounts, choosing retry timing from issuer and behavioral signals. If you want per-code control, your own retry scheduler can read the decline code from Stripe's webhook payload, so you can schedule an insufficient_funds retry to match the customer's pay cycle, rather than retrying the same day.

Braintree decline code resolution

Braintree uses numeric processor response codes. Braintree marks each processor code as Soft or Hard in its authorization response table, so classify per code rather than by range.

Processor Code

Description

Classification

Email Template

Retry Action

2001

Insufficient funds

Soft

Low balance template

Retry after 1-3 days

2004

Expired card

Hard

Expired card template

No retry. Request update

2009

No such issuer

Hard

Payment failure template

No retry. Request update

2010

Card issuer declined CVV

Hard

Payment failure template

No retry. Request update

2041

Declined

Hard

Payment failure template

No retry. Request update

2047

Call issuer

Hard

Suspicious activity template

No retry. Contact bank

2053

Card reported stolen

Hard

Suspicious activity template

No retry. Contact bank

Mastercard prohibits retries for specific hard decline codes, such as 2047 and 2053, according to Braintree's documentation.

Authorize.Net failure code lookup

Authorize.Net uses numeric response codes. Code 1 is approved, code 2 is declined, code 3 is an error, and code 4 is held for review, according to Authorize.Net's response codes.

Response Code

Description

Classification

Email Template

Retry Action

2

Declined

Soft

Low balance template

Retry after 1-3 days

3

Error

Processing error

Payment failure template

Do not retry without investigating the cause

4

Held for review

Pending review

None (transaction is not declined)

No retry until the review completes

Code 2 (general decline) is a soft decline that can be retried. Code 3 (error) is a general error indicator rather than a decline, and it should not be retried without investigating the root cause. Code 4 (held for review) means the transaction is pending manual review before it is approved or declined, so it is not a decline and no decline email should fire until the review completes.

Route code 2 through the soft-decline template and codes 3-4 per the rules above.

The routing logic lives in one place, your webhook handler, instead of scattered across payment service code. The handler maps each gateway's decline code to a template, send.io's transactional email API sends the email, and send.io's event webhooks report delivery events afterward.

Engineering setup: HTML and React Email components

The email templates are reusable components that accept typed props and render conditionally based on the decline classification. The examples below use React Email, but the same pattern applies to any templating engine.

Reusable card failure email templates

The base template accepts a declineType prop (soft or hard) and a declineReason prop (the specific decline code). The template renders different copy based on the classification.

import { Html, Head, Body, Container, Text, Button } from 'react-email';

interface CardFailureEmailProps {
customerName: string;
amount: string;
declineType: 'soft' | 'hard';
declineReason: string;
retryDate?: string;
last4?: string;
}

export default function CardFailureEmail({
customerName,
amount,
declineType,
declineReason,
retryDate,
last4,
}: CardFailureEmailProps) {
return (
<Html>
<Head />
<Body>
<Container>
<Text>Hi {customerName},</Text>
{declineType === 'soft' && declineReason === 'insufficient_funds' && (
<>
<Text>
Your payment of ${amount} didn't go through because your card has
insufficient funds. We'll automatically retry the payment on {retryDate}.
</Text>
<Text>
If you'd like to update your payment method before then, you can do so in
your account settings.
</Text>
</>
)}
{declineType === 'soft' && declineReason === 'issuer_not_available' && (
<>
<Text>
Your payment of ${amount} didn't go through due to a temporary issue with
your card issuer. We'll automatically retry the payment in a few hours.
</Text>
<Text>No action is needed on your part.</Text>
</>
)}
{declineType === 'hard' && declineReason === 'expired_card' && (
<>
<Text>
Your payment of ${amount} didn't go through because your card ending in{' '}
{last4} has expired.
</Text>
<Text>
To continue your subscription, please update your payment method in your
account settings.
</Text>
</>
)}
{declineType === 'hard' && declineReason === 'stolen_card' && (
<>
<Text>
Your payment of ${amount} was declined because your card was reported
stolen.
</Text>
<Text>
Please contact your bank to resolve this issue, then update your payment
method in your account settings.
</Text>
</>
)}
<Button href="https://yourapp.com/settings/billing">
Update Payment Method
</Button>
<Text>Thanks,</Text>
<Text>Your Company</Text>
</Container>
</Body>
</Html>
);
}

Typed React props for email templates

The CardFailureEmailProps interface enforces type safety and makes the template reusable across different decline scenarios. The declineType prop determines which copy block renders, and the declineReason prop provides the specific decline code for conditional rendering.

The webhook handler parses the decline code from the payment provider's payload, classifies it as soft or hard, and passes the classification and reason to the email template. The field paths in the handler below are illustrative. The invoice payload doesn't include customer_name or customer_email directly, so the customer reference needs an expand step or a lookup against your own records. The exact path for the decline code also depends on your gateway's event shape.

const declineCodeMap: Record<string, { type: 'soft' | 'hard'; template: string }> = {
insufficient_funds: { type: 'soft', template: 'low_balance' },
issuer_not_available: { type: 'soft', template: 'issuer_timeout' },
expired_card: { type: 'hard', template: 'expired_card' },
stolen_card: { type: 'hard', template: 'suspicious_activity' },
lost_card: { type: 'hard', template: 'suspicious_activity' },
fraudulent: { type: 'hard', template: 'suspicious_activity' },
};

async function handleDeclineWebhook(payload: StripeWebhookPayload) {
const declineCode = payload.data.object.last_payment_error.decline_code;
const classification = declineCodeMap[declineCode];

if (!classification) {
console.error(`Unknown decline code: ${declineCode}`);
return;
}

await sendEmail({
to: payload.data.object.customer_email,
template: 'CardFailureEmail',
props: {
customerName: payload.data.object.customer_name,
amount: payload.data.object.amount_due,
declineType: classification.type,
declineReason: declineCode,
retryDate: classification.type === 'soft' ? calculateRetryDate() : undefined,
last4: payload.data.object.payment_method.card.last4,
},
});
}

Conditional logic for payment failures

The conditional rendering logic lives in the email template, not in the payment service code. This separation keeps the email copy centralized and makes it easy to update without touching the payment integration.

The webhook handler parses the decline code, looks up the classification, and passes the correct props to the email template. The email template renders the correct copy based on the classification and reason.

send.io's transactional email API supports idempotent retries via the Idempotency-Key header, which prevents duplicate decline emails when a webhook retries. The caller sets a client-generated key on each request, and send.io stores it for 24 hours, returning the original result for retries with the same key.

Test your handler with signed test webhook events from your payment gateway to confirm each decline code routes to the correct email template. Then use send.io's event webhooks to confirm each resulting email was delivered.

FAQs

What is the difference between a soft decline and a hard decline?

A soft decline is a temporary payment failure where the card is still valid, such as insufficient funds or an issuer timeout, and the transaction can be retried successfully. A hard decline is a permanent failure where the card is invalid or blocked, such as a stolen card or closed account, and no retry will succeed.

How many times should you retry a soft decline?

Visa permits up to 20 reattempts in 30 days, according to Beast Insights. A common retry schedule spaces attempts over two weeks, with six retries on days 1, 3, 5, 7, 10 and 14 after the initial failure.

What should you include in a card declined email?

Include the specific decline reason, the amount that failed, what happens next (automatic retry or required action), and a link to update the payment method. Never include full card numbers, CVV codes, or deep links to payment forms.

Can you retry a stolen card decline?

No. Retrying a stolen card or lost card decline can trigger issuer penalties and suppress authorization rates over time, according to Recurflux's decline code encyclopedia. Always treat fraud-related decline codes as hard declines that require customer intervention.

What is the best retry schedule for insufficient funds declines?

Retry insufficient funds declines 1-3 days after the initial failure, when the customer's account is likely to have funds. Waiting 2-3 days aligns with typical paycheck cycles and improves recovery rates.

Key terms glossary

Soft decline: A temporary payment failure where the card is still valid and the transaction can be retried successfully. Common soft decline codes include insufficient funds, issuer timeout, and card velocity exceeded.

Hard decline: A permanent payment failure where the card is invalid or blocked and no retry will succeed. Common hard decline codes include stolen card, lost card, expired card, and closed account.

Decline code: A numeric or string identifier returned by the payment gateway that classifies the reason for a transaction failure. Stripe uses string codes like insufficient_funds, while Braintree and Authorize.Net use numeric codes.

Exponential backoff: A retry strategy that lengthens the delay between retry attempts (e.g., retries on days 1, 3, 5, 7, 10, and 14) to reduce system load and avoid issuer penalties.

Idempotency key: A client-generated unique identifier sent with each API request to prevent duplicate operations when a request is retried. send.io stores idempotency keys for 24 hours and returns the original result for retries with the same key.

Webhook payload: The JSON data structure your payment gateway delivers to your webhook endpoint when a transaction event occurs. It includes the decline code, transaction amount, customer information, and payment method details.