home.howItWorks.subtitle
home.howItWorks.step1.description
home.howItWorks.step2.description
home.howItWorks.step3.description
home.whyKwit.subtitle
home.whyKwit.reason1.description
home.whyKwit.reason2.description
home.whyKwit.reason3.description
home.preview.subtitle
Developer
Settings
Subscriptions
Manage your active subscriptions.
Active
Trialing
Past Due
Canceled
Est. MRR
Jane Doe
jane@acme.com
Max Müller
max@startup.ch
Lena Huber
lena@design.io
home.features.subtitle
home.features.productsPricing.description
home.features.customerManagement.description
home.features.subscriptions.description
home.features.invoices.description
home.features.payments.description
home.features.checkoutSessions.description
home.features.apiKeys.description
home.features.webhooks.description
home.features.dashboardAnalytics.description
home.features.dunningRecovery.description
home.developer.description
import Kwit from "@kwit/sdk";
const kwit = new Kwit(process.env.KWIT_API_KEY!);
const customer = await kwit.customers.create({
email: "jane@acme.com",
name: "Jane Doe",
currency: "CHF",
});
const { checkoutUrl } = await kwit.checkout.create({
customerId: customer.id,
productId: "product_pro_monthly",
successUrl: "https://app.acme.com/welcome",
cancelUrl: "https://app.acme.com/pricing",
});
// redirect user to checkoutUrl