#robertotmuniz
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Hello!!
incomplete_expired is a terminal state
I don't believe it should change to anyother status after that
are you seeing something different on your end?
Our API ref explains this in detail
https://stripe.com/docs/api/subscriptions/object#subscription_object-status
No, I have a problem which is the following: when the customer pays by "boleto", as the "boleto" is generated on the day and time that the first invoice was generated, sometimes the customer is left without access to my product because It still hasn't normalized the bill for a matter of 2 hours, for example.
So I thought that a way around this is to maintain access to the product when the status changes to "incomplete" when renewing the monthly subscription fee and only remove access when it changes to "incomplete_expired"
This way, I believe the customer would have 23 hours to normalize the payment. However, 11pm is still not enough, as the bill is valid for 3 days for payment.
when it comes from "boleto" payments
What would you suggest to me to solve this problem?
I give or remove access to the product depending on the subscription status and not the invoice. I wouldn't want to switch to the invoice status at this point, as it will be much more complex for me.
I see. I think when you create the subscription, you need to set payment_behavior to allow_incomplete
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
That should prevent subscription from transitioning to incomplete_expired
I don`t want to prevent subscription from transitioning to incomplete_expired
I want to know what makes it transition from "incomplete" to "incomplete_expired""
do you know what that is?
When you create a subscription with payment_behavior: default_incomplete , the subscription gets created with incomplete status and when the invoice doesn't get paid in 23 hours, it switches to incomplete_expired automatically
NP! ๐ Happy to help
And after that, "incomplete_expired" will change to "unpaid" or "past_due" eventually or not?
No, incomplete_expired is a terminal state. So it won't change/transition to any other statuses
Okay!! Thank you very much, now I got it ๐ ๐