TypeScript SDK
Three lines, typed, and Pro is live.
Install @crxpay/sdk, paste your key, ask hasEntitlement('pro'). The SDK is MV3-native, typed all the way down, and reads a signed cache so checks work offline.
TypeScript SDK
The gritty stuff, handled.
Offline caching, service-worker routing, state machines, type safety. You write three lines, we run the engine.
Offline-first, signed cache
Every subscription state is HMAC-signed and cached locally. The SDK reads it in under 1ms so Pro stays on even when the user is on a plane or their Wi-Fi hiccups.
MV3-native, no CORS drama
All network calls route through the background service worker. You can call the SDK from popup, options, sidepanel, or content script — same API, no CORS errors.
XState under the hood
Subscription state is a finite state machine. Invalid transitions are impossible. No more "user is active but also cancelled" ghost bugs at 2am.
Typed, never throws
Every public method returns a Result. No unchecked exceptions, full inference in your editor, and every error code in the union so switch exhaustiveness catches mistakes.
Why devs install crxpay
Small SDK, big leverage.
Ready to grow?
Our entire suite of features comes standard — and your first $2,500 in tracked revenue is free.