Course lesson 54 · Payments with Stripe

Creating Stripe Products

One study unit · Read, recall, then practice · Original video 00:11:44

The application’s authentication initialization is updated to accept Stripe configuration, and Node compatibility is enabled after a dependency fails on a Node utility import. A new sign-in verifies automatic Stripe customer creation. The instructor then creates three sandbox subscription products and maps their recurring price IDs to named plans in Better Auth.

Primary source: course video 54 · Supplied English subtitles · 00:11:44.

Understand the idea

What the course does

  1. Pass initial Stripe settings into the expanded authentication helper and load the sandbox secret key from environment configuration.
  2. Regenerate types and add Node compatibility after the dynamic util dependency error.
  3. Refactor the helper interface from a Stripe client argument to an API-key argument, then rebuild.
  4. Sign in with a fresh test user and verify the matching Stripe customer ID in D1 and Stripe.
  5. Create Basic, Pro, and Enterprise recurring products and copy their price IDs.
  6. Populate the server plan list with lowercase plan names and the corresponding configured prices.

Watch for

Recall before revealing

Which Stripe identifier should the backend plan configuration use for billing?

Reveal the explanation

It uses the recurring price ID associated with the product, not merely the product’s identity or display name.

Try it

Create a paper mapping of application plan name, Stripe product, and recurring price ID for three tiers.

Check your result

Each plan points to a specific recurring price, and you can explain where its billing amount comes from.

Practice prompts and answer checks are added teaching material. Answer from memory first, then compare and explain any difference.

Rewatch only what you need

Open this lesson in your original course library and seek to the times below. Videos are not hosted on this site.

Companion primary documentation: Better Auth Stripe plugin. For recorded API names, commands, limits, and prices, check the version you use.

← Previous   Next →