#bogdan-copocean
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Hello, sure. Thank you!
Could you share an object ID please?
In the charge.dispute.created you get a Dispute object, not Charge, therefore it has it's own metadata.
You can see the object type in the docs: https://stripe.com/docs/api/events/types#event_types-charge.dispute.created
ohhh, i totally missed that. makes sense now
From the dispute you can get the Charge ID that will get you the metadata you are looking for: https://stripe.com/docs/api/disputes/object#dispute_object-charge
Got it. In fact I needed the metadata from the payment intent, but I can fetch it back from Stripe whenever that event fires 🙂
thank you for the clarification!
Happy to help. Let me know if you have any other questions.
All good for now, thank you very much!