#birdy247-successful-webhook
1 messages · Page 1 of 1 (latest)
Hi there
Can you clarify the question a little bit?
You want to resend events for one of your endpoints?
Yes, we have a situation where a customers invoice was not marked as paid
We received the webhook, but one reason or another, we didnt update it
We think it might be related to 2 processes updating the invoice at the same time
Would be great to replay this so we can rule it out
Gotcha, so you can use the CLI to resend events: https://stripe.com/docs/cli/events/resend
But you can only resend events from the past 30 days
Sorry, can you give me some quick tips on how I would test this event
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is the event we want to replay to local
The event was created in live mode
can it be replayed?
Sorry for the delay
Server is busy
Yep it can be replayed
One sec for syntax
stripe events resend evt_3LFkr5Eqs1t1ALki07GKu573 --account=acct_1H2vtuEqs1t1ALki --live=true
It should be that
Right ok
And where will this be resent to?
Can we get it going to a local URL so we can investigate in our dev enviornment?
Ideally we send it to a local endpoint and then we can see exactly whats going on
Ah yes sorry, missed that part
You can listen for events using the CLI and forward to a local endpoint using https://stripe.com/docs/cli/listen
so stripe listen --forward-to <url> --live=true
Actually for this you would need --forward-connect-to
Since it is a Connected Account event
Yep you can use your localhost URL. See: https://stripe.com/docs/webhooks/test
To be clear, when you resend the event again it will be sent to all endpoints listening for that event
Great
Let me try
I am using the cli for a different stripe account
Presumably, this needs to be done for the connect platform?
Yes
What does this mean?
I want to replay a webhook
Do I need to login with my live key?
You login to the Dashboard and locate the event that triggered the webhook in Developer --> Logs
Once located, you should have the option to resend
If it's a test-mode event, then make sure test mode is toggled in the top right of the page
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
stripe listen --api-key <my key> --forward-connect-to http://www.eventrac.local/webhook/stripe --live=true
I have tried this
I see the events coming in through the console
But they are not being forwarded to my webhook listener
I can listen for them fine
but keep getting the error about unable to replay them
Even if I look at the account on the stripe UI, it says resend failed
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is what I need to replay
The paynetIntent succeeded from this
stripe events resend evt_3LFkr5Eqs1t1ALki07GKu573 --account=acct_1H2vtuEqs1t1ALki --live=true
I get a permissions error
I get a permissions error
What error?