#oliveR-subscriptions

1 messages ยท Page 1 of 1 (latest)

honest yew
#

Hi there!

#

Should I create a 0โ‚ฌ/month product on Stripe?
Yes that seems like the right approach. Note that the other options would be free trial (like you mentioned) or coupons.

#

does this still send invoices, and what event should I be listening to? Does it still send the charge.succeeded webhook event?
Good questions! Give me a few minutes to try that.

subtle jewel
#

Thanks soma!

honest yew
#

So you won't get a charge.succeeded, and that makes sense since no charge will be made. Here are the events you will receive when the subscription renews: invoice.created, customer.subscription.updated. And one hour later (when the invoice finalize) you get: invoice.finalized, invoice.paid, and invoice.payment_succeeded.

subtle jewel
#

So to emulate the same functionality as charge.succeeded , I would listen to for example invoice.paid and then call the same function charge.succeeded does to handle the credits?

Or is it better to listen for customer.subscription.updated ?

Also did you find out whether a 0โ‚ฌ invoice gets emailed to the user automatically?

#

Sorry, so many questions ๐Ÿ˜…

honest yew
#

I would listen to for example invoice.paid and then call the same function charge.succeeded does to handle the credits?
Yes!
Or is it better to listen for customer.subscription.updated ?
I don't think it changes anything, but invoice.paid sounds more logical
Also did you find out whether a 0โ‚ฌ invoice gets emailed to the user automatically?
Sorry I forgot to answer that. Yes $0 invoices are created.

subtle jewel
#

Damn that looks handy. Is the test clock a new feature? I haven't seen it before and definitely could've had use from it in the beginning ๐Ÿ˜

#

Was a lot of fixing when the first subscriptions renewed haha !

honest yew
#

Yes it was released a few weeks ago, and it's great for testing ๐Ÿ™‚