#ironbeard - webhooks

1 messages ยท Page 1 of 1 (latest)

split crow
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐Ÿ™‚

modern hedge
#

No worries, take your time ๐Ÿ™‚

split crow
#

What makes this seem strange to you?

modern hedge
#

Well, I guess I was wondering what the asctual status of the PI is, since I only have it saved locally as "Requires confirmation". Also I noticed there isn't a payment_intent_updated webhook, so I wasn't sure how I was suppose to know when the status of a PaymentIntent changes

#

Also the strange part was that the docs say I wouldn't really see the "Requires Confirmation" status

split crow
#

So that was created by this subscription creation requests here, associated with the first invoice: https://dashboard.stripe.com/test/logs/req_1UNCbvn9q0zMjt

The events for payment intents are more explicit. The relevant one were would be payment_intent.succeeded: https://stripe.com/docs/api/events/types#event_types-payment_intent.succeeded

modern hedge
#

Right, so creation of the Subscription creates the PaymentIntent via the first invoice. Is invoice_updated sent when a PaymentIntent changes status? or should I listen for all the possible PaymentIntent webhooks if I want to keep my local copy of the PaymentIntent sync'd up with Stripe?

split crow
#

For what purpose? You can listen to all of those, but we recommend only listening to events you need for your business/operations

modern hedge
#

hmm, yeah. I guess it would be for debugging purposes, to be able to check in our database and see where something went wrong, But I guess that's all possible in the Stripe dashboard.

#

Yeah, I suppose I shouldn't worry about tracking PaymentIntents in my database. Cool cool, thanks for the help walking thru this!