#oconnor0 - ping webhook
1 messages · Page 1 of 1 (latest)
Do you have the Stripe cli? You should be able to trigger events with it
I am not familiar with a ping event. Is that a literal event name you know of or are you asking about test events in general?
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe-dotnet/Events.cs at b1591931a9b024ed9869fd100237a78ea255486c · stripe/stripe-dotnet
I have used the CLI with the local webhook listener but not with a configured webhook endpoint.
If you trigger an event with the CLI, it will also show up on those webhooks. Events are account-wide so any endpoint that can listen for that kind of event will receive one
I would say trigger a simple event like customer.created or resend an event with the resend command. Unfortunately it looks like ping specifically isn't supported by the API from my testing just now
Yeah, I'd really like a non-side-effecting event, but I can try something simple.
I would certainly appreciate if the Stripe CLI supported sending 'ping' just to test connectivity.
I can put in a feature request for that. In the meantime resending an event with stripe resend evt_123 would probably be a bit better
You can even resend to just the specific endpoint you want to test https://stripe.com/docs/cli/events/resend#events_resend-webhook-endpoint
Hm. I'll have to play around with that to see if it does what I want.
Alright, I was able with judicious use of --api-key to get something sent to the endpoint I want to test and am getting a 302 back so something is off on my end.
Yep, unfortunately our webhook events won't follow redirects. Thanks for the update, let us know if you run in to anything else
No, I wouldn't expect them to follow redirects.