Stripe Checkout customer_email is null: where the email actually is
Updated 22 Nov 2026.
A paid Checkout Session can have customer_email: null. That field is only the
address you prefilled when you created the Session. If you did not pass
customer_email (or customer) at create time, it stays empty, even
after the buyer types an address at checkout and pays.
The address the buyer actually used is on
customer_details.email. Stripe's
Checkout Session object
documents both fields. If your handler reads session.customer_email and bails
when it is null, you can drop a paid order.
Read the buyer field first
type CheckoutSession = {
customer_email?: string | null;
customer_details?: { email?: string | null } | null;
payment_status?: string | null;
};
function buyerEmail(session: CheckoutSession): string | undefined {
return session.customer_details?.email ?? session.customer_email ?? undefined;
}
function fulfillCheckout(session: CheckoutSession) {
if (session.payment_status !== "paid") return { kind: "not_paid" as const };
const email = buyerEmail(session);
if (!email) return { kind: "missing_email" as const };
return { kind: "ok" as const, email };
}
Prefer customer_details.email. Fall back to customer_email only for
the prefill case, where the buyer never changed it and Checkout may not fill
customer_details the way you expected. Write a fixture that looks like a live
Session (prefill null, details filled), not like the tutorial object.
If the Session is still missing both, you can retrieve the Customer object when
session.customer is set, or look at the invoice later. Do not invent an address,
and do not skip fulfillment because the prefill field was empty.
Also check payment_status. A checkout.session.completed event with
payment_status: unpaid is a delayed payment method. Fulfill on
checkout.session.async_payment_succeeded, not on completion alone.
The Hamichi Checkout Email Kit finds the buyer on a paid Session, including guest checkouts, and sends the receipt once. The rest of the same production list is in Stripe webhooks: the production gotchas. Retries still apply: Why Stripe sends your webhook twice.