#oliveR-subscriptions
1 messages ยท Page 1 of 1 (latest)
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.
Thanks soma!
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.
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 ๐
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, butinvoice.paidsounds 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.
If you want to double check all of this, you could test that on your end using test clocks: https://stripe.com/docs/billing/testing/test-clocks
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 !
Yes it was released a few weeks ago, and it's great for testing ๐