#Valentin DOULCIER

1 messages · Page 1 of 1 (latest)

terse craneBOT
wanton kestrel
#

Hi there!

#

Can you share your webhook endpoint Id (we_xxx)?

grand idol
#

Hi @wanton kestrel , we_1MU4zrFidFm8v9sBcBZeZBQv

#

I just updated the event list to add all possible events, but same result.

wanton kestrel
#

I confirm that you correctly created the endpoint. Now you just need to wait for events to be triggered on your account.
If you don't want to wait, you can trigger the events yourself, for example using the Stripe CLI: https://stripe.com/docs/cli/trigger

grand idol
#

We created refunds using Stripe APIs, we received charges events, but no refunds events, that's why I don't understand.

wanton kestrel
#

Can you share a PaymentIntent ID (or Refund ID) that should have been sent to your webhook endpoint?

grand idol
#

Here is an example: pi_3MU4tsCsX1AkTxRo0jvNYhMJ

#

You'll see that we request for several refunds, charges events were sent but not refunds events.

wanton kestrel
#

Thanks! Give me a few minutes to look into this.

#

That PaymentIntent was created on a Connected account. But the webhook endpoint you shared is not a Connect webhook.

#

So you need to delete and recreate your webhook endpoint, and this time make sure it's a Connect webhook endpoint

grand idol
#

@wanton kestrel , same results with a connect webhook :
we_1MU5rKFidFm8v9sBhGOJ5QoZ
pi_3MU5snCsX1AkTxRo0W0v0nSc

brisk olive
#

we did send you an event. e.g. evt_3MU5snCsX1AkTxRo0zdX4MvR for charge.refunded was sent to that endpoint and you sent back a 201 status.

grand idol
#

Hi @brisk olive, I have no problem with the charge.refunded event. I'm talking about the refund.created event. In the sdk, I'm using the stripe.refund.create() method.

brisk olive
#

there's no such event since it's not a cash balance payment that was refunded

#

for whatever reason we decided to create a new event type with refund.* as the name for that payment method(I assume because there's no actual charge being refunded in those cases so they didn't want to use charge.refund.*). Anyway, it doesn't matter if you're not using that payment method, the correct event to listen for is charge.refunded