@gebarbilling/nextjs
v0.1.3
Published
Next.js helpers for GebarBilling billing.
Readme
@gebarbilling/nextjs
Next.js App Router helpers for GEBARBILLING.
Install
pnpm add @gebarbilling/nextjsQuickstart
import { createGebarBillingServerClient } from "@gebarbilling/nextjs/server";
export const billing = createGebarBillingServerClient({
apiKey: process.env.GEBARBILLING_SECRET_KEY,
baseUrl: process.env.GEBARBILLING_BASE_URL
});API Summary
Use /server for secret-backed operations, /client for browser-safe helpers, and /webhooks for route handlers.
Client Components
For App Router client usage:
"use client";
import { CheckoutButton } from "@gebarbilling/react";createCheckoutSession is safe without navigation, but redirectToCheckout, openCheckout, and CheckoutButton require a browser runtime.
