#nsad_api
1 messages · Page 1 of 1 (latest)
đź‘‹ Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1299343655118704753
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, example in Subscription have field status, do when payment recurring failed, how i can treat this?
You can ask the customer to provide a different payment method.
Yes, I do this test, but when this happens it appears to pay the invoice and after paying the invoice it does not display the option to cancel or update on the customer portal
Why do you expect these options to be available?
Because if a payment has failed and the user pays the debt, they should continue the subscription, right?
Yes
so after i pay the debt dont show more option to cancel and update subscription in customer portal
Is this a question?
no, this is affirmation
wait i will make a screen shot
this is a default page in customer portal
now i will advanced time in subscription and change payment method to espected payment failed
Okay
is this moment status=past_due
so now i go to customer portal and show this page:
dont show more option to cancel subscription, after i pay the debt show this:
dont show more option to cancel and update
i open the dashboard in stripe and show canceled, why this happen?
Could you please share the Subscription ID?
sub_1QDmcnLD7F1SKXUOBYN97uk2
In your Dashboard you have a setting to cancel Subscription if payment failed. This is why the Subscription was cancelled. You can change this setting here: https://dashboard.stripe.com/settings/billing/automatic
yes
interisting, So the only option if the payment is not approved would give the status as past_due?
I am not sure I understand what is your concern exactly.
I'm referring to subscription statuses
like this: incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaid, or paused
And what is your concern about them exactly?
Would I need to process only past_duo from errors?
my idea would be to display a message according to the status, in the case of past_duo, it would display a message for the user to make the failed payment
Hello taking over here. I don't understand the question
Can you explain in more detail?
Hello, okay
My question is if the user has a recurring subscription, and the billing fails, how should I configure the subscription flow for when the payment fails, and what subscription statuses should I handle?
how should I configure the subscription flow for when the payment fails
There's not 1 right answer for this. This depends on your needs and integration, so it's up to you. There's dashboard settings to configure this, per the above that my colleague mentioned.
what subscription statuses should I handle
See: https://docs.stripe.com/billing/subscriptions/overview#subscription-lifecycle
ok my friend, i will verify thanks so much for your help
No problem
another question
i make the test, when the payment failed and 3 months also failed, after I pay the last fee it goes back to active, and I should pay all outstanding payments
What's the question?
this a error right?
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.
I don't understand what you're saying is an error unfortunately. If you pay the latest invoice, the subscription moves back to active. That's expected
I understand, but wouldn't it be a mistake for the user not to pay 10 invoices and pay the last one and get back active, considering this wouldn't it be better to cancel the subscription to avoid this?