#Suren-change-sub-status

1 messages · Page 1 of 1 (latest)

oak vigil
#

Hello! The past_due generally implies that there's an invoice overdue. Normally paying that invoice will trigger the subscription status to update

tawdry oasis
#

the fact is that when I try to renew the subscription plan and do not complete
status subscription becomes past_due

#

and I just want to return to the previous state

oak vigil
#

try to renew the subscription
How are you trying to do that?

tawdry oasis
#

i update subscription, and send client_secret to the front
but not paid at the front

#

this is my diagram

#

I need that if the client does not pay, just return the previous state

#

it's possible implement ?

oak vigil
#

You want to return the subscription to status: 'active' after a non-payment?

tawdry oasis
#

I don’t think the subscription is becoming pending

#

Here is an example, I now want to return 1 $ to the plan

#

now this subscription has the status past_due

oak vigil
#

Exactly, so you should use pending updates which will apply regardless of whether the payment succeeds

tawdry oasis
#

payment_behavior: 'pending_if_incomplete', ??

#

yes, but in this case, what do you think
what if there is no payment at the end of the month
what is the status of the subscription?
past_due or pending

oak vigil
#

Is the end of the month the end of the billing cycle?

tawdry oasis
#

I just want to understand that if at the end of the cycle there is no balance on the card
subscription will go past due as it is happening now

#

I now have this approach just

oak vigil
#

there is no balance on the card
What do you mean by this? Insufficient funds to pay the invoice?

tawdry oasis
#

yes