#mohamed.0344
1 messages · Page 1 of 1 (latest)
You can set Cancel the subscription when all retries fail. Stripe will automatically cancel the subscription
ok but i want check if the user subscription is canceled and my application is under maintenance and didn't listen to any webhook events, so my application will also not canceling membership for the user
So you want to cancel or not to cancel?
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
i want cancel
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
Then please follow the link that I share earlier to configure your settings.
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
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.
sir i am telling you if my application is down it will not listen to any webhook events, so let's say my application is come back online the user will still have the membership