mirror of
https://github.com/bumi/lntip
synced 2025-06-16 17:55:35 +00:00
readme
This commit is contained in:
parent
f998fc478c
commit
d3e7dc0668
@ -9,7 +9,7 @@ JavaScript widget that integrates in any website.
|
|||||||
See it in action: [moneyz.michaelbumann.com](http://moneyz.michaelbumann.com)
|
See it in action: [moneyz.michaelbumann.com](http://moneyz.michaelbumann.com)
|
||||||
|
|
||||||
If [webln](https://github.com/wbobeirne/webln) is available it will be used to request the payment;
|
If [webln](https://github.com/wbobeirne/webln) is available it will be used to request the payment;
|
||||||
otherwise a overlay will be shown with the payment request and a QR code.
|
otherwise an overlay will be shown with the payment request and a QR code.
|
||||||
|
|
||||||
## Motivation
|
## Motivation
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ tip.requestPayment().then((invoice) => {
|
|||||||
|
|
||||||
// create a new invoice
|
// create a new invoice
|
||||||
tip.getInvoice().then((invoice) => {
|
tip.getInvoice().then((invoice) => {
|
||||||
console.log(tip.invoice.PaymentRequest)
|
console.log(invoice.PaymentRequest)
|
||||||
});
|
});
|
||||||
|
|
||||||
// periodically watch if an invoice is settled
|
// periodically watch if an invoice is settled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user