#perfectpandapaws

1 messages ยท Page 1 of 1 (latest)

sinful yachtBOT
shrewd girder
#

Hmm do you have an example subscription ID you can share?

#

"pausing" as a feature was rolled out to support business when covid first hit

#

Since then, we've rolled out subscription schedules which offer similar functionality

#

For periods where you don't expect a user to pay, i think it might generally be better to switch them to a free plan with a schedule than void the invoices, though this is up to you

scarlet totem
#

I've been slowly building a case for schedules, but it's a lot of code to update, so I'm not quite there yet. ๐Ÿ™‚

Ran the test, and here's the sub ID to go with it: sub_1O7jTbIm9ryFzCY4Oc5Hv0QX

#

If I space out the dates a little more, then it works the way I expect- it's just when unpause and invoice are close together this happens. I can work with it, but I'm curious if it's intended or I'm misunderstanding something.

shrewd girder
#

Does the gap happen to be 3 days / 72hrs, where you see different results?

scarlet totem
#

I'd have to narrow it down, but that sounds about right

shrewd girder
#

Looking at the example now โณ

scarlet totem
#

๐Ÿ‘ If it helps it does look like it's at 72 hours.
This is one where the resume was at 72 hours: sub_1O7jktIm9ryFzCY47pGCZKzz
Pushed it out to 78 hours, and it voids the invoice: sub_1O7jktIm9ryFzCY47pGCZKzz

shrewd girder
scarlet totem
#

so it's the webhooks on the event changing the behavior?

shrewd girder
#

It looks like your webhook endpoints are responding to this, but that you're advancing past the pause resume before the invoice can finalize (and void)

#

I'd suggest trying this:

#

1/ advance to the end of the cycle to generate the last invoice you want voided
2/ advance the clock just an hour or two (ie, still before the pause end) -- you specifiically want a second step after the invoice generation before the unpause
3/ advance the clock again past the unpause date

#

i think its worth clarifying that clock advancement are somewhat atomic, they don't fast forward time with events happening as they would in real time, you need to step through important phases

scarlet totem
#

I'll play with that then. I thought it might be something like that- makes more sense then the docs around pausing being wrong lol

shrewd girder
#

Sure thing, give it a shot, i suspect it will then work as expected

scarlet totem
#

It took a couple tries to get the advancement times right, but it is working as expected now. Thanks!