#trueinviso
1 messages · Page 1 of 1 (latest)
Interesting, so it is getting used up just on the Quote creation, not when it is accepted?
yes
Looking in to this, I have to admit I am a bit unfamiliar with quotes. Can you show me how you are converting quotes to Checkout Sessions
This is the overall building of the checkout session hash
This is the discounts hash
And the quote is just used for metadata
Ah so it is, from an API perspective, separate from the quote
I need the discount amount in metadata for doing some tasks in the webhook after the subscription is created
The checkout session from stripe handles displaying the "quote" so to speak once they are redirected to stripes checkout page
Gotcha, thanks for the clarification. I am wondering if it is intended that Quotes use up coupon uses on creation. Will get back to you with what I can find on this
Can you send me the ID of a quote that you saw this behavior with?
Thank you
Still looking in to this, was having trouble finding answers myself so I am reaching out to colleagues
Thank you for your patience, it looks like it is intended for Quotes to use up a coupon redemption when created.
Can you tell me more about how/why you are using the quote here? There may be another way to acheive this that does not use up a redemption
I'm just letting stripe calculate the discount amount instead of doing the manual calculation myself to prevent making a mistake
Gothca, that makes sense. I now see that I missed an important detail here: cancelling the quote frees that redemption back up
So if you cancel the quote it should be usable in the Checkout Session
Exactly