SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 05d1b532267d68797afdeeb1bb041ddc4b99cc0f
parent 64125fa178dd6b03fc625478fa446d12ba845642
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Sun, 27 Dec 2020 18:35:07 +1100

update readme and use uuid for invoice label

Diffstat:
MREADME.md | 4++--
Minvoice/payment_invoice.py | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -3,7 +3,7 @@ Existing non-custodial Bitcoin payment processors are bloated, difficult to inst [![demo](https://nickfarrow.com/assets/btcpyment.png)](https://node.nickfarrow.com/) -Currently, BTCPyment only provides donation buttons, but we plan to extend BTCPyment to handle payments from common webstores (shopify, woocommerce, etc). +Currently, BTCPyment only provides donation buttons, but we plan to soon extend BTCPyment to handle payments from common webstores (shopify, woocommerce, etc). BTCPyment makes donation buttons simple; using Python and Javascript to talk to your own Bitcoin node, with an easy iframe embed install. BTCPyment uses RPC to generate new addresses from your Bitcoin node, and monitors the payment status with your own copy of the blockchain. Soon, we hope to support lightning payments as well as function as a payment processor for a variety of web shops (woocommerce, shopify). @@ -48,7 +48,7 @@ tail -f log.txt ## Embed Donation Button Now embed the donation button into your website: ```html -<iframe src="http://YOUR_SERVER_IP:8000/" style="margin: 0 auto;display:block;height:300px;border:none;overflow:hidden;" scrolling="no"></iframe> +<iframe src="http://YOUR_SERVER_IP:8000/" style="margin: 0 auto;display:block;height:320px;border:none;overflow:hidden;" scrolling="no"></iframe> ``` ## Using HTTPS diff --git a/invoice/payment_invoice.py b/invoice/payment_invoice.py @@ -9,8 +9,8 @@ class invoice: self.dollar_value = dollar_value self.currency = currency self.value = round(get_btc_value(dollar_value, currency), 8) - self.label = label self.uuid = str(uuid.uuid4()) + self.label = self.uuid self.status = 'Payment initialised.' self.response = '' self.time_left = config.payment_timeout