https://github.com/kristoferlund/ic-pos-notifications
Netlify function that sends notifications for IC-POS using Courier/Mailgun/Twilio.
https://github.com/kristoferlund/ic-pos-notifications
bitcoin ckbtc courier dfinity mailgun netlify pos twilio typescript
Last synced: 19 days ago
JSON representation
Netlify function that sends notifications for IC-POS using Courier/Mailgun/Twilio.
- Host: GitHub
- URL: https://github.com/kristoferlund/ic-pos-notifications
- Owner: kristoferlund
- License: mit
- Created: 2023-07-20T10:04:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T20:54:51.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T07:07:07.608Z (about 1 month ago)
- Topics: bitcoin, ckbtc, courier, dfinity, mailgun, netlify, pos, twilio, typescript
- Language: TypeScript
- Homepage: https://hngac-6aaaa-aaaal-qb6tq-cai.icp0.io/
- Size: 46.9 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# IC-POS Notifications
This is a companion Netlify function for [IC-POS](https://github.com/kristoferlund/ic-pos), a simple Point of Sale app that allows users to accept ckBTC payments on the Internet Computer.
## Overview
When a merchant receives a payment, the IC-POS app wants to notify the merchant that a payment has been received. A notification comes in the form of either an SMS or an email.
The Internet Computer provides a feature that allows canisters to make [HTTPS outcalls](https://internetcomputer.org/docs/current/developer-docs/integrations/https-outcalls/https-outcalls-how-it-works) to conventional Web 2.0 HTTP servers.
This Netlify function serves as a gateway for the calls IC-POS makes when sending notifications. IC-POS could have made the calls directly to Courier, but since HTTPS outcalls require IPv6 addresses, and Courier does not have an IPv6 address, this function is needed to translate the call from IPv6 to IPv4.
## Deployment
See this deployment guide from Netlify for details on how to deploy a Netlify function: https://docs.netlify.com/functions/deploy/?fn-language=ts
## Known issues
None
## Contributing
Contributions are welcome! Please open an issue or submit a pull request.
## Author
- [[email protected]](mailto:[email protected])
- Twitter: [@kristoferlund](https://twitter.com/kristoferlund)
- Discord: kristoferkristofer## License
[MIT](LICENSE)