If that image isn't showing, basically I have 28 rows of "invoice.payment_succeeded" all for that one client.
I looked in my app and sure enough that client now has a credit of "28" in his account. I quickly logged into the strip dashboard and navigated out to that connected user's account and noticed that there where actually 2 $1 charges in the logs. One was for today and the other is for tomorrow. I went back to my database and sure enough there are six records with tomorrow's date and 22 records with today's date.
Ok so now here goes my questions:
Why did this event get hit 22 times for one single event?
Are webhooks not designed to work this way?
Should I not rely on them to process when a client has been charged for their subscription?
Should I be looking for other ways to know that a user has been charged for their subscription?
Are there any other "gotchas" when dealing with web hooks?
to be clear going forward I will be validating against the event's "id" property, as this is was just a raw test to make sure I was heading in the right direction.
Thanks so much in advance for any help or advice anyone can offer!
--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at http://groups.google.com/a/lists.stripe.com/group/api-discuss/.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.