#Filip Pešić-past_due-CLI

1 messages · Page 1 of 1 (latest)

hazy anchor
#

Filip Pešić-past_due-CLI

#

Good question. Not immediately sure. Do you have a command you are currently using where that status is not recognized?

mint cliff
#

stripe trigger customer.subscription.updated --add customer:metadata.client_id=8888 --override subscription:status=past_due
or
stripe trigger customer.subscription.updated --add customer:metadata.client_id=8888 --add subscription:status=past_due

#

That's what I tried.

#

The customer part is working of course.

hazy anchor
mint cliff
#

Thanks. Yes, I did sign up for it. 🙂

hazy anchor
#

It looks like the best way to test this now is to create a subscription with a few second trial. It isn't instant but can get you a past due subscription in about an hour

#

Unfortunately you can't directly trigger past_due at the moment

mint cliff
#

Yeah, I did read about that as well, in the docs. However, how can I create a trial so short? Through the API or Stripe SDK?

#

In the dashboard the minimum is 1 day.

hazy anchor
#

Yes, in the API you can set trial_end to any time in the future. I often set it to ten seconds from now

#

CLI should also be able to as well if you prefer setting it from there