#Wik
1 messages · Page 1 of 1 (latest)
You should use test clocks: https://stripe.com/docs/billing/testing/test-clocks
You'd want a scenario where a payment fails, and triggers that status. So use an appropriate test card that will result in a decline or similar
I see, thanks. I was following these steps before but did not advance time enough. Thank you!
Hi, one more question; is it possible to create a subscription with status=past_due via API?
No, not directly. You'd need to trigger that status via a failed payment: https://stripe.com/docs/billing/subscriptions/overview#failed-payments
So I guess create a new subscription that requires immediate payment, and use a test card that will fail payment
Got it, thanks@