#icurrytheteam
1 messages · Page 1 of 1 (latest)
Hi there!
Hi soma
I would recommend invoice.payment_failed and invoice.paid.
But you can learn more about this here: https://stripe.com/docs/billing/subscriptions/webhooks
Also make sure to check all settings in the dashboard about Subscriptions here: https://dashboard.stripe.com/settings/billing/automatic
May I have a second to look at these?
Sure!
Ok, so I have a couple questions. Firstly, I can use invoice.payment failed to let the user know that their subscription auto-renewal has failed, right? Secondly, i can use invoice.paid to let the user know that their subscription was succesfully purchased or renewed? And lastly, I want to let the user know that they have a subscription that will be renewed, so I can use invoice.upcoming? In my code, i can use an if elif else statement to complete this functionality. Am I understanding this correctly?
Firstly, I can use invoice.payment failed to let the user know that their subscription auto-renewal has failed, right?
Yes, but note that Stripe can do that automatically for you, if you check the dashboard settings I shared above
i can use invoice.paid to let the user know that their subscription was succesfully purchased or renewed?
How are you creating the subscriptions?
using the api.
Which API?
Stripe's Api?
stripe.Subscription.create()
Also, the reason why I ask is because this can only send emails it seems. I have my own notification api that I can trigger
Got it. Then invoice.paid works, but note that this event will be triggered for every invoice, not just the first one.
This should be fine though, since I'd want to user to know that they've paid for the subscription renewal as well. (i.e. they purchase a subscription on feb 24, its renewed on march 24, and there would be 2 notifications and so on)
Makes sense!
Alright, thanks.
I don't have any other questions.
Will I be able to access this thread in the future?
Threads become locked after some time. But you can still read them, and if needed you can open a new thread.
Sounds good