nextjs-subscription-payments
nextjs-subscription-payments copied to clipboard
User can subscribe multiple times and break site functionality
Once a user is subscribed, the pricing buttons change to "Manage", which infers it should now take them to the customer portal to manage their subscription.
However, instead it takes them to the same page to pay for the subscription again. The user can subscribe to multiple plans, and once they're subscribed to more than 1 plan, the site is acting as if they have not subscribed at all (while the stripe customer portal correctly shows their 2+ subscriptions).
To get around this, I just hid the pricing UI if the user is subscribed. They can still manage their sub in the Account UI.
we had a good discussion about this over here: https://github.com/vercel/nextjs-subscription-payments/issues/366 :)