#kmjadeja

1 messages · Page 1 of 1 (latest)

keen gardenBOT
stuck python
uneven parrot
#

the charge.refunded is not working. I have created refund from dashboard.

stuck python
#

Can you share with me the charge ID?

uneven parrot
#

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

stuck python
#

Can you tell me more about what's not working?

uneven parrot
stuck python
#

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

uneven parrot
#

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?

stuck python
#

That's a connect webhook endpoint, and it will only listen to events happened on your connected accounts, not your account.

uneven parrot
#

ohk so I have to create webhooks in connected account?

stuck python
uneven parrot
#

that make sense.

#

thanks man

#

there ?

stuck python
#

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.

uneven parrot
#

so for that I have to create direct webhook instead connect webhook.

stuck python
#

You are right