#kmjadeja
1 messages · Page 1 of 1 (latest)
Hi there, charge.refunded will be fired when a refund is created for a charge (https://stripe.com/docs/api/events/types#event_types-charge.refunded)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the charge.refunded is not working. I have created refund from dashboard.
Can you share with me the charge ID?
I mean the refund shows in event but webhooks is not working
sure
its a test charge id.
/v1/charges/ch_3N1bq3GHSmvXpN8D1kFUESVD/refund
Charge ID: ch_3N1bq3GHSmvXpN8D1kFUESVD
https://dashboard.stripe.com/test/events/evt_3N1bq3GHSmvXpN8D1KKPvhbf this is the refund event and it was successfully sent to all webhook endpoints
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you tell me more about what's not working?
why its not showing up in the webhooks list.
https://dashboard.stripe.com/test/webhooks/we_1KfhNBGHSmvXpN8DVaQbu2KL
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The page that you share is the webhook endpoint list page, not event list page.
Please visit the event page if you wish to view a particular event
yes. correct its a webhooks endpoint list.
you can see that theere are 16 events included with charge.refunded but you you can see that in the list of webhooks.
the charge.refunded is not called there.
does it make sense?
That's a connect webhook endpoint, and it will only listen to events happened on your connected accounts, not your account.
ohk so I have to create webhooks in connected account?
You should create an account webhook if you are interested in listening to events happened on your account. https://stripe.com/docs/connect/webhooks
that make sense.
thanks man
The type of webhook endpoint I sent you is a connect type. So it should not called on charge.refunded event?
https://dashboard.stripe.com/test/webhooks/we_1KfhNBGHSmvXpN8DVaQbu2KLe
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
there ?
ch_3N1bq3GHSmvXpN8D1kFUESVD happened in your account, so you need to create an Account webhook endpoint to listen to it. As I explained before, Connect webhook endpoint will only listen to events happened in connected account.
so for that I have to create direct webhook instead connect webhook.
You are right