#justinkuntz-nextjs

1 messages ยท Page 1 of 1 (latest)

graceful fulcrum
#

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?

craggy veldt
#

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...

graceful fulcrum
#

Checkout should support graduated prices so that documentation is out of date

craggy veldt
#

assuming I need to add "tiers_mode": graduated somewhere. I think any sample code with integration would be helpful for me.

graceful fulcrum
#

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)

craggy veldt
#

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!

graceful fulcrum
#

๐Ÿ‘ 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)

craggy veldt
graceful fulcrum
frank wedge
#

๐Ÿ‘‹

craggy veldt
#

Perfect and will do!

frank wedge
#

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.