#ilamathi-Subscription

1 messages · Page 1 of 1 (latest)

rustic blaze
#

Hi there, you can't programmatically change the subscription status

cedar cypress
#

Oh ok.. Actually on subscription payment failure case i am planning to send mail to the user to fix that payment issue and continue with the service.. So for that we will send couple of mail in consecutive day if user fails to fix that within that grace period, then we planning to mark that subscription as unpaid.. So how we can achieve this using stripe API?

rustic blaze
#

You don't need to do it via API, there's a settings for it, one sec

#

So from this settings, you can set the subscription to be unpaid if all retries fail.

cedar cypress
#

Ok.. For example i configured this custom rule as shown below,

#

So how stripe works for this configuration?

#

it will make only 1 retry or 2 retry then mark the subscription as cancel/unpaid based on my setting

rustic blaze
#

This is the setting for retry schedule, if you scroll down a bit, you will see settings for subscription status

cedar cypress
#

yes i got that settings

#

now i would like to understand how stripe works for this retry rule

#

retry 1 day after previous attempt in the sense, it will make only one retry after one day of the subscription payment failure...

rustic blaze
#

Your current setting tells Stripe to retry once and then set the subscription status to whatever you configure in the settings for subscription status

#

->1st payment failed
-> retry
->2nd payment failed
-> update status

cedar cypress
#

ok got it...