Sync Stripe webhook events directly into your database.
Note: this is experimental. Stuff might be broken.
Detailed setup instructions can be found here:
https://stripe-sync.vercel.app/
Synced Webhook events may contain sensitive information. Make sure to access this data using a service role Supabase client in a protected server environment.
stripe
schema:grant usage on schema stripe to service_role;
grant all privileges on all tables in schema stripe to service_role;
Make sure to pass the --no-verify-jwt
flat, since we want Stripe to be able to give us POST reqeusts.
supabase functions deploy stripe --no-verify-jwt
supabase secrets set --env-file ./supabase/.env
** Work in progress. Only Deno/Supabase Edge Functions are documented right now **
https://github.com/hattipjs/hattip
Supabase-js cannot do cross schema joins. This may change, but in the meantime your options are:
stripe_
prefix)Additionally, the Supabase Studio dashboard/table editor becomes very slow for large numbers of tables.
This project is inspired by all of the projects listed below.
https://github.com/supabase/stripe-sync-engine
stripe_
prefix ddl optionCurrently tested on every trigger supported by the Stripe CLI.
More robust tests coming soon.
Copyright (c) 2022-present, Lawrence Chen