vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.
https://subscription-payments.vercel.app/
MIT License
6.08k stars 1.23k forks source link

Deleted products on Stripe still showing up #170

Closed togume closed 6 months ago

togume commented 1 year ago

Awesome template - it's amazing how quickly one can build these days.

Question: how do you delete products after they've been removed from Stripe? I removed a couple test products I had, but they're still showing up.

Does one delete them from the DB manually? Something else?

Thanks!

togume commented 1 year ago

Update: manually deleting them from Supabase (pricing & products) does the trick.

Should this be done via webhook?

kevinkatzke commented 10 months ago

@togume The current implementation of the webhook in app/webhook/route.ts does not support the product.deleted event that is sent by Stripe. With the way this project is currently implemented the only way to delete Stipe product is to manually delete them from the Supabase DB. Adding support for more Stripe events would be great!

chriscarrollsmith commented 9 months ago

Opened a PR to fix this issue:

https://github.com/vercel/nextjs-subscription-payments/pull/271

leerob commented 6 months ago

https://github.com/vercel/nextjs-subscription-payments/pull/278

belugawhale3 commented 4 months ago

I'm still seeing this issue. Anyone else?

belugawhale3 commented 4 months ago

Never mind it was a env var issue