An open API service indexing awesome lists of open source software.

https://github.com/shavo007/webhook-example-square


https://github.com/shavo007/webhook-example-square

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Showcase consuming events from square API

```bash
cp .env.example .env #update signatue key with the key defined in square
yarn
ngrok http 4242 #can inspect requests at http://127.0.0.1:4040/inspect/http
#update ngrok endpoint in .env
node index.js
```
Update webhook url in square with `ngrok` endpoint and send in a test event

## References

- [webhooks overview](https://developer.squareup.com/docs/webhooks-overview)
- [serverless for webhooks](https://medium.com/square-corner-blog/stop-using-servers-to-handle-webhooks-675d5dc926c0)