#trueinviso

1 messages · Page 1 of 1 (latest)

crystal turtleBOT
glass atlas
#

Interesting, so it is getting used up just on the Quote creation, not when it is accepted?

tiny plume
#

yes

glass atlas
#

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

tiny plume
#

This is the overall building of the checkout session hash

#

This is the discounts hash

#

And the quote is just used for metadata

glass atlas
#

Ah so it is, from an API perspective, separate from the quote

tiny plume
#

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

glass atlas
#

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?

tiny plume
#

Do you know where I could find that?

#

qt_1OUFzSHDRwNsRKsO6yw19tRY

glass atlas
#

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

tiny plume
#

I'm just letting stripe calculate the discount amount instead of doing the manual calculation myself to prevent making a mistake

glass atlas
#

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

tiny plume
#

Ok that makes more sense

#

so it's holding it in case the quote is accepted

crystal turtleBOT
glass atlas
#

Exactly