#alexelba
1 messages · Page 1 of 1 (latest)
Hi 👋
You can do a couple things here.
- Let them pick products before you create the Checkout Session and use their choices to populate the
line_items
or
- Set the
adjustable_quantityparameters for eachline_itemto allow the user to set the quantity of the product they don't want to 0 https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-adjustable_quantity-enabled
can I do with mutually exclusive products?
Well that wouldn't make sense. Because the Customer would be able to set the quantity to greater than 0 for both of them.
So if you want them to be mutually exclusive you'll need to collect that info in your integration before you redirect to the Checkout Session
Maybe with something like a radio button group
ok thanks