Payments

Learn how to use supersaas to make payments, create subscriptions, manage invoices, stripe billing sessions for users, and more.

Supersaas uses Stripe to provide a collection of payment utilities that you can use in your site. You can use use these utilities for

Features

  1. Creating subscriptions
  2. Managing invoices
  3. Manage their subscription - Users can change plans, cancel subscriptions, and more)

One time payment

You can extend the functionality of the one time payment by using the useStripe composable and the useStripePayment composable.

index.ts
import { usePayment } from "~/server/services/payment";
const checkoutLink = await usePayment("stripe").createCheckoutLink();
const createBillingSession = await usePayment("stripe").createBillingSession();
const cancelSubscription = await usePayment("stripe").cancelSubscription();

UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS
UNLIMITED ACCESS PASS