#exzotic.
1 messages · Page 1 of 1 (latest)
It depends on what your definition of "renews successfully" is - if you specifically need to know that a subscription has been paid for you'll likely want to listen for invoice.paid events
Yeah renewed as in the months payment was paid
Yeah then you'll want to listen to invoice.paid and check which subscription the invoice is tied to
ahh cool, thanks :)
👍
Should I use the invoice.paid as well instead of customer.subscription.updated to provision the service when it is first purchased?
or does it not matter
If you specifically care about the subscription being paid for then yeah, I'd recommend listening for invoice.paid over customer.subscription.updated
Ok cool, thanks
Yeah i did have a check for the subscription is "active" which in theory should of been when its paid?
Yeah that would work as well for when the subscription is first created/provisioned, but you have to be careful about edge cases and it really depends on your integration
Like as an example - if you're doing collection_method: send_invoice those Subscriptions will start off as active I believe until the due date for the first invoice is passed