#castle9000-trial-invoice-test

1 messages · Page 1 of 1 (latest)

muted salmon
#

What do you mean it doesnt get scheduled after that? You should see an invoice get created and get an invoice.created event for the draft invoice etc

severe sierra
#

Hi there, yeah so when I create a subscription with a trial of 10 seconds the next invoice (which would contain the payment above 0) doesn't get generated untill something like 3 mins after

#

is there a way to manually schedule this invoice immediately after the trial period ends

#

?

muted salmon
#

Oh, it just take some time for the jobs that manage invoices to run things

#

You can try instead setting a longer trial, then updating the subscription with trial_end=now

severe sierra
#

I'll give that a go

severe sierra
#

It works but I'm trying to test webhook events that fire an invoice which has a billing_reason to subscription_cycle. Is there any automated of testing that?

#

by setting the trial end now field the invoice billing_reason is subscription_update

#

ideally I need to test subscription_cycle

muted salmon
#

ok then yea just set the trial_end a few seconds away, but you will need to wait a few minutes for that cycle job to happen

severe sierra
#

fair enough

#

thanks for answering my questions

muted salmon
#

np!