Skip to main content
The @stellartools/core package is the main way to talk to the StellarTools API from TypeScript or JavaScript. It covers customers, checkouts, products, subscriptions, payments, refunds, and credits.

Install

Initialize

The API key determines whether requests go to testnet or mainnet. No other configuration is needed.

Customers

Checkouts

For a direct amount checkout without a product:

Products

Product types: one_time, subscription, metered.

Subscriptions

Webhooks

See the Webhooks page for all event types and a full handler example.