#castle9000-trial-invoice-test
1 messages · Page 1 of 1 (latest)
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
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
?
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
I'll give that a go
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
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
np!