#mohamed.0344

1 messages · Page 1 of 1 (latest)

stiff tuskBOT
small tapir
#

You can set Cancel the subscription when all retries fail. Stripe will automatically cancel the subscription

stray kiln
small tapir
#

So you want to cancel or not to cancel?

stray kiln
#

so i need to do an interval function in my application check every subscription id is active or canceled from stripe api, and stripe have rate limits on their api

stray kiln
#

sir i want my application listens to all my customers every minute if their subscription is active and not canceled, and stripe api has rate limits

small tapir
stray kiln
#

i can do that using stripe webhooks to listen into any faliure invoice, but if my application is under maintenance will not listen to stripe webhooks, and that's a nig problem

#

ok i read it, it is same as i said.

so let's say the subscription has been canceled automatically, now the membership of the user stored in the database and i can't check every minute in stripe api if the user subscription is active or not, because there is rate limiting on the stripe api and i have millions of users in database so i can't check million users every minute through stripe api

#

and i want check every minute because if the subscription user is not active it deletes the membership of user from database

small tapir
#

Why do you want to check the subscription at every minute? you can just listen to customer.subscription.updated and get notfied when the subscription status changes.

stray kiln