#nsad_api

1 messages · Page 1 of 1 (latest)

flat currentBOT
#

đź‘‹ 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.

olive sorrel
#

Hi, let me help you with this.

#

What do you mean by "handle statuses" exactly?

whole harness
#

Hello, example in Subscription have field status, do when payment recurring failed, how i can treat this?

olive sorrel
#

You can ask the customer to provide a different payment method.

whole harness
#

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

olive sorrel
#

Why do you expect these options to be available?

whole harness
#

Because if a payment has failed and the user pays the debt, they should continue the subscription, right?

olive sorrel
#

Yes

whole harness
#

so after i pay the debt dont show more option to cancel and update subscription in customer portal

olive sorrel
#

Is this a question?

whole harness
#

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

olive sorrel
#

Okay

whole harness
#

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?

olive sorrel
#

Could you please share the Subscription ID?

whole harness
#

sub_1QDmcnLD7F1SKXUOBYN97uk2

olive sorrel
whole harness
#

yes

#

interisting, So the only option if the payment is not approved would give the status as past_due?

olive sorrel
#

I am not sure I understand what is your concern exactly.

whole harness
#

I'm referring to subscription statuses

#

like this: incomplete, incomplete_expired, trialing, active, past_due, canceled, unpaid, or paused

olive sorrel
#

And what is your concern about them exactly?

whole harness
#

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

flat currentBOT
slate pebble
#

Hello taking over here. I don't understand the question

#

Can you explain in more detail?

whole harness
#

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?

slate pebble
#

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

whole harness
#

ok my friend, i will verify thanks so much for your help

slate pebble
#

No problem

whole harness
#

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

slate pebble
#

What's the question?

whole harness
#

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.

slate pebble
#

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

whole harness
#

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?

slate pebble
#

It's up to you

#

If it's a mistake in your integration, just cancel the sub

whole harness
#

yes, all right

#

thanks so much my friend!