#meisei81-subscription
1 messages · Page 1 of 1 (latest)
It says "a new invoice will be created", but when will it be auto paid?
Now we're designing the subscription program and it comes up a problem that when stripe to auto renew the plan. If stripe auto renew before the plan expire, we want to know what's the time that stripe advanced. If stripe auto renew after the plan expire, we should extend the plan in case of avoiding the user cannot use our service.
This is automatically managed by Stripe. There're multiple settings involved in this. The simple answer is that Stripe won't change the subscription status till the payment is attempted on the invoice. You can look at the next_payment_attempt [0] when the invoice is created to determine when is the payment attempt.
In https://dashboard.stripe.com/settings/billing/automatic, you would also have configurations for how a subscription should behave when payment retries fail.
[0] https://stripe.com/docs/api/invoices/object#invoice_object-next_payment_attempt
if you want to test this you can take a look at test clocks : https://stripe.com/docs/billing/testing/test_clocks
So you mean that we should listen on the subscription status? What the status should be listened?
hmmm, probably https://github.com/stripe/stripe-java/releases/tag/v20.109.0 - i can see another update for using the test clock in this version