Provider Agnostic
Switch between Stripe, MercadoPago, or any custom provider without changing your business logic.
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.
| Package | Description |
|---|---|
@qazuor/qzpay-core | Core billing types, services, and utilities |
@qazuor/qzpay-stripe | Stripe payment provider adapter |
@qazuor/qzpay-mercadopago | MercadoPago payment provider adapter |
@qazuor/qzpay-drizzle | Drizzle ORM storage adapter |
@qazuor/qzpay-hono | Hono middleware and routes |
@qazuor/qzpay-nestjs | NestJS module and decorators |
@qazuor/qzpay-react | React hooks and components |
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 customerconst customer = await billing.customers.create({ email: 'user@example.com', name: 'John Doe'});
// Create a subscriptionconst subscription = await billing.subscriptions.create({ customerId: customer.id, planId: 'pro-monthly'});