#Apollo_4
1 messages · Page 1 of 1 (latest)
Hi 👋
You cannot add new line items to a Checkout Session once you have created it but you can add up to 20 line items in subscription mode or 100 line items in payment mode when you first create a checkout session
In other words, how can I distinguish my checkout buttons to go to the appropiate payment page for the item?
I'm not sure what you mean here. What part of the Stripe API are you having trouble with?
How can I make it so I can have multiple items on my checkout.html page as I have customized as such in this screenshot
The issue is that if I add products to line items, it combines the items at checkout, or all of the checkout buttons go to the same item
That sounds like you just need to adjust your logic in your server to assign the correct line items and make sure your buttons are wired up to the correct functions. This does not appear to have anything directly to do with the Stripe APIs
Ooo I think Im onto something with that
Okay so can I add multiple app.post request to the server file?
Like copy the one that works for one item, and then change the '/create-checkout-session' to something sligthly different?
This is something to do with your code/integration. I can't really offer advice. This server is specific to interfacing with the Stripe APIs
Im working off this doc, https://stripe.com/docs/checkout/quickstart is there any info you can provide as far as flexibility with multiple items. This works perfectly with one item so yes there are no issues with the API technically, but surely it can be adjusted to be able to let customers shop for more than just one item