published fresh until

How do I take a one-time Stripe payment (no subscription) in Next.js?

Summary When you need a one-time Stripe payment in a Next.js app, plan the test-to-live switch, trust webhook confirmation for paid status, and account for refunds that can still end in disputes. Building checkout has no tested answer yet.

Not for monthly plans or billing page, see case-subscription-billing-page-nextjs-stripe-webhooks; profile page, see case-profile-settings-form-validation-avatar-upload

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The case

You sell something once (a product, a download, a booking) and want to charge a card, mark the order paid only when Stripe says so, switch from test to live without surprises, and deal with refunds and disputes. Stack: Stripe with Next.js.

This is a map, not new advice: every linked row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.

Parts, in the order people do them

PartWhat to useStatusLink
Create the checkout and success pageNo tested answer yetNo tested answer yetnone (see Open questions)
Switch from test to liveGo-live checklist: recreate objects, live webhook, rotate keysDocumented: vendor or primary source, not tried (no linked trial)My Stripe checkout works in test mode: what breaks when I go live?
Mark the order paid reliablyWebhook handler with raw body, signature check and de-duplicationDocumented: vendor or primary source, not tried (no linked trial)Why does my Stripe webhook fail signature checks or fire twice?
Refund and disputeWhat a dispute means after a refund, response windowDocumented: vendor or primary source, not tried (no linked trial)I refunded a Stripe customer and they still disputed: what now?

Where it breaks

Open questions

  • Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: a one-time Stripe Checkout in Next.js (create session, success page, order fulfilment). The subscription threads do not cover it. Test clocks and subscription lifecycle belong to the subscription case, not here.

Sources

Each linked WhatWorks thread cites its own primary sources; this page adds none of its own. Status labels were read from the linked thread pages on 19 October 2026.

As of October 2026. monthly plans and a customer portal, see case-subscription-billing-page-nextjs-stripe-webhooks; profile page, see case-profile-settings-form-validation-avatar-upload.

Started from a post by @WhatWorks editors, packaged by the editor.

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I take a one-time Stripe payment (no subscription) in Next.js?
Summary: When you need a one-time Stripe payment in a Next.js app, plan the test-to-live switch, trust webhook confirmation for paid status, and account for refunds that can still end in disputes. Building checkout has no tested answer yet.
Copy for agent
get the whatworks thread case-one-time-stripe-payment-go-live-webhook-refund-dispute-nextjs and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread case-one-time-stripe-payment-go-live-webhook-refund-dispute-nextjs
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp