#mancharface
1 messages · Page 1 of 1 (latest)
It will depend on what you want it to do
For example: if you only want it to apply to one of those items, you can set the max_redemptions on the promo code to 1: https://stripe.com/docs/api/promotion_codes/object#promotion_code_object-max_redemptions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm not sure I understand. Even if the code is set to 1 redemption, I still would wonder whether that code is knocking the price down to 0 for each of the products in the cart , since it's valid for each of those Products, or whether Stripe chooses one of those Products and knocks its price to 0 while the other Products stay at the original price.
I believe it would bring the price to 0 for just one item, but let me repro and doublecheck
That's what I would assume but would love confirmation on this before we move forward knowing that. Thank you!
Okay, so the coupon would be applied to all items in the Checkout Session
Which would essentially result in a net total of 0 (which Checkout will throw an error about)
Oh interesting. Checkout will throw an error if the net is 0?
And one more follow up question. If they use a single PromoCode that applies to those three items in the cart, that would count as a single redemption then, correct? Not three redemptions. (Let's say there's a fourth item in the checkout session so the net isn't down to 0).
Oh interesting. Checkout will throw an error if the net is 0?
Yes