What’s in the SDK
The@billingos/sdk package gives you everything you need to add billing to a React app:
Components
Hooks
What you don’t need to do
- No Stripe SDK — BillingOS handles all Stripe communication. No
@stripe/stripe-jsor@stripe/react-stripe-jsneeded. - No PCI compliance — Checkout runs in a secure iframe. Card data never touches your servers.
- No webhook handling — Entitlements update automatically after checkout.
Quick example
Architecture
Requirements
- React 18+ (React 19 supported)
- TypeScript types included — no separate
@typespackage needed - Built on TanStack Query for data fetching and caching
- Tree-shakeable bundle (
sideEffects: false)
Next steps
Installation
Install the SDK and set up peer dependencies.
BillingOSProvider
Configure the provider and connect to your app.