PayLayer Logo

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.

Works with:
Stripe
Paddle
PayPal
Lemon Squeezy
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

1

Install

Add PayLayer to your project

Loading...
2

Configure

Set your provider and credentials

Loading...
3

Use

Start processing payments

Loading...

Examples

One-time Payment

Loading...

Subscription

Loading...

Webhooks

Loading...

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

GitHub Repositories

paylayer-core

Core SDK for Node.js

paylayer-react

React SDK with hooks

paylayer-nextjs-quickstarter

Next.js starter template

paylayer-core-example

Express.js example

NPM Packages