finds.dev← search

// the find

stripe-samples/checkout-one-time-payments

★ 1,056 · CSS · MIT · updated Jun 2026

Use Checkout to quickly collect one-time payments.

Official Stripe sample showing how to redirect to Stripe Checkout for one-time payments. Covers the server-side session creation and webhook handling pattern across 8 server languages (Node, Python, Go, Ruby, Java, PHP, .NET, Next.js) with vanilla JS and React clients. This is a reference implementation, not a library.

Eight server implementations all expose identical routes, so you can cross-reference the Node version against the Go version when something looks off. The webhook handling is included and not an afterthought — it's the right way to confirm payment rather than trusting the redirect. CI runs end-to-end tests per server language via GitHub Actions, so the samples don't rot quietly. The Stripe Tax integration is documented as an optional add-on without making the base case more complicated.

The React client is still Create React App (now unmaintained), which will hit peer-dependency conflicts the moment you upgrade anything. The PHP implementation is procedural files in a public directory — fine for illustration, genuinely wrong if someone copies it into production without understanding why it's structured that way. There's no example of idempotency keys on session creation, which matters if your users hit the back button or your network drops. The .NET server uses minimal APIs but the project file pins no SDK version, so it will silently build against whatever the developer has installed.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →