#Mint
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- Mint, 20 hours ago, 12 messages
refund.created is for a different scenario
https://stripe.com/docs/api/events/types#event_types-refund.created
Occurs whenever a refund from a customer’s cash balance is created
So charge.refunded is correct
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If I refund via API (stripe.refund.create) instead of do it via Stripe Dashboard. Does the webhook receive the charge.refunded event?
Yes should be the same. You can test it in Test mode
Thanks. let me try
Is there a way that I can retrieve the refund object when webhook receive the charge.refunded event?
I create a metadata in the refund object to know If i refund in Dashboard or through API. So I need to know it by the webhook
Yes! charge.refunded is a Charge object. You can then perform a Retrieve Charge API and expand its refund property to have the full Refund object inside
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.