vercel / nextjs-subscription-payments

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

Webhook for production mode #350

Open Vette1123 opened 5 months ago

Vette1123 commented 5 months ago

so for locally development, i ran stripe:listen in order to updare the products, prices, etc..

what about production?, how to run the stripe:listen on vercel to be always listening for updates to insert them into my DB?

dikaio commented 5 months ago

@Vette1123 I think what you are wanting to do is register your endpoint which would be the platform you're hosting your site on e.g. Vercel. You can learn about that on Stripes section on webhooks.