#silkmilksilk-subscription
1 messages ยท Page 1 of 1 (latest)
Thanks Soma! let me know if you need some event IDs or anything similar
Could you send me the event ID of the subscriptions?
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
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?
Yes thats correct
I'm looking into this, give me a few more minutes. Sorry for the delay!
No worries at all thanks for the help ๐
๐ 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
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!
๐ happy to help!