wasp-lang / open-saas

A free, open-source SaaS app starter for React & Node.js with superpowers. Full-featured. Community-driven.
https://opensaas.sh
MIT License
7.84k stars 743 forks source link

Use one product with multiple prices instead of two separate Stripe products for subscription example #257

Closed vincanger closed 1 month ago

vincanger commented 1 month ago

From user isidor on Discord:

Hi all, haven't been able to actually test/code with open saas but based on my research the only missing thing in comparison to some premium boilerplates is the management of subscriptions states (e.g. change subscriptions plan) which I believe is crucial. Other than that I think this looks like an awesome project, I will come back with more feedback though Hello there, I did not yet, for sure will do! But from the UI once you have selected a subscription plan e.g. Hobby you cannot switch to the other subscription type. You can only go to the stripe management page and cancel

This would be solved by creating one subscription product and configuring it to have two price tiers, rather than two separate products with fixed prices, which results in the user having to cancel their subscription and buy a new one.

vincanger commented 1 month ago

The docs already outline how to do this: https://docs.opensaas.sh/guides/stripe-integration/#create-test-products