@gebarbilling/migrate
v0.1.3
Published
Stripe-shaped migration helpers for GebarBilling.
Downloads
146
Readme
@gebarbilling/migrate
Gebar-branded migration adapters built on top of @gebarbilling/server.
Stripe Adapter
import GebarMigrate, { createStripeMigrationClient } from "@gebarbilling/migrate";
const billing = new GebarMigrate(process.env.GEBARBILLING_SECRET_KEY!, {
baseUrl: process.env.GEBARBILLING_BASE_URL,
adapter: "stripe"
});
const stripe = createStripeMigrationClient(process.env.GEBARBILLING_SECRET_KEY!, {
baseUrl: process.env.GEBARBILLING_BASE_URL,
pricePlanMap: {
price_old_stripe_pro: {
planId: "plan_gebar_pro",
priceId: "price_gebar_pro_monthly"
}
}
});Webhook events are returned with Stripe-shaped names and the original Gebar event type on event.gebarType.
