finds.dev← search

// the find

stripe-archive/stripe-payments-demo

★ 1,498 · JavaScript · MIT · updated Apr 2022

Sample store accepting universal payments on the web with Stripe Elements, Payment Request, Apple Pay, Google Pay, Microsoft Pay, and the PaymentIntents API. 💳🌍✨

An official Stripe demo showing how to wire up Elements, PaymentIntents, and the Sources API together in one sample storefront. It covers cards, Apple/Google Pay, and a dozen redirect-based methods (iDEAL, SEPA, WeChat, etc.). Archived since 2022 and no longer maintained.

Six server implementations (Node, Go, Java, Python, PHP, Ruby) sharing the same API surface — useful for seeing how the same Stripe flow maps across languages. Webhook signing verification is included out of the box rather than left as an exercise. The ngrok integration for local HTTPS is a practical touch that most tutorials skip. Country-based payment method suggestion is a decent pattern to copy for international checkout.

Officially archived and frozen at 2022 Stripe API versions — the Sources API it leans on for redirect methods is now deprecated in favor of PaymentMethods and the newer Payment Element. Anyone adopting this as a reference will be building on patterns Stripe itself has moved away from. No tests in any of the server implementations. Using Stripe as the product datastore is a cute trick for a demo but will mislead anyone who copies it into production.

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 →