The standard way to add paid subscriptions to a Supabase app is Stripe Checkout plus one Supabase Edge Function that receives Stripe's webhooks and writes to a subscriptions table. It works, and it leaves you as the seller, with sales tax and VAT to register for and file. Shorter routes exist: the Stripe Sync Engine integration in the Supabase dashboard, which removes the webhook code; a merchant of record such as Paddle, tiun or Polar, which removes the tax work; and, for mobile apps, RevenueCat. Supabase itself has no billing product. The table below counts the accounts, secrets, functions and webhook events each route leaves you to own.
Four routes compared by moving parts
Route | Accounts | Secrets you store | Functions you write | Webhook events you handle | Tables you add | Legal seller | Fee on a $100 monthly plan |
|---|---|---|---|---|---|---|---|
1. Stripe Checkout + Edge Function webhook | Supabase, Stripe | Stripe secret key, webhook signing secret | 2: create the Checkout Session, receive the webhook | Usually 3 or more, such as | A | You | $3.90 (2.9% + $0.30, plus 0.7% for Stripe Billing); $4.40 with Stripe Tax |
2. Stripe Sync Engine + a checkout function | Supabase, Stripe | A restricted Stripe key, entered in the dashboard; a Stripe secret key for checkout | 1: create the Checkout Session | 0: the integration receives them | A | You | Same as route 1 |
3. Paddle, Polar or Stripe Managed Payments + webhook | Supabase, the vendor | Vendor API key, webhook secret | 1 or 2: the webhook, plus checkout if your server creates sessions | 4 in Paddle's own Supabase starter kit | A | The vendor | $5.50 at Paddle, and on Polar's Starter plan before its payout fees; $7.40 with Stripe Managed Payments |
4. tiun SDK + one token check | Supabase, tiun | One tiun API key | 1: verify the token, then read rows (only for data stored in Supabase) | 0 | None required; key your rows by tiun user ID | tiun AG | $5.14: $3.70 per charge (2.9% + $0.30, plus 0.5% on subscriptions) and a $1.44 payout fee |
Fees are for one $100 monthly charge on a US card. On non-US cards, Stripe and Polar add 1.5%, and Stripe adds another 1% when it converts currency. tiun charges no international-card surcharge and no separate conversion fee, and Paddle's flat rate lists no card surcharge. The tiun payout fee is 1.5% of the $96.30 paid out. The $7.40 for Managed Payments is 2.9% + $0.30, plus 3.5% for Managed Payments and 0.7% for Stripe Billing, which Stripe's Managed Payments pricing applies to subscription payments; the 3.5% is charged on the amount including tax.
Read the table from the right. On a US card, routes 1 and 2 are the cheapest per charge, and you are the seller: every country where you pass a tax threshold becomes a registration and a filing schedule. Route 3 costs more per charge on a US card, and so does route 4 once its payout fee is counted; in both, the vendor is the seller, so the tax work moves to them. On a non-US card, route 1 rises to $5.40, or $6.40 when Stripe converts currency, while tiun stays at $5.14. The "Functions" column assumes the usual setup. A Stripe Payment Link carrying your user ID in client_reference_id, a Polar checkout link or Paddle.js in the browser can each replace the checkout function, at the cost of less control over the session.
Route 1: Stripe Checkout and an Edge Function webhook
Stripe's own subscription docs say a subscription integration needs an endpoint that handles webhook events, because most subscription activity happens asynchronously, after the checkout page closes. On Supabase, that endpoint is an Edge Function.
Create the product and a recurring price in the Stripe dashboard.
Store the keys as Edge Function secrets:
supabase secrets set STRIPE_API_KEY=sk_... STRIPE_WEBHOOK_SIGNING_SECRET=whsec_.... Supabase reserves theSUPABASE_prefix for its own variables.Write a checkout function. It reads the signed-in Supabase user, finds or creates the Stripe customer, and creates a Checkout Session in subscription mode with the user's ID in
client_reference_idand insubscription_data.metadata, so later subscription events carry it too.Write the webhook function. Read the body with
req.text(), verify it withstripe.webhooks.constructEventAsync(), theStripe-Signatureheader andStripe.createSubtleCryptoProvider(), then upsert the subscription. Setverify_jwt = falsefor this function insupabase/config.toml, because Stripe signs its requests and sends no Supabase JWT. Supabase's Stripe webhook example shows the verification code.Create the
subscriptionstable: user ID, Stripe customer ID, status, price ID and period end.Enable row-level security on the table and add a select policy so each user can read only their own row (
(select auth.uid()) = user_id). Add no insert or update policy, so only the webhook function, using a Supabase secret key, can write.Give customers the Stripe customer portal, either through the no-code login link or a third function that creates portal sessions.
Two warnings for code copied from tutorials. Stripe API version 2025-03-31.basil moved an invoice's subscription ID to invoice.parent.subscription_details.subscription and moved current_period_start and current_period_end from the subscription to its items, so handlers written for older versions read missing fields once the SDK or webhook endpoint moves to that version or later. And Vercel's Next.js subscription starter was archived on 23 January 2025; its README points to the Next.js SaaS Starter. Tutorials that import @supabase/auth-helpers-nextjs are on a deprecated package too.
Route 2: Stripe Sync Engine from the Supabase dashboard
The Stripe Sync Engine integration, announced on 19 December 2025, installs from Integrations in the Supabase dashboard. It copies customers, subscriptions, invoices and payments into a stripe schema, keeps them current with webhooks that Supabase configures for you, and backfills history with Edge Functions and Supabase Queues. Supabase recommends a restricted Stripe key with write access to webhook endpoints and read access to everything else. The code moved to Stripe's GitHub organisation in April 2026, and Supabase says the dashboard integration keeps working as before.
What it leaves to you: the checkout function, the link from a Supabase user to a Stripe customer, and the query or view your app uses to decide access. The stripe schema holds every customer's billing data, so read it from server code or a view you control rather than exposing it to the browser. It takes no payment and files no tax.
Stripe now offers a paid alternative. Stripe Data Pipeline syncs Stripe data into Supabase from the Stripe dashboard, with no webhooks to maintain, into tables prefixed stripe_sdp. Its Postgres sync is in public preview and costs $0.0025 per row synced after 5,000 free rows a month, or $100 a month for 50,000 rows, per Stripe's pricing page. Either way, you are still the seller.
Route 3: a merchant of record with a webhook
A merchant of record sells to your customer in its own name, so it registers for, collects and files sales tax and VAT. You still receive a webhook to update access in Supabase.
Paddle charges 5% + $0.50 per transaction, with chargebacks included. Its official Next.js starter kit uses Supabase for auth, opens checkout in the browser with Paddle.js and a client-side token, and syncs data through a webhook that handles four events (subscription.created, subscription.updated, customer.created, customer.updated) into subscriptions and customers tables.
Polar charges 5% + $0.50 on its free Starter plan, down to 3.4% + $0.30 on its $400-a-month Scale plan, plus 1.5% on non-US cards, $15 per dispute, and Stripe's payout fees passed through: $2 a month plus 0.25% + $0.25 per payout. Checkout links need no server code. Polar's @polar-sh/supabase adapter is deprecated, and Polar points to its TypeScript SDK instead, so a Supabase build writes the webhook handler with that SDK.
Stripe Managed Payments makes Stripe the seller for digital products at 3.5% on top of standard card fees, with Stripe Billing's 0.7% still charged on subscriptions. It works with Stripe Checkout and Payment Links only, and it handles tax in more than 80 countries, so an existing route 1 build can switch without leaving Stripe. It is also the migration path Lemon Squeezy offers its sellers.
How tiun handles subscriptions beside Supabase
tiun takes over login, checkout, renewals and tax, and Supabase keeps your app's data. The browser loads @tiun/sdk with a snippet ID, tiun.login() signs the user in with a one-time code, and tiun.checkout({ productId }) opens checkout. productAccess lists what the user has paid for and updates when a purchase completes or a subscription ends, so the interface needs no webhook. For rows in Supabase, one Edge Function deployed with verify_jwt = false posts the token from tiun.getUserVerificationToken() to the verification endpoint with your API key, then reads that user's rows with a Supabase secret key. The limit: tiun's login is separate from Supabase Auth, so row-level security doesn't see tiun users and the function filters rows itself.
tiun is an EU-native merchant of record for SaaS and AI apps, operated by tiun AG in Zurich: login, checkout, subscriptions and EU VAT handling in one SDK, hosted in Europe. Fees: 2.9% + $0.30 per transaction, +0.5% on subscriptions, 1.5% on payouts, $35 per dispute.
Work that remains after the first payment
Job | Stripe routes (1 and 2) | Paddle or Polar | tiun |
|---|---|---|---|
Registering for and filing sales tax and VAT | You. Stripe Tax calculates and collects at 0.5% per transaction where you are registered; Tax Complete, from $90 a month, can file returns for you, but the liability stays yours | The vendor | tiun, as the seller |
Invoices carrying a buyer's VAT ID | You set up tax ID collection and invoices in Stripe | The vendor | tiun issues them in its own name and checks VAT IDs for reverse charge |
Failed renewals | Stripe retries on your schedule; you handle | Paddle retries up to seven times over 30 days; Polar four times over 21 days, with an optional grace period. You update access from the event | tiun retries the payment and notifies the buyer; after a permanent failure the product leaves |
Cancellations and payment methods | The Stripe customer portal | The vendor's customer portal | The buyer's portal at account.tiun.io; access runs to the end of the paid period. Reissued cards update automatically; to move a subscription to another card, the buyer cancels and subscribes again |
Refunds | You, in Stripe | You, in the vendor's dashboard | You, from the tiun dashboard under your own refund policy; the amount comes out of your next payout, and tiun's original fee is not returned |
Disputes | You respond; $15 per dispute received, plus $15 if you counter it, returned if you win | Paddle: included in the fee. Polar: $15 per dispute | tiun responds as the seller, with your evidence; the $35 fee, won or lost, and any lost amount come out of your payouts |
With Stripe as your processor, Stripe Tax calculates the rate and Tax Complete can file for you, but the registrations are in your name and the liability stays yours. EU business buyers also expect an invoice showing their VAT ID, which in Stripe Checkout means turning on tax ID collection. Renewals need code too: Stripe's webhook guide asks you to warn customers when a subscription goes past_due and revoke access when it becomes canceled or unpaid.
A merchant of record takes over the tax and invoice rows and runs the payment retries. With Paddle and Polar, your webhook still turns their events into access changes in Supabase. With tiun, the change arrives in productAccess, and the Edge Function reads it on the next request.
Income and corporate tax stay with you on every route, and so does the refund policy, within consumer law and card network rules.
Mobile apps
Subscriptions sold inside an iOS or Android app normally go through Apple's or Google's billing, and Stripe Checkout or a web merchant of record doesn't change that. RevenueCat wraps both stores, can send events to a Supabase Edge Function, and is free up to $2,500 in monthly tracked revenue, then 1% of tracked revenue. The rules for linking out from an app to a web checkout differ by country and are still changing; the post on external payments on iOS in the US covers the US position. tiun's React Native SDK runs checkout in an in-app browser and does not process App Store or Google Play in-app purchases.
Pick by situation
Your situation | Route |
|---|---|
Users already sign in with Supabase Auth, and you sell where you can register and file tax yourself | Route 1, or route 2 to skip the webhook handler |
You want all your Stripe data queryable in SQL next to app data | Route 2: the open-source Sync Engine, or Data Pipeline priced per row |
Users already sign in with Supabase Auth, and you sell into many countries without registering for VAT | Route 3: Paddle, Polar or Stripe Managed Payments |
A new web app selling subscriptions to consumers and small businesses in most of Europe, where a one-time-code login can be the login and Supabase holds the data | Route 4: tiun |
A native mobile app selling through the App Store and Google Play | RevenueCat with store billing |
tiun is the wrong choice when the app already has users in Supabase Auth: they would get a second login. It is also wrong when you sell to US businesses, which tiun doesn't serve, or when your buyers are in countries where tiun checkout isn't available, including India, Brazil, Mexico, Singapore, Estonia, Cyprus and Slovenia. Sign-in is by one-time code only, sent by SMS with email as a fallback, so new users give a phone number; there are no passwords or social login.
FAQ
Does Supabase have built-in billing?
No. The Stripe Sync Engine integration and Stripe Data Pipeline copy Stripe data into Postgres, and the Stripe foreign data wrapper queries Stripe from SQL and can write a few objects, such as customers. None of them runs a checkout or collects card details.
Do I need webhooks to add subscriptions to Supabase?
With route 1 and route 3, yes: your Edge Function receives them. With the Sync Engine, the integration receives Stripe's webhooks for you. With tiun, access state comes from productAccess without a webhook; the optional product_access.add and product_access.remove webhooks are for a backend that keeps its own copy. The server check is one call, shown in Verify subscriptions server-side.
Which billing platforms work with a Supabase app?
Stripe Billing, Paddle, tiun, Polar and Stripe Managed Payments on the web, and RevenueCat for in-app purchases on mobile.
Who files the VAT when I use Stripe with Supabase?
You do. Stripe Tax calculates and collects tax where you are registered, and Stripe Tax Complete can file returns for you, but the registrations and the tax liability are yours. With Paddle, Polar or tiun, the vendor is the seller and handles them; Stripe Managed Payments does the same in the more than 80 countries it covers.
Is the Vercel Next.js subscription starter still maintained?
No. Vercel archived nextjs-subscription-payments on 23 January 2025, and its README points to the Next.js SaaS Starter.
Can I still use Lemon Squeezy with Supabase?
Not for a new project. Lemon Squeezy closed new store sign-ups on 16 November 2026 and stops processing payments on 31 March 2027. Its migration tooling to Stripe Managed Payments opens on 2 December 2026, in the countries Managed Payments supports.
Related: Supabase alternatives with built-in billing · Best backend-as-a-service for a SaaS startup · Stripe Tax or a merchant of record for EU VAT · Who pays for a chargeback under a merchant of record