#camer
1 messages · Page 1 of 1 (latest)
Where are you trying to show this? Can you share a bit of context?
in the checkout page
I have it working so that it shows one item but I have to hard code which item it shows
This is your own custom checkout flow?
its the quickstart guide checkout
so my attempt was to use my react context that holds the cart array and pull directly from that but it was giving me errors
This is mostly up to you. You might manage products in a client side cart then eg send the "items" to your /create-checkout-session endpoint and iterate those to use the correct prices
the example doesn't include any dynamic cart behaviour though
i found some tutorial on something like that but it was weird because they used a function to call the backend which the example on stripe didn't do. i wanted to stick with the example on stripe because thats what the docs is going to help with
so is there a place in the docs that would talk about a dynamic cart?
I have looked but I can't seem to find it.
more specifically when you say send them to my /create-checkout-session, that is where I am having trouble