Skip to content

Payment Failed Email

Email-safe card declined template with an alert banner, subscription and amount summary, decline reasons, update payment button and relative retry wording.

Also known as: failed payment email, card declined email, dunning email, update payment method email

Payment Failed Email live demo

Open in new tab

Pure CSS code (HTML, CSS)

An email-safe "payment failed" template for subscription services, built with nested tables and inline styles. A red alert banner, a summary of the affected subscription and amount, common decline reasons, a bulletproof "Update payment method" button and a retry note with relative wording ("in 3 days") help customers fix a declined card quickly. The patterns target Outlook (Windows desktop), Gmail and Apple Mail.

How it works

A hidden preheader (.pf-preheader) sets the inbox preview text. The full-width .pf-wrap table paints the deep plum background, and the centered .pf-container table is limited to 600 px with max-width; MSO conditional comments add a fixed 600 px table for Outlook. The brand row and "View in browser" link sit above the white card.

The card starts with the .pf-banner row: a warning icon image and a bold message on red. The .pf-title heading and a short explanation follow. The subscription summary is a two-cell table (.pf-cell) with a red left border: plan name on the left, amount due and card on the right. Three decline reasons use numbered circles made from small table cells with border-radius, so no images or icon fonts are needed. The button is a padded table cell (.pf-btn-cell) holding the .pf-btn link; mso-padding-alt gives Outlook the same padding. A tinted box explains the automatic retry, then a support row and the footer with address, manage account and unsubscribe links.

Customization

  • Change #d92d20 in .pf-banner, the summary border and the amount to adjust the alert color; #ff7a59 on .pf-btn-cell is the button color.
  • Update the retry wording ("in 3 days", "a week from now") to match your dunning schedule; keep it relative so the template never shows a stale date.
  • Replace the three reason rows with the decline codes your payment provider returns.
  • Point the .pf-btn href to your hosted billing portal or update-card page.
  • Below 480 px the .pf-cell cells stack and .pf-btn becomes full width via style.css; remove those rules to keep the desktop layout.
  • Swap the brand row text, the background color of .pf-wrap and the footer address for your own company details.

Use cases

  • Subscription services: tell customers a renewal charge was declined, with the affected plan and amount
  • SaaS billing: list common decline reasons and a button to update the payment method
  • Membership sites: a relative retry note such as in 3 days sets expectations
  • Recurring billing: a red alert banner makes the problem obvious at the top of the email

Accessibility

Layout tables use role="presentation". The banner icon has alt="Warning" and the message is real text, so the alert is understood without images. Headings (h1, h2) give a clear outline, text on the coral button and the red banner meets WCAG AA contrast, and links are underlined.

Usage notes

index.html is body content only: wrap it in a complete HTML document and paste style.css into a <style> block in the <head>. Those rules are progressive extras (body reset, hover, mobile stacking). The warning icon is a Twemoji PNG from jsDelivr (CC-BY 4.0); host your own copy for production. Send this as a transactional message, and test in Outlook and Gmail before going live.

Payment Failed Email at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile
Category
Email Templates
License
Free for personal and commercial use

Questions about this template

Can I use the Payment Failed Email code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Payment Failed Email – free Pure CSS email template template
Payment Failed Email · free Pure CSS email template template

More Email Templates

Email Verification Email – free Pure CSS email template template

Email Verification Email

Dark, email-safe confirm-your-email template with a big bulletproof verify button, a six-digit one-time code, expiry note and footer.

Feedback Survey Request Email – free Pure CSS email template template

Feedback Survey Request Email

Email-safe feedback request with a one-tap 1 to 5 rating row of links, an open survey button, a thank-you discount note and a compliant footer.

Newsletter Email with Featured Articles – free Pure CSS email template template

Newsletter Email with Featured Articles

Email-safe editorial newsletter with masthead, featured story, two-column article grid that stacks on mobile, quick links, sponsor slot and footer.

Re-engagement We Miss You Email – free Pure CSS email template template

Re-engagement We Miss You Email

Email-safe win-back template with a friendly headline, what's new list with thumbnails, comeback offer card, return button and one-click unsubscribe.

Product Launch Announcement Email – free Pure CSS email template template

Product Launch Announcement Email

Email-safe product launch template with a bold dark hero, product photo, three feature blocks with image icons, pricing note and a bulletproof Try it now button.

Order Confirmation Email – free Pure CSS email template template

Order Confirmation Email

Email-safe order confirmation template with order number, product rows with photos, totals table, shipping and billing addresses and a track order button.