#Valentin DOULCIER
1 messages · Page 1 of 1 (latest)
Hi @wanton kestrel , we_1MU4zrFidFm8v9sBcBZeZBQv
I just updated the event list to add all possible events, but same result.
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
We created refunds using Stripe APIs, we received charges events, but no refunds events, that's why I don't understand.
Can you share a PaymentIntent ID (or Refund ID) that should have been sent to your webhook endpoint?
Here is an example: pi_3MU4tsCsX1AkTxRo0jvNYhMJ
You'll see that we request for several refunds, charges events were sent but not refunds events.
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
You can learn more about this here: https://stripe.com/docs/connect/webhooks
@wanton kestrel , same results with a connect webhook :
we_1MU5rKFidFm8v9sBhGOJ5QoZ
pi_3MU5snCsX1AkTxRo0W0v0nSc
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.
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.
there's no such event since it's not a cash balance payment that was refunded
https://stripe.com/docs/api/events/types#event_types-refund.created
Occurs whenever a refund from a customer’s cash balance is created.
it' something to do with that new payment method, for some reason it has a different event type https://stripe.com/docs/payments/customer-balance/refunding
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