https://github.com/shavo007/webhook-example-square
https://github.com/shavo007/webhook-example-square
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shavo007/webhook-example-square
- Owner: shavo007
- Created: 2020-11-30T03:20:01.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-30T03:20:08.000Z (almost 5 years ago)
- Last Synced: 2025-02-17T04:26:33.876Z (8 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)