#andonz
1 messages ยท Page 1 of 1 (latest)
Hi there!
hi
You can see all events here: https://stripe.com/docs/billing/subscriptions/webhooks#events
For example listening to invoice.paid could be a good option as mentioned here: https://stripe.com/docs/billing/subscriptions/webhooks#active-subscriptions
i only want to listen to event triggered by subscription renewal
Yes: invoice.paid will be triggered for subscription renewal.
but invoice.paid is also triggered for normal payments, right?
I mean if you create one-off Invoices, yes. But you can easily make the distinctions, by checking if the Invoice has the subscription property set.
and, for subscription creation? is this triggered?
Yes true, but you can check the billing_reason for this: https://stripe.com/docs/api/invoices/object?lang=node#invoice_object-billing_reason
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i guess ,subscription_cycle tells that its a recurring next payment
Yep
thank you
Happy to help ๐
One question, please. Can I simulate next payment?
You can use Test Clocks for this: https://stripe.com/docs/billing/testing/test-clocks