nextjs-subscription-payments
nextjs-subscription-payments copied to clipboard
name/email changes are not synchronized between supabase and stripe
When you change the customers name or email on the /account page, it updates in Supabase, NOT in Stripe.
When you change the customers name or email on the Stripe dashboard, it sends a Webhook, but the response is always 400.
customer.update events are not part of relevantEvents and return a 400 error.
So its a combination of 2 problems:
- We are updating the customer info on Supabase instead of Stripe - updating on Stripe will trigger webhook
- We are not handling the customer.update webhook