Payment receipt email
Stripe-style receipt with line items, tax, payment method and a PDF link.
16.8 KB · Gmail-safe
Code
import * as React from "react";
import { A, Btn, Divider, Eyebrow, H1, KV, LineItems, P, Shell, Small, type TemplateProps } from "../components";
export type ReceiptProps = TemplateProps & {
receiptNumber?: string;
date?: string;
amount?: string;
cardBrand?: string;
last4?: string;
items?: { name: string; detail?: string; amount: number }[];
tax?: number;
pdfUrl?: string;
billingUrl?: string;
};
export default function Receipt({
style,
brand,
receiptNumber = "2418-7730",
date = "October 16, 2026",
amount = "$158.40",
cardBrand = "Visa",
last4 = "4242",
items = [
{ name: "Team plan", detail: "6 seats × $24 · Oct 16 – Nov 16, 2026", amount: 144 },
],
tax = 14.4,
pdfUrl = "https://fieldnote.app/billing/receipts/2418-7730.pdf",
billingUrl = "https://fieldnote.app/billing",
}: ReceiptProps) {
const subtotal = items.reduce((n, i) => n + i.amount, 0);
return (
<Shell style={style} brand={brand} label="Receipt" preview={`Receipt #${receiptNumber} — ${amount} paid on ${date}.`}>
<Eyebrow>Receipt #{receiptNumber}</Eyebrow>
<H1>{amount} paid — thank you.</H1>
<KV
rows={[
["Date paid", date],
["Payment method", `${cardBrand} •••• ${last4}`],
["Receipt number", receiptNumber],
]}
/>
<LineItems
items={items}
totals={[
{ label: "Subtotal", amount: subtotal },
{ label: "Tax (10%)", amount: tax },
{ label: "Amount paid", amount: subtotal + tax, strong: true },
]}
/>
<Btn href={pdfUrl} variant="secondary">Download PDF receipt</Btn>
<Divider my={8} />
<P mb={8}>
Manage invoices, billing details and tax IDs in <A href={billingUrl}>billing settings</A>.
</P>
<Small mb={0}>Questions about this charge? Just reply — this goes to our billing team.</Small>
</Shell>
);
}
Receipt.PreviewProps = {} satisfies ReceiptProps;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html dir="ltr" lang="en"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/><meta name="x-apple-disable-message-reformatting"/><meta name="color-scheme" content="light dark"/><meta name="supported-color-schemes" content="light dark"/><meta name="x-apple-disable-message-reformatting"/><meta name="format-detection" content="telephone=no,address=no,email=no,date=no,url=no"/><style>:root{color-scheme:light dark;supported-color-schemes:light dark}
body{margin:0;padding:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}
img{border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic}
a{text-decoration:none}
.mb-logo-dark{display:none;max-height:0;overflow:hidden}
@media only screen and (max-width:620px){
.mb-pad{padding-left:24px !important;padding-right:24px !important}
.mb-outer{padding-left:12px !important;padding-right:12px !important}
.mb-h1{font-size:24px !important;line-height:1.2 !important}
.mb-stack{display:block !important;width:100% !important;box-sizing:border-box}
.mb-stack-gap{padding-top:12px !important;padding-left:0 !important;padding-right:0 !important}
.mb-hide-mobile{display:none !important}
.mb-full{width:100% !important;display:block !important}
}
@media (prefers-color-scheme: dark){
.mb-page{background-color:#0D0E11 !important}
.mb-card{background-color:#17181C !important;border-color:#2C2F36 !important}
.mb-subtle{background-color:#1F2126 !important;border-color:#2C2F36 !important}
.mb-border{border-color:#2C2F36 !important}
.mb-heading{color:#F4F5F7 !important}
.mb-text{color:#D5D8DE !important}
.mb-muted{color:#959AA4 !important}
.mb-ink{background-color:#F4F5F7 !important;color:#0D0E11 !important}
.mb-logo-light{display:none !important;max-height:0 !important}
.mb-logo-dark{display:block !important;max-height:none !important}
}
[data-ogsb] .mb-page{background-color:#0D0E11 !important}
[data-ogsb] .mb-card{background-color:#17181C !important}
[data-ogsb] .mb-subtle{background-color:#1F2126 !important}
[data-ogsc] .mb-heading{color:#F4F5F7 !important}
[data-ogsc] .mb-text{color:#D5D8DE !important}
[data-ogsc] .mb-muted{color:#959AA4 !important}</style></head><body class="mb-page" style="background-color:#F2F3F5;margin:0;padding:0;width:100%"><!--$--><!--html--><!--head--><!--body--><div style="display:none;overflow:hidden;line-height:1px;opacity:0;max-height:0;max-width:0" data-skip-in-text="true">Receipt #2418-7730 — $158.40 paid on October 16, 2026.<div> </div></div><table role="presentation" width="100%" cellPadding="0" cellSpacing="0" class="mb-page" style="width:100%;background-color:#F2F3F5;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"><tbody><tr><td align="center" class="mb-outer" style="padding:32px 16px 48px"><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="max-width:600px;width:100%"><tbody><tr style="width:100%"><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="padding:8px 8px 24px"><tbody><tr><td><img class="mb-logo-light" alt="Fieldnote" height="32" src="https://getmailblocks.com/brand/fieldnote-logo.png" style="display:block;outline:none;border:none;text-decoration:none" width="132"/><div class="mb-logo-dark" style="display:none;max-height:0;overflow:hidden;mso-hide:all"><img alt="Fieldnote" height="32" src="https://getmailblocks.com/brand/fieldnote-logo-dark.png" style="display:block;outline:none;border:none;text-decoration:none" width="132"/></div></td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" class="mb-card" style="background-color:#FFFFFF;border:1px solid #E4E6EA;border-radius:14px"><tbody><tr><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td class="mb-pad" data-id="__react-email-column" style="padding:40px 44px 40px"><p style="font-size:12px;line-height:16px;margin:0 0 12px;font-weight:600;letter-spacing:0;text-transform:none;color:#3B5BFD;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;margin-top:0;margin-right:0;margin-bottom:12px;margin-left:0">Receipt #<!-- -->2418-7730</p><p class="mb-heading mb-h1" style="font-size:26px;line-height:1.25;margin:0 0 16px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-weight:650;letter-spacing:-0.02em;color:#0F1115;margin-top:0;margin-right:0;margin-bottom:16px;margin-left:0">$158.40<!-- --> paid — thank you.</p><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="margin:0 0 24px"><tbody><tr><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td class="mb-muted mb-border mb-k" data-id="__react-email-column" style="width:38%;padding:10px 0;font-size:13px;line-height:20px;color:#6B7079;vertical-align:top;border-top:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif">Date paid</td><td class="mb-heading mb-border" data-id="__react-email-column" style="padding:10px 0;font-size:14px;line-height:20px;color:#0F1115;vertical-align:top;border-top:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif">October 16, 2026</td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td class="mb-muted mb-border mb-k" data-id="__react-email-column" style="width:38%;padding:10px 0;font-size:13px;line-height:20px;color:#6B7079;vertical-align:top;border-top:1px solid #E4E6EA;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif">Payment method</td><td class="mb-heading mb-border" data-id="__react-email-column" style="padding:10px 0;font-size:14px;line-height:20px;color:#0F1115;vertical-align:top;border-top:1px solid #E4E6EA;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif">Visa •••• 4242</td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td class="mb-muted mb-border mb-k" data-id="__react-email-column" style="width:38%;padding:10px 0;font-size:13px;line-height:20px;color:#6B7079;vertical-align:top;border-top:1px solid #E4E6EA;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif">Receipt number</td><td class="mb-heading mb-border" data-id="__react-email-column" style="padding:10px 0;font-size:14px;line-height:20px;color:#0F1115;vertical-align:top;border-top:1px solid #E4E6EA;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif">2418-7730</td></tr></tbody></table></td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="margin:0 0 24px"><tbody><tr><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td class="mb-border" data-id="__react-email-column" style="font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;vertical-align:top;padding:14px 0;border-bottom:1px solid #E4E6EA"><p class="mb-heading" style="font-size:14px;line-height:20px;margin:0;color:#0F1115;font-weight:500;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">Team plan</p><p class="mb-muted" style="font-size:13px;line-height:18px;margin:2px 0 0;color:#6B7079;margin-top:2px;margin-right:0;margin-bottom:0;margin-left:0">6 seats × $24 · Oct 16 – Nov 16, 2026</p></td><td align="right" class="mb-heading mb-border" data-id="__react-email-column" style="font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;vertical-align:top;padding:14px 0;width:120px;font-size:14px;line-height:20px;color:#0F1115;border-bottom:1px solid #E4E6EA;font-variant-numeric:tabular-nums">$144.00</td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td class="mb-muted" data-id="__react-email-column" style="font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;vertical-align:top;padding:10px 0 0;font-size:13px;color:#6B7079;font-weight:400">Subtotal</td><td align="right" class="mb-muted" data-id="__react-email-column" style="font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;vertical-align:top;padding:10px 0 0;font-size:13px;color:#6B7079;font-weight:400;font-variant-numeric:tabular-nums">$144.00</td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td class="mb-muted" data-id="__react-email-column" style="font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;vertical-align:top;padding:10px 0 0;font-size:13px;color:#6B7079;font-weight:400">Tax (10%)</td><td align="right" class="mb-muted" data-id="__react-email-column" style="font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;vertical-align:top;padding:10px 0 0;font-size:13px;color:#6B7079;font-weight:400;font-variant-numeric:tabular-nums">$14.40</td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td class="mb-heading" data-id="__react-email-column" style="font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;vertical-align:top;padding:14px 0 0;font-size:15px;color:#0F1115;font-weight:600">Amount paid</td><td align="right" class="mb-heading" data-id="__react-email-column" style="font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;vertical-align:top;padding:14px 0 0;font-size:15px;color:#0F1115;font-weight:600;font-variant-numeric:tabular-nums">$158.40</td></tr></tbody></table></td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="margin:8px 0 24px"><tbody><tr><td><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation"><tbody style="width:100%"><tr style="width:100%"><td align="left" data-id="__react-email-column"><a href="https://fieldnote.app/billing/receipts/2418-7730.pdf" class="mb-subtle mb-heading" style="line-height:20px;text-decoration:none;display:inline-block;max-width:100%;mso-padding-alt:0px;background-color:#FFFFFF;color:#0F1115;border:1px solid #E4E6EA;border-radius:8px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;font-weight:600;padding:12px 22px;letter-spacing:0;text-align:center;box-sizing:border-box;padding-top:12px;padding-right:22px;padding-bottom:12px;padding-left:22px" target="_blank"><span><!--[if mso]><i style="mso-font-width:366.66666666666663%;mso-text-raise:18" hidden>   </i><![endif]--></span><span style="max-width:100%;display:inline-block;line-height:120%;mso-padding-alt:0px;mso-text-raise:9px">Download PDF receipt</span><span><!--[if mso]><i style="mso-font-width:366.66666666666663%" hidden>   ​</i><![endif]--></span></a></td></tr></tbody></table></td></tr></tbody></table><hr class="mb-border" style="width:100%;border:none;border-top:1px solid #eaeaea;border-color:#E4E6EA;border-top-width:1px;margin:8px 0"/><p class="mb-text" style="font-size:15px;line-height:24px;margin:0 0 8px;color:#30343B;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;margin-top:0;margin-right:0;margin-bottom:8px;margin-left:0">Manage invoices, billing details and tax IDs in <a href="https://fieldnote.app/billing" style="color:#3B5BFD;text-decoration-line:none;text-decoration:underline;text-decoration-color:#3B5BFD;text-underline-offset:2px" target="_blank">billing settings</a>.</p><p class="mb-muted" style="font-size:13px;line-height:20px;margin:0 0 0px;color:#6B7079;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;margin-top:0;margin-right:0;margin-bottom:0px;margin-left:0">Questions about this charge? Just reply — this goes to our billing team.</p></td></tr></tbody></table></td></tr></tbody></table><table align="center" width="100%" border="0" cellPadding="0" cellSpacing="0" role="presentation" style="padding:28px 8px 0"><tbody><tr><td><p class="mb-muted" style="font-size:12px;line-height:18px;margin:0 0 6px;color:#6B7079;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;margin-top:0;margin-right:0;margin-bottom:6px;margin-left:0">You're receiving this email because you have a Fieldnote account.</p><p class="mb-muted" style="font-size:12px;line-height:18px;margin:0 0 6px;color:#6B7079;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;margin-top:0;margin-right:0;margin-bottom:6px;margin-left:0">Fieldnote Inc. · 548 Market St #4120 · San Francisco, CA 94104</p><p class="mb-muted" style="font-size:12px;line-height:18px;margin:12px 0 0;color:#6B7079;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;margin-top:12px;margin-right:0;margin-bottom:0;margin-left:0"><a href="https://x.com/fieldnote" class="mb-muted" style="color:#6B7079;text-decoration-line:none;text-decoration:underline" target="_blank">X</a> · <a href="https://linkedin.com/company/fieldnote" class="mb-muted" style="color:#6B7079;text-decoration-line:none;text-decoration:underline" target="_blank">LinkedIn</a> · <a href="https://github.com/fieldnote" class="mb-muted" style="color:#6B7079;text-decoration-line:none;text-decoration:underline" target="_blank">GitHub</a></p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><!--/$--></body></html>Receipt #2418-7730
$158.40 paid — thank you.
Date paid: October 16, 2026
Payment method: Visa •••• 4242
Receipt number: 2418-7730
Team plan
6 seats × $24 · Oct 16 – Nov 16, 2026
$144.00
Subtotal $144.00
Tax (10%) $14.40
Amount paid $158.40
Download PDF receipt (https://fieldnote.app/billing/receipts/2418-7730.pdf)
------------------------------------------------------------------------------
Manage invoices, billing details and tax IDs in billing settings
(https://fieldnote.app/billing).
Questions about this charge? Just reply — this goes to our billing team.
You're receiving this email because you have a Fieldnote account.
Fieldnote Inc. · 548 Market St #4120 · San Francisco, CA 94104
X (https://x.com/fieldnote) · LinkedIn
(https://linkedin.com/company/fieldnote) · GitHub
(https://github.com/fieldnote)
The TSX imports components.tsx and theme.ts from the kit. Grab the free starter (all six free templates with their components) on the free page.
Related
Invoice
№08 · BillingInvoice with bill-to details, due date, line items and a pay-now button.
Payment failed
№09 · BillingDunning email with the reason, retry date and a one-tap update-card button.
Plan changed
№10 · BillingUpgrade/downgrade confirmation with a before → after comparison and proration.
Subscription canceled
№11 · BillingGraceful cancellation confirmation with access end date, export link and a way back.