Skip to main content

Install

Configure

The plugin adds stellartools_customer_id to the user schema. Run migrations after adding it so your database is up to date.

Plugin options

string
required
Your StellarTools API key.
boolean
Create a StellarTools customer when a user signs up. Defaults to false.
function
Called when a customer is created or linked.
function
Called when a subscription is created.
function
Called when a subscription is canceled.
function
Called when a subscription is updated.
function
Called when a checkout is completed.

Endpoints

All endpoints require a valid Better Auth session.

Customers

Subscriptions

Refunds