#Jev - test clock discounts

1 messages ยท Page 1 of 1 (latest)

iron sorrel
#

Hello, I believe discounts are supported by test clocks. Trying to think of what might have gone wrong here

rose zinc
#

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

iron sorrel
#

Can you send me the ID of this subscription? (sub_123)

rose zinc
#

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 ๐Ÿค”

iron sorrel
#

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

rose zinc
#

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 ?

iron sorrel
#

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

iron sorrel
#

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

rose zinc
#

Yes, I did it, does that help you ?

quasi frost
#

Hello ๐Ÿ‘‹
Taking over and catching up, give me a moment please ๐Ÿ™‚

#

(ignore)

#

Actually, @rose zinc can you reconfirm if the discount was applied?

rose zinc
#

Not a UI Bug, this invoice has been charged without discount => in_1LZbpdH1RMPaibTQY6GzIOlx

quasi frost
#

yeah sorry, my bad. I misunderstood your response.

rose zinc
#

No problem

#

I'm looking for a workaround to face that issue

quasi frost
#

All good, we're flagging this internally

rose zinc
#

What does that mean ? Is it a bug ? Due to tests clocks or also in production ? Do you have any workaround ?

quasi frost
#

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.

iron sorrel
#

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?

rose zinc
#

I'm a bit worried about putting this in production :/

iron sorrel
#

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

rose zinc
#

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 :/

fleet lantern
#

Hi ๐Ÿ‘‹ I"m stepping in for @iron sorrel . Give me a minute to catch up