#jettary
1 messages · Page 1 of 1 (latest)
If you do that setup with a test clock, you should be able to fast forward time on the clock by three days to see what its status will be https://stripe.com/docs/billing/testing/test-clocks
Can you try that and tell me if its status goes in to past_due as you expect? I think you might run in to something where the subscription goes in to some terminal state because the first payment wasn't paid but that may be another subscription setup
Is there are a way to associate existing customer / subscription with Test Clock?
Unfortunately not, you will need to create a new one here
Ok. I adjust my dev flow to handle it.
Customer created
Subscription with trial (and without Payment Method) added
Test Clock advanced into future
Subscription changed state to past_due
One thing left.
Is it possible to pay immediately an invoice with added Payment Method?
Yes, you can set the payment method as the default for either the customer or subscription
To set it for the customer you can set the payment method ID (pm_123) in their invoice_settings.default_payment_method property and for subscriptions it will be their default_payment_method property
https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.