nextjs-subscription-payments | fully customize a SaaS subscription application | Ecommerce library
kandi X-RAY | nextjs-subscription-payments Summary
kandi X-RAY | nextjs-subscription-payments Summary
The Vercel deployment will guide you through creating a Supabase account and project. After installing the Supabase integration, you'll need to configure Stripe with a few simple steps. Note: We're working on our Stripe integration. We've documented the required steps below under "Configure Stripe" until the integration is ready.
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