#justinkuntz-nextjs
1 messages ยท Page 1 of 1 (latest)
I don't think we have an exact example that covers everything you need, but can you give more detail on what specifically you're having trouble with for graduated pricing?
I have everything running after cloning https://github.com/vercel/nextjs-subscription-payments. I can adjust the pricing and everything syncs and works but when I change the product to graduated pricing, it doesn't pull the cost properly. I know I am missing some necessary hooks to pull in the "unit" pricing but don't have a ton of experience with stripe/next(react).
also, the readme on the repo mentions "Stripe Checkout currently supports pricing that bills a predefined amount at a specific interval. More complex plans (e.g., different pricing tiers or seats) are not yet supported." so it is likely challenging. I am thinking I need to start with a baseline repo and build from scratch...
Checkout should support graduated prices so that documentation is out of date
okay, figured it was out of date. In looking at the types file (https://github.com/vercel/nextjs-subscription-payments/blob/main/types.ts), I would assume it has something to do with the webhooks in place to pull the pricing from Stripe?
assuming I need to add "tiers_mode": graduated somewhere. I think any sample code with integration would be helpful for me.
I don't think it has to do with the webhooks, but you will need to update those types and also the UI that's displaying the pricing
Again, there isn't really a sample on how to do this end-to-end. The repo you've shared has a lot of it's own logic for the UI that isn't really anything we cover in most of our docs (because how you display these prices is entirely up to you)
Okay, makes sense as I think they have optimized for a quick up and running. I do have the checkout page operating as expected so I will do some more digging. Thanks for the help and quick responses. If you happen across good examples of the UI display for graduated pricing display I would appreciate the share. Again, thanks!
๐ I'm heading out, but @frank wedge can answer any followups
And i'd highly suggest filling an issue in the repo asking for it to support more complex plans (since Checkout does support them now)
Thanks will do. I just came across https://stripe.com/docs/payments/checkout/pricing-table which looks like it could help me out a ton. Does the beta support graduated pricing? (I know you are headed out so I will look for a potential reply from @frank wedge) Thanks again!
Ah! Yup that beta is probably exactly what you want - I'd recommend writing in to the email pricing-table-beta@stripe.com to get confirmation
๐
That beta docs only currently highlight support for flat and per seat pricing models but yep the team supporting this can be reached at that direct beta email address to confirm that specifically.
I suggest including details of your use case when you reach out to help give context for the question.