https://github.com/block-core/ariton-payment
Payment Processing using PhoenixD
https://github.com/block-core/ariton-payment
Last synced: 8 months ago
JSON representation
Payment Processing using PhoenixD
- Host: GitHub
- URL: https://github.com/block-core/ariton-payment
- Owner: block-core
- License: mit
- Created: 2024-10-11T10:05:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-07T07:07:13.000Z (over 1 year ago)
- Last Synced: 2025-02-17T02:15:37.123Z (over 1 year ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ariton Payment
Payment Processing using PhoenixD
## Requirements
- Install and run [PhoenixD](https://github.com/ACINQ/phoenixd/) on local server.
- Clone the repo and run `npm install` and `npm start` to start the server.
## Remote access
If you want to remotely access the phoenixd server, you must start it with arguments to bind to 0.0.0.0:
```sh
./phoenixd --http-bind-ip 0.0.0.0
```
Don't do this unless you have a firewall in place and you know what you are doing. The Payment Processor
is built to run on the same server as PhoenixD and not remotely.
## API
### GET /invoice/?amount=1000&description=description&id=123
### POST /invoice/?amount=1000&description=description&id=123
### GET /decodeinvoice/?invoice=lnbc...
### GET /decodeoffer/?offer=lnbc...
### GET /status
## Notes
```sh
sudo systemctl status ariton-payment
```
```sh
sudo apt purge nginx nginx-common
sudo rm -rf /etc/nginx
sudo systemctl status nginx
# Validate config
sudo nginx -t
# Reload
sudo systemctl reload nginx
```