Stripe Reference & Test Integrations Beta

A collection of Stripe integrations for reference, testing, and learning.

Unless otherwise specified, everything here uses a US Stripe account in test mode which has all payment methods enabled.

⭐️ Reference integrations

These integrations are designed to be minimal, always-working implementations of various Stripe products and features. These will rarely be changed. You can use these as a point of reference to test basic functionality.

Buy Button

Two buy buttons, one for a one-time payment and another for a subscription

Card Element

A single Card Element that will make a test payment when used

Card Element: Split

A single set of split Card Elements (number, expiration, CVC, and postal code) which will make a test payment when used

Checkout

A link that, when visited, will create a new Checkout Session and redirect the user to its URL

CVC Element

A single CVC element that will create a CVC Token

Elements: Recommended Payment Form

A minimal (but heavily-commented!) example of how I would combine the Express Checkout Element, two Address Elements, and the Payment Element to build an ideal payment form

Express Checkout Element

Two Express Checkout Elements (US & GB) showing multiple wallet options that will make a test payment when used

Financial Connections

A button that will create a Customer, create a Financial Connection Sessions for that Customer, and start the flow to connect a Financial Account

Link Authentication Element

A Link Authentication Element alongside a Payment Element and Address Element which can be used to complete a test payment

Payment Element

A single Payment Element that will complete a test payment when used

Payment Links

Two Payment Links; one for a one-time payment and another which will start a subscription

Payment Method Messaging Element

A single Payment Method Messaging Element which displays payment options and, when interacted with, a modal with more information

Pricing Table

A single Pricing Table showing two Prices for a single Product

🧑‍💻 Other test integrations

These integrations are more dynamic than the reference integrations above, and are subject to change at any time. I try to keep them in a functional state, but encountering an error or broken integration in this section is to be expected.

Card Element: Robust

A more robust integration of the Card Element, with more options and features than the reference integration

🛠️ Other stuff

Some other miscellaneous things you might find useful.

Webhook Test URL

A handy URL (https://4242.io/webhook-tester/) you can use to debug webhooks. This URL returns detailed information about the incoming request. Visit the link to see it in action and learn more about how it works.