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

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

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
```