Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update prices on stripe price update event #35

Open
elboletaire opened this issue Jan 8, 2025 · 0 comments
Open

Update prices on stripe price update event #35

elboletaire opened this issue Jan 8, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@elboletaire
Copy link
Member

elboletaire commented Jan 8, 2025

Right now we need to restart the server in order for the prices to be synced with stripe. This is OK for a first version, but we may face errors by users if we forget to restart the server.

Stripe allows to create a webhook that listens on price.updated (and maybe also plan.updated) changes, which should allow us to silently upgrade the prices, without requiring a server restart.

Webhook docs: https://docs.stripe.com/webhooks
Events list: https://docs.stripe.com/api/events/types#event_types-price.updated

@elboletaire elboletaire added the enhancement New feature or request label Jan 8, 2025
@elboletaire elboletaire changed the title Update prices on stripe price update Update prices on stripe price update event Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant