Stripe integration with in Vue.js

Hi everyone! I have a few questions about stripe integration. I'm trying to build a SaaS with vue & supabase ( using Supabase as backend ). The idea is only use vue with supabase-js. I can't find many examples about FE only and Supabase. I would like to know how i can integrate Stripe and have Subscriptions with stripe. Does anyone have some example ? Is this even possible/reliable ? Or do i really need a backend ? I was thinking about https://github.com/supabase/stripe-sync-engine with Edge Functions.
5 Replies
David.Stanton
David.Stanton5h ago
I'm actually just doing all this at the moment but not using vue. I've gone the route of using edge functions to call stripe api direct and use stripe as the db in effect, keeping minimal in SB postgress. On a idea of "why move/ replicate the data" when I can just query it, stripe do all the security, legislation stuff etc and i dont have to think too much about that side of stuff
Ricardo Coelho
Ricardo CoelhoOP5h ago
Well.. i guess most of the people that do that ( replicate ) is to only have 1 source to call ( in this case, supabase ). But i'm not sure what is the best approach. What kind of tables to have to check the subscription ?
David.Stanton
David.Stanton5h ago
just the subscription?
Ricardo Coelho
Ricardo CoelhoOP5h ago
All tables related to the subscription
David.Stanton
David.Stanton5h ago
Subscriptions | Stripe API Reference
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.

Did you find this page helpful?