#silkmilksilk-subscription

1 messages ยท Page 1 of 1 (latest)

wheat path
#

Hello @runic knot! I'm currently looking into this, give me a few minutes.

runic knot
#

Thanks Soma! let me know if you need some event IDs or anything similar

wheat path
#

Could you send me the event ID of the subscriptions?

runic knot
#

Here is a subscription event which successfully shows a discount with an amount_off field: evt_1K4PLfFlWrS9Xt7Z8JOVQ7xc

Heres a subscription event which fails to show a discount, it's latest_invoice does show a discount though: evt_1K4QDJFlWrS9Xt7ZVC0YsHJa

#

Those are both in test mode btw

wheat path
#

So if I understand correctly, you are creating a Checkout session with mode: "subscription" and allow_promotion_codes: "true". Then the user adds their promo code.
If the promo code has an amount_off, then you see the discount in the subscription, but if the discount has a percent_off, then you don't see the discount in the subscription. Is that correct?

runic knot
#

Yes thats correct

wheat path
#

I'm looking into this, give me a few more minutes. Sorry for the delay!

runic knot
#

No worries at all thanks for the help ๐Ÿ™‚

vapid cosmos
#

๐Ÿ‘‹ I was helping @wheat path look into this - we believe the reason this is happening is because the amount off coupon you're using is repeating and will apply to future subscription invoices while the percent off coupon is a one-time one. For one-time coupons we remove them from the top-level subscription when they will no longer apply to any future subscription invoices. So in this case the coupon was applied to the first invoice during sub creation and then immediately removed since the coupon was used up

runic knot
#

Oooh, okay that makes sense. I've obviously made a mistake with how im using that data then.

Thanks for looking into this both of you, much appreciated!

vapid cosmos
#

๐Ÿ‘ happy to help!