
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@startsimpli/billing
Advanced tools
Universal billing integration for StartSimpli Next.js apps. Products and pricing are configured in Django admin — frontend components auto-fetch and render.
The billing backend lives in start-simpli-api/apps/billing/. Models, admin, and API are already configured.
| Endpoint | Method | Auth | Description |
|---|---|---|---|
/api/v1/billing/products/ | GET | Public | List public products with offers |
/api/v1/billing/products/{slug}/ | GET | Public | Get product by slug |
/api/v1/billing/offer-checkout/ | POST | Required | Create checkout session |
/api/v1/billing/offer-portal/ | POST | Required | Create portal session |
/api/v1/billing/subscription/current/ | GET | Required | Get current user's subscription |
BillingProviderCredential (Stripe secret key + webhook secret)BillingProduct (slug = identifier used by frontend)ProductOffer inlines (pricing tiers)In your Next.js app's package.json:
{
"dependencies": {
"@startsimpli/billing": "workspace:*"
}
}
Add transpilePackages: ['@startsimpli/billing'] to next.config.js.
import { BillingProvider, PricingPage, useCheckout, ManageSubscription } from '@startsimpli/billing'
// Wrap your app (or a subtree) with BillingProvider
<BillingProvider apiBaseUrl="/api/v1" authToken={accessToken}>
<PricingPage productId="raise-simpli" onSelectOffer={handleSelect} />
</BillingProvider>
// Checkout hook
const { checkout, loading } = useCheckout()
await checkout({ offerId, successUrl, cancelUrl })
// Subscription management
<ManageSubscription returnUrl="/settings" buttonText="Manage Billing" />
| Component | Props | Description |
|---|---|---|
BillingProvider | apiBaseUrl, authToken | Context provider — required wrapper |
PricingPage | productId, onSelectOffer? | Full pricing display with offer cards |
PricingSection | productId, onSelectOffer? | Pricing section component |
PricingDetailPage | productId, onSelectOffer? | Detailed pricing page |
UpgradeModal | productId, open, onClose, onSelectOffer? | Modal pricing overlay |
ManageSubscription | returnUrl, buttonText? | Portal redirect button |
SubscriptionManager | productId? | Full subscription management interface |
| Hook | Returns | Description |
|---|---|---|
useProduct(slug) | { product, loading, error } | Fetch product + offers |
useCheckout() | { checkout, subscribeFree, loading, error } | Create checkout session or free subscription |
usePortal() | { openPortal, loading, error } | Open customer portal |
useSubscription() | { subscription, loading, error, refetch } | Get current user's subscription |
BaseBillingProvider → StripeBillingProvider (extensible to Paddle, etc.)The billing package integrates seamlessly with @startsimpli/auth:
import { BillingProvider } from '@startsimpli/billing'
import { useAuth } from '@startsimpli/auth'
function App() {
const { tokens } = useAuth()
return (
<BillingProvider
apiBaseUrl={process.env.NEXT_PUBLIC_API_URL + '/api/v1'}
authToken={tokens?.access}
>
{/* Your app */}
</BillingProvider>
)
}
NEXT_PUBLIC_API_URL=https://api.startsimpli.com
Backend requires:
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
# Frontend tests (39 tests)
cd packages/billing
npm test
# Backend tests (184 tests)
cd start-simpli-api
docker-compose -f docker-compose.local.yml exec -T django pytest apps/billing/tests/ -v
# Type checking
npm run type-check
# Watch mode for tests
npm run test:watch
# Coverage report
npm run test:coverage
FAQs
Universal billing integration for StartSimpli Next.js apps
We found that @startsimpli/billing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.