|
|
|
|
|
by enraged_camel
3494 days ago
|
|
You don't have to guess anything. Stripe lets you send test webhooks to the endpoint you specify[1]. You can set up something like ngrok[2] on your localhost to examine the headers and bodies, then write your code to parse them accordingly. [1]http://i.imgur.com/oCpxYwE.png [2]https://ngrok.com/ |
|
I also learned about services that will set up test webhooks without having to go about setting up a server, etc.
I think I might use that, but I still think that docs should at least explain what will get sent. Maybe that is a bit too verbose in Stripe's case though.