new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

stripe/configuration

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Stripe API version used

The plugin uses Stripe API version 2026-06-24.dahlia, which is the latest as of Stripe SDK v22.0.0.

Stripe plugin basic configuration

Add the Stripe plugin to auth config by importing stripe from '@better-auth/stripe', creating a Stripe client instance with `new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2026-06-24.dahlia' })`, then adding it to the plugins array with stripe({ stripeClient, stripeWebhookSecret: process.env.STRIPE_WEBHOOK_SECRET!, createCustomerOnSignUp: true }).

Stripe client plugin

Import stripeClient from '@better-auth/stripe/client' and add it to the client's plugins array with stripeClient({ subscription: true }) to enable subscription management.

Stripe webhook endpoint URL

Configure the webhook in Stripe dashboard to point to https://your-domain.com/api/auth/stripe/webhook. The /api/auth is the default path for the auth server.

Stripe webhook events required

Select at least these webhook events in Stripe dashboard: checkout.session.completed, customer.subscription.created, customer.subscription.updated, customer.subscription.deleted.

Stripe createCustomerOnSignUp callback

When createCustomerOnSignUp is true, a Stripe customer is automatically created on signup. Customize this with onCustomerCreate callback that receives { stripeCustomer, user } and ctx, or with getCustomerCreateParams that receives user and ctx to customize customer creation parameters.

Give your agent this brain