#loeffel-webhook
1 messages ยท Page 1 of 1 (latest)
@keen cloak you don't have a webhook endpoint set up to listen to that type of event.
you have https://dashboard.stripe.com/webhooks/we_1Jp9dYGZn8xyMtqhzXEfBniN but it seems to be disabled.
As for order, that's not guaranteed:
https://stripe.com/docs/webhooks/best-practices#event-ordering
You can instead retrieve the object if you want to ensure you have the latest version
i am listen to the webhooks via cli; seems like quite some time no more events are entering the tunnel
okay great, thanks - currently i am lazy loading the charge and payment intent; will they are preloaded when i am retrieve the object at first?
Sorry, can you rephrase that?
@dreamy echo yeah sorry haha, currently i am listening to the invoice events; i recognized that the invoice data which comes from the event not including the payment intent and charge objects; my question is: will the payment intent and charge objects are preloaded when i am loading the invoice object via the api instead of the event data or do i have to lazy load them as i am doing that right now
no worries if thats not understandable; i can just try it out ๐
if you retrieve the object from the api after receiving an event, you'll get the latest version (which may be different than the event data)
if you want the payment intent from an invoice, you can optionally have the invoice request include those via expansion:
https://stripe.com/docs/api/expanding_objects
expand[]=payment_intent (and the payment intent has the charge)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
beautiful @dreamy echo thanks! ๐
๐