#chukdawit
1 messages · Page 1 of 1 (latest)
How can I help?
Question about webhooks and refunds! I remember a month or so ago I issued a refund and I thought I remember receiving a "RefundCreated" webhook, I'm almost certain. But now, today, I issued another refund, but this time I received a "ChargeRefunded" webhook. Is there something that's changed on Stripes backend. How come I didn't receive a "RefundCreated" webhook?
I see the description for each webhook -> ChargeRefunded = "Occurs whenever a charge is refunded, including partial refunds." and RefundCreated - "Occurs whenever a refund from a customer’s cash balance is created."
but not sure why or what the description means for "RefundCreated", when it says "Occurs whenever a refund from a customer’s cash balance is created"
https://stripe.com/docs/api/events/types refund.created and charge.refunded are both valid webhook events
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes I'm aware of the docs, as I just stated them in "", but that doesn't really help here. Maybe you can provide insight as to why I didn't receive a "RefundCreated" when I created a refund?
As the doc explains, RefundCreated occurs whenever a refund from a customer’s cash balance is created.
Does your use case involve customer's cash balance change?
not sure what that means? My customers (not Connect) don't keep any cash balances. Once I charge their credit cards my platform receives the funds. I do initiate authorization holds for 24 hours in some cases, but that's not what you're referring to is it?
OH! Does it make anydifference if they are customers (card stored in Stripe) or if they are a 1 time card user (no customer in Stripe)??
In this cause you should expect a charge.refunded event, and charge.refund.updated if the refund fails
https://stripe.com/docs/refunds for more details
For completeness, the refund.created webhook event is for bank transfer payment method, which I don't think applicable in your use case https://stripe.com/docs/payments/customer-balance/refunding
I'm slightly confused. It looks like the code to initiate both types that provide the 2 different webhooks are the same!? They both use RefundService.Create()
Yes they all use Refunds API. But in order to refund cash balance, you also need to specify customer, origin and instructions_email https://stripe.com/docs/payments/customer-balance/refunding#create-return-dashboard--api