Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Stripe manually resend an event to webhook

I have been using the Stripe API and it's been calling my Webhook successfully for about a year.

But yesterday an issue occured for the first time. The webhook did not manage to succesfully complete its intended operation, but returned a 200 status code anyway, so Stripe didn't retry.

I have now fixed the error on the Webhook, but can't figure out how to make Stripe repeat the webhook call for this particular event. I can retrieve the event, but there's no button to resend. How to?

like image 200
Sygmoral Avatar asked Jan 24 '19 14:01

Sygmoral


2 Answers

Stripe cli allows this stripe events resend IDOFTHEEVENT --live --webhook-endpoint=IDOFTHEWEBHOOK (replace IDOFTHEEVENT by the id of the event, and IDOFTHEWEBHOOK by the id of the webhook which you can find in the URL when you are on a webhook's page).

Otherwise you can copy/paste the event sent to the webhook and sent it to your endpoint with a tool such as postman.

like image 173
Ilan Schemoul Avatar answered Nov 14 '22 03:11

Ilan Schemoul


It is possible to manually resend webhook events.

In the Stripe Dashboard, select Developers > Webhooks, then find the webhook your working with and press the little "resend" icon.

enter image description here

Note that for events which succeeded, you can still resend them by clicking the ellipsis and then "Resend" (this is a newer feature).

like image 31
Dom Avatar answered Nov 14 '22 04:11

Dom