Skip to main content

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-js or @stripe/react-stripe-js needed.
  • 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

That’s a complete pricing page with checkout in 7 lines.

Architecture

Requirements

  • React 18+ (React 19 supported)
  • TypeScript types included — no separate @types package 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.