#Jev - test clock discounts
1 messages ยท Page 1 of 1 (latest)
Hello, I believe discounts are supported by test clocks. Trying to think of what might have gone wrong here
I think also, but dont understand why it hadn't been applied
In the activity of the subscription, I can see "โฌ5.99 discount applied to a subscription"
And right after, a Payment succeed of 5.99 (the price of the subscription)
I'll try with a 50% off to test
Can you send me the ID of this subscription? (sub_123)
sub_1LZaEjH1RMPaibTQOEbDl323 in test mode
The 50% seems to work
It looks like the 5.99โฌ discount on the 5.99โฌ sub doesn't work
oh, now it seems to work ๐ค
That is good to hear but I am not sure why that might be. Can you send me the ID of the new subscription? I can look in to both and compare
I create a new fresh subscription, try to apply the coupon, then notice you
Here is the new one : sub_1LZawVH1RMPaibTQ03UyHoa5
I see in "Pricing" part, my coupon
But I don't see the reduction on the "upcomming invoice"
Maybe because I create the monthly sub then few minutes after apply the coupon, that maybe expire before the next billing period ?
I am looking, I am not sure why this discount is not being applied. If it is 1 month long that should apply from the 23rd of one month to the 23rd of the next
So it should be active when the next invoice is created as far as I know.
Still looking...
I am still having trouble with this. Will pull in a colleague for help and I will let you know what we can find
It is probably pretty straightforward and I am overlooking something
Hey apologies for the delay here. Took a bit of digging. Can you try advancing time on the test clock for sub_1LZawVH1RMPaibTQ03UyHoa5? It looks like there can be an issue where the discount will apply but the preview does not work with test clocks
Yes, I did it, does that help you ?
Hello ๐
Taking over and catching up, give me a moment please ๐
(ignore)
Actually, @rose zinc can you reconfirm if the discount was applied?
Not a UI Bug, this invoice has been charged without discount => in_1LZbpdH1RMPaibTQY6GzIOlx
yeah sorry, my bad. I misunderstood your response.
All good, we're flagging this internally
What does that mean ? Is it a bug ? Due to tests clocks or also in production ? Do you have any workaround ?
AFAIK its only limited to test clocks, don't think there any workarounds at the moment
@iron sorrel should be able to shed some more light on this as they're working on this.
Yeah this should be limited to test clocks. Trying to think of a workaround here. Are you just trying to see a discount applied on a subscription renewal?
Yes, 5.99 off for monthly and yearly subscriptions
I'm a bit worried about putting this in production :/
To do that, you can try making a subscription without a test clock that has a 10 second trial period and then make the API call to add the discount immediately after
After 10 seconds, the trial will end and test mode will go through the subscription renewal logic
But, if the bug is due to the fact that the subscription renewal will be applied in 1 month and few hours while de discount will expire in exactly one month, that will not work in production and I can't test it without clocks or waiting a month :/
Hi ๐ I"m stepping in for @iron sorrel . Give me a minute to catch up