#work4inventions_api
1 messages · Page 1 of 1 (latest)
đź‘‹ Welcome to your new thread!
⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đź”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1257301658384207893
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
Well you can't get an status: 'active' subscription without a paid invoice. If you want past_due then you likely need a recurring payment to fail, it won't transition to that state for an initial payment AFAIK
how can I make status to past_due
You'll likely need the initial invoice payment to succeed to so that the sub is active, and then have the subsequent invoice payment fail which will trigger a transition to past_due
Test clocks enable you to advance the clock to trigger these scenarios: https://docs.stripe.com/billing/testing/test-clocks
I need to move the subscription incomplete to past_due, then how does I make ?
is there any tricky way to make incomplete to active status on subscription.
In short, I need to move subscription incomplete to active or past_due. If this is not possible then is there any way to make subscription directly active status without a paid invoice
I just explained how. You can't go directly from incomplete to past_due
Yeah, pay the invoice generated by the subscription
No, you need a paid invoice (whether that's a free invoice or not) to go incomplete -> active
if customer's card is declined then this subscription will be moved to expire status
so I need to handle this situation on subscription
I don't need to move subscription status into expired status
It'll transition to incomplete_expired if the initial invoice is unpaid after 23 hours yes
if the customer's card is not complete payment then the subscription needs to move to past_due
in order to move to subscription on past_due we need active subscription.
so all these are connected to each other
That's just not possible I'm afraid
ok, thanks
Not for the initial payment as I explained. past_due is a status for subsequent billing periods/payments:
Payment on the latest finalized invoice either failed or wasn’t attempted. The subscription continues to create invoices. Your subscription settings determine the subscription’s next state. If the invoice is still unpaid after all Smart Retries have been attempted, you can configure the subscription to move to canceled, unpaid, or leave it as past_due. To move the subscription to active, pay the most recent invoice before its due date.
but on incomplete status start retry won't work right
Correct, there's no automatic retries for initial payment
so I can't achieve this functionality right ?
You can't trigger past_due status for failed/incomplete payments on the initial subscrition invoice, no
ok, thanks for quick help