
Build billing once.
Switch providers anytime.
A production-grade, provider-agnostic payments SDK for Node.js and React.
One unified API for Stripe, Paddle, PayPal, Lemon Squeezy, and Polar.
Everything you need
A complete payments solution in one unified SDK
One-time payments
Charge customers with a simple, unified API across all providers.
Subscriptions
Create and manage recurring billing without provider-specific code.
Webhooks
Normalized event handling across all payment providers.
Billing portal
Customer self-service portal URLs for all providers.
Provider-agnostic
Switch between providers without changing your code.
TypeScript
Full type safety with autocomplete out of the box.
How it works
Get started in minutes with a unified API
Install
Add PayLayer to your project
Configure
Set your provider and credentials
Use
Start processing payments
Examples
One-time Payment
Subscription
Webhooks
Supported Providers
All providers fully implemented and production-ready
Stripe
✅- Payments
- Subscriptions
- Billing portal
Paddle
✅- Merchant of record
- Subscriptions
- Checkout
PayPal
✅- Payments
- Subscriptions
Lemon Squeezy
✅- Checkout
- Subscriptions
Polar.sh
✅- Billing infrastructure
- Subscriptions
Resources & Links
Get started with our packages and examples