Skip to content

QZPay - Universal Billing Library

Universal billing and payments library for Node.js applications. Support for Stripe, MercadoPago, and more.

Features

Provider Agnostic

Switch between Stripe, MercadoPago, or any custom provider without changing your business logic.

Type Safe

Full TypeScript support with comprehensive types for all billing operations.

Framework Integrations

Ready-to-use integrations for Hono, NestJS, and React applications.

Battle Tested

Over 3,800 tests with 90%+ code coverage across all packages.

Packages

PackageDescription
@qazuor/qzpay-coreCore billing types, services, and utilities
@qazuor/qzpay-stripeStripe payment provider adapter
@qazuor/qzpay-mercadopagoMercadoPago payment provider adapter
@qazuor/qzpay-drizzleDrizzle ORM storage adapter
@qazuor/qzpay-honoHono middleware and routes
@qazuor/qzpay-nestjsNestJS module and decorators
@qazuor/qzpay-reactReact hooks and components

Quick Example

import { createQZPayBilling } from '@qazuor/qzpay-core';
import { createQZPayStripeAdapter } from '@qazuor/qzpay-stripe';
import { createQZPayDrizzleAdapter } from '@qazuor/qzpay-drizzle';
const billing = createQZPayBilling({
paymentAdapter: createQZPayStripeAdapter({ secretKey: process.env.STRIPE_SECRET_KEY }),
storage: createQZPayDrizzleAdapter(db)
});
// Create a customer
const customer = await billing.customers.create({
email: 'user@example.com',
name: 'John Doe'
});
// Create a subscription
const subscription = await billing.subscriptions.create({
customerId: customer.id,
planId: 'pro-monthly'
});