#ashish_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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/1282903138000441375
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
If the payment is failed for a subscription, invoice.payment_failed event will be sent. Here's the guide on how to handle the payment failure: https://docs.stripe.com/billing/subscriptions/webhooks#payment-failures
Oh ic, stripe won't send an event like subscription paused or deleted as well?
If that's the case I'll just listen for that event and assume they want to delete their subscription
I'm also reading that the state will move to 'incomplete_expired' if they don't settle the payment within 23 hours, but I assume it won't send any event for subscription right?
If the subscription is deleted, customer.subscription.deleted event will be sent. You can refer to this subscription related event list for different scenarios: https://docs.stripe.com/billing/subscriptions/webhooks#events
Payment failure doesn't meant that a subscription will be deleted
Stripe supports payment retry feature, and the payments can still be retried a few times before a subscription is canceled or moved to past due
The subscription settings can be configured in https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I see. Thanks for the clarification. I have another question, but it's more towards the API than webhooks, is that okay? I want my customers to be able to cancel their subscription, however in the API, I don't see a way to cancel on next billing cycle
Oh thank you this helps!
For any future changes on subscription, Subscription Schedule API should be used: https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#installment-plans
I'm actually more confused now... I'll try my best to understand
Hi @granite latch I'm taking over this thread. Let me know if you have any other questions
Oh thanks, so basically I have a subscription that users can subscribe to, I want the users to be able to cancel their subscription themselves with a button. When they cancel, it would be until the end of billing period since they've already paid for that period. How would I do this, because when I see the cancel subscription api, it doesn't let me set when to cancel