#Angus - coupon
1 messages ยท Page 1 of 1 (latest)
Hello, to align on terms, it sounds like fencepost error here would mean that you are worried a 12 month subscription would discount the user when they start and when they renew a year later?
As far as I know, we should stop the discount properly before the next payment in that scenario but I am not 100% sure.
yes ๐ to above
You can actually test this pretty quickly with one of our test clocks. Set up a subscription, fast forward 12 months and a day, and check what has been charged https://stripe.com/docs/billing/testing/test-clocks
haha, I would like to be 100% sure
Yeah, I'd say test like that then. I'm looking in to a couple other user questions at the moment so I can't quite test myself
I don't think that test will really cover it though.
Going a year and a day forward will almost certainly not have the coupon applied a second time.
It seems to me that it would almost come down to the second
Like what if Stripe charged them one minute early and the coupon was still within 12 months.
If I could, I would set 11.5 or 11.9 months. But that figure needs to be an integer.
(plz wait while I test using that test clock thing)
Wow, this simulator is really cool. I shouldn't have poo-pooed your suggestion before I clicked the link sorry. ๐
๐ Pompey had to step away
Let me know if you have any follow ups ๐
Hi @cosmic ferry - so I did the simulation, and it performed brilliantly. i.e. it charged the right amounts at the right time.
But I still have no confidence this is always going to happen.
Because the charge that was a year later, the invoice was created a year + 20 mins later.
The question is where did this 20 minutes jitter come from?
If stripe can guarantee that time difference is always going to be more than a year, then I can trust this simulation, if it can't guarantee this, then I would need some other assurance that the stripe API is going to handle this properly. There is no documentation on this, and it would be quite expensive to get wrong. So please understand why I'm being pedantic.
Can you share more details about what you're looking at? Like subscription ID, invoice ID etc