diff --git a/README.md b/README.md index ed46758..7a4b7e3 100644 --- a/README.md +++ b/README.md @@ -1 +1,16 @@ -# hns-pay +# HNS Pay + +HNS Pay is a simple payment gateway for Handshake domains. It allows you to accept payments in HNS for your products and services. + +## Deploying HNS Pay + +The easiest way to deploy HNS Pay is to use docker. + +```bash +docker volume create hns-pay +docker run -d -p 5000:5000 -v hns-pay:/app/data --name hns-pay \ + -e HSD_IP=localhost -e HSD_API_KEY=yourhsdapikey -e WALLET=primary -e GLOBAL_WEBHOOK=webhook_for_all_users \ + git.woodburn.au/nathanwoodburn/hns-pay:latest +``` + +If you have a encrypted wallet you can also pass the `WALLET_PASS` environment variable. \ No newline at end of file diff --git a/payments.py b/payments.py index 99013fa..c8c9510 100644 --- a/payments.py +++ b/payments.py @@ -79,9 +79,7 @@ def check_payments(): if tx['address'] == address['address']: if 'hashes' in address: if tx['txid'] in address['hashes']: - print("Already confirmed") - continue - + continue address['hashes'].append(tx['txid']) address['hashes'] = [tx['txid']] @@ -137,7 +135,6 @@ def finalise_payment(payment,tx): if resp.status_code != 200: print(resp.text) - # Send payout url = f"http://x:{HSD_API_KEY}@{HSD_IP}:12039" data = {