Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1020 Bytes

README.md

File metadata and controls

49 lines (31 loc) · 1020 Bytes

Ariton Payment

Payment Processing using PhoenixD

Requirements

  • Install and run 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:

./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

sudo systemctl status ariton-payment
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