Back to projects
Open Source ·

Unify Payment

A unified TypeScript package for seamless integration with multiple payment providers — Stripe, LemonSqueezy, and more through a single common interface.

View on GitHub TypeScript Payments Node.js

Quick Start

import { createPayment } from "@unify-payment/node";

const payment = createPayment({
  provider: "stripe",
  apiKey: process.env.STRIPE_SECRET_KEY!,
});

const { url } = await payment.createCheckoutSession({
  amount: 2999,
  currency: "usd",
  successUrl: "https://example.com/success",
  cancelUrl: "https://example.com/cancel",
  productName: "Pro Plan",
});

Switching to LemonSqueezy is as simple as changing the provider config — your business logic stays the same.

Want something like this built?

I'm available for freelance and contract work. Let's discuss your project.

Start a conversation