#Ryan_Whipple - Pausing Subscriptions
1 messages · Page 1 of 1 (latest)
For question #2 the timestamp is a Unix timestamp (the number of seconds since midnight on Jan 1 1970 UTC).
For question #1 I don't think there's an event, but let me confirm...
ok, ty. If there is an event I can just listen for that, otherwise I'll need to have my server manually watch for that timer and restore access. It can be done, I'd just rather not do that if Stripe takes care of it already 🙂
There isn't a specific event, but you can listen for customer.subscription.updated which will fire whenever the Subscription object itself changes (when it resumes it will change, so this will fire).
ok, excellent, that's what I was looking for. just wasn't sure that would trigger a .updated event and i'm not sure how I'd test that either without waiting 1 month for each test. Thanks again!
You could create a 1 day Subscription and test it faster that way.
You may also be interested in signing up for this beta: https://stripe.com/docs/billing/testing/test_clocks