#kamranali_30620
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
the event you should listen to is invoice.paid
more on this in this dochttps://stripe.com/docs/billing/subscriptions/webhooks
but when we tried It shows multiple entries of same user in our logs
can this event also call on first time when the customer is paid directly from site (invoice.paid).
invoice.paid will fire each time an invoice is paid by a customer
depending on the billing_reason you know whether this was because of a subscription_create, subscription_cycle etc https://stripe.com/docs/api/invoices/object#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'm not sure how we could check why a log line in your application that your wrote is printed twice
if what you mean is "did Stripe send that event to my server twice", it's possible yes (https://stripe.com/docs/webhooks#handle-duplicate-events)
Yes, we are facing this issue and even we dont know what is the reason behind this
can we call event for particular customer
there?
yes
what does this mean?
I mean to say there is a customer already registered on stripe I want to use that customer for next month billing because through CLI it generates random customer and plan