#_kcer
1 messages · Page 1 of 1 (latest)
hello! I think what you can do is to make use of test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
What you would want to do is to to create a Subscription with a valid card first, then later detach the card from the customer so that subsequent invoices generated will not be able to automatically charge
Yes, this is the approach I been doing, but by doing this, it shows 'retry' status on the invoice, if I fast time forward even more, the subscription is canceled, and the invoice turns into Failed
that's likely because you've set your settings to automatically cancel a subscription if the payment fails i think. Can you check if that's the case? https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
i would suggest using a different Stripe account for testing (if you're using the same account in livemode also)
the Billing settings apply to both live and test mode
Yes, the setting is set to automatically cancel
Is there a way to do it without changing the setting, and even I changed the setting, I don't see how invoice with "open" status exist in this case
isn't the status always gonna be retrying?
the "retrying" status that you see is a Dashboard only thing. The Invoice Object doesn't have a retrying status