#icurrytheteam

1 messages · Page 1 of 1 (latest)

austere oakBOT
blissful ravine
#

Hi there!

cosmic summit
#

Hi soma

blissful ravine
cosmic summit
#

May I have a second to look at these?

blissful ravine
#

Sure!

cosmic summit
#

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?

blissful ravine
#

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?

cosmic summit
#

using the api.

blissful ravine
#

Which API?

cosmic summit
#

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

blissful ravine
#

Got it. Then invoice.paid works, but note that this event will be triggered for every invoice, not just the first one.

cosmic summit
#

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)

blissful ravine
#

Makes sense!

cosmic summit
#

Alright, thanks.

#

I don't have any other questions.

#

Will I be able to access this thread in the future?

blissful ravine
#

Threads become locked after some time. But you can still read them, and if needed you can open a new thread.

cosmic summit
#

Sounds good