nextjs-subscription-payments | one starter kit for high-performance SaaS | Ecommerce library
kandi X-RAY | nextjs-subscription-payments Summary
kandi X-RAY | nextjs-subscription-payments Summary
The all-in-one starter kit for high-performance SaaS applications. With a few clicks, Next.js developers can clone, deploy and fully customize their own SaaS subscription application.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nextjs-subscription-payments
nextjs-subscription-payments Key Features
nextjs-subscription-payments Examples and Code Snippets
Community Discussions
Trending Discussions on nextjs-subscription-payments
QUESTION
The use case I am working on which is common but I need some suggestions to visualize it. Each user can have multiple projects to which they can subscribe to.
So for example, the User has two projects in his name, Project X and Project Y. Now each has its own subscriptions.
For each project-specific payment how can I tag the customer -> project -> subscription?
I am able to tag customers with subscriptions but not sure how to go about tagging the subscription to a project.
I was thinking something like
- On user create, adding a customer.
- On project create add a product with prices.
- The checkout
- Session
- Subscriptions/ checkout completed
- update DB
Problem with this one I see, if I change the price plans, I will have to update in all the places. :(
What are the best/other alternatives to achieve this? I am using Nextjs with Supabase for this. Following this example. https://github.com/vercel/nextjs-subscription-payments
...ANSWER
Answered 2021-May-21 at 09:02You can use metadata to 'tag' the things in Stripe to map to things in your data model.
If you want to change prices, yes, you'd have to update all the Subscriptions. Instead you might want to look at either using quantities or metered billing. https://stripe.com/docs/billing/subscriptions/model
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nextjs-subscription-payments
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page