# Guide for Supabase Auth + Stripe Checkout

**URL:** <https://community.weweb.io/t/guide-for-supabase-auth-stripe-checkout/2069>\
**Category:** How do I?\
**Created:** [March 20, 2023, 8:13pm UTC](https://community.weweb.io/t/guide-for-supabase-auth-stripe-checkout/2069 "2023-03-20T20:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyleraspegren](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@skyleraspegren](https://community.weweb.io/u/skyleraspegren)\
**Post date:** [March 20, 2023, 8:14pm UTC](https://community.weweb.io/t/guide-for-supabase-auth-stripe-checkout/2069/1 "2023-03-20T20:14:00Z")

</div>

Is there any good guide for setting up Supabase to work well with Stripe Checkout on WeWeb?

The flow I’m looking to do is:

1. User Signs up with Supabase Auth
2. User selects a plan (base or premium) and uses Stripe Checkout to complete the subscription purchase
3. User Role is updated to match the subscription level the user purchased.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![chocpretz](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@chocpretz](https://community.weweb.io/u/chocpretz)\
**Post date:** [September 18, 2023, 6:25pm UTC](https://community.weweb.io/t/guide-for-supabase-auth-stripe-checkout/2069/2 "2023-09-18T18:25:42Z")

</div>

Hey did you figure this out? I’m just starting to explore this myself.

---

<div class="post-metadata">

**Author:** ![AJAW](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@AJAW](https://community.weweb.io/u/AJAW)\
**Post date:** [September 18, 2023, 11:40pm UTC](https://community.weweb.io/t/guide-for-supabase-auth-stripe-checkout/2069/3 "2023-09-18T23:40:18Z")

</div>

You’ll need to setup a webhook in stripe to forward information to supabase on `subscription.created/updated/cancelled`.

Since supabase doesnt have ‘endpoints’ like Xano, you’ll need an edge function to handle that. From there you can use the supabase javascript commands such as `supabase.update()` etc.
