TLDR

I wish to help on-board new merchants to the lightning network with minimal deployment friction.
To that end, I would like to sponsor the creation of super simple, static, single-page web app for creating invoices.

Background

I am in the process of coaching some local Bricks & Mortar merchants onto the lightning network. To ease the "mental transition" of using crypto, I'm highlighting the fiat auto-conversion option. Before the maxis get upset, remember small business often do their own reconciliations, so being able to download a CSV of transaction amounts and have them match with the bank is quite a benefit.
So - given this, and the fact that the operators will most certainly have zero Bitcoin experience, I'd like to initially recommend a custodial approach with a vendor who is reliable, easy to sign up with, and easy to use.
I tried out OpenNode and CoinCorner. CoinCorner was a difficult experience (to sign up as an organisation). OpenNode was straightforward and fast. The OpenNode API documentation is also extensive - vs CoinCorner which is non-existent. So I'm proposing to build with OpenNode.

Problem Statement

As it turns out, OpenNode don't have the exact solution I am looking for - which is this:
  • Any member of staff can create invoices (and potentially, view previous invoices)
  • They can do this safely on their own device without installing a native app
  • They cannot MAKE payments (for refunds it's assumed they'd pay cash)

Proposed Solution

A static web app requiring ONLY the API OpenNode API key (and optionally, the merchant name). This could then be deployed using, say, Github Pages.
The OpenNode API keys come in 3 permission levels:
  1. Create Invoice
  2. Create Invoice & Read History
  3. Create Invoice & Read History & Make Payments
So either of the first two keys should be safe to use on a public, static website.

Benefits

  • Really easy to deploy to a company subdomain (update DNS, clone repo, update CNAME, API Key, Merchant name, git push)
  • Any staff member can go to the URL and make a payment, nothing to install
  • No active server needed at backend, zero running costs
  • Funds are safe

Risks of the proposed solution

  • An attacker could create fake invoices or spam the service
  • An attacker could read previous invoices (if the "readhistory" APIKey is chosen)

Summary

I believe the risks are well worth the benefits, to start the journey quickly and easily.
Before I post this as a job on Stacker News (and after I figure out how to do that anonymously) I wanted to check here in the community if perhaps such a solution already exists, or if there are any other significant risks with the proposal?
+2k for doing this! Please report back on your progress and what you learn along the way
reply
Thanks! I will!
reply
@phaedrus - I learned that sometimes it's worth it to just jump right in and see what you can achieve.
The OpenNode API was really easy to use, they even had the JavaScript snippets, and thanks to modern HTML5 elements I was able to build something functional in just a couple of hours.
See: #76405
Does this make me a cypherpunk? I think not, lol
reply
It make sense for me and I can code it.
How would you like to finance it? I have no experience with crowdfunding in Bitcoin. 🙂
reply
Thanks for the offer! In fact, I hacked it together myself: #76405
That said, it's very rudimentary, if you'd like to improve it then feel free to submit back and I will send you sats directly to your post
reply
seems good 🙂
coinos.io works great for all of this
reply
Yep, coinos seems great for this!
reply
Am I correct in assuming that I can use them for my use case described in #76141?
But would that be the simplest way?
reply
coinos does look great but I don't see the 'convert automatically to fiat' option
reply
going back to fiat IS NOT AN OPTION. That is the option only for shitcoin fiat maxis. We are going forward not backward... As a merchant I want sats not shitcoin fiat.
reply
Ha ha - nice. I mean, I'm totally with you. If I were a merchant, I'd choose sats.
Every merchant I've ever cold-approached though, is on the shitcoin fiat maxi side of the scale - and they need to dip their toes in the Orange Pill pool before dive bombing the deep end.
reply
Getting any merchant to use Bitcoin/LN is a step forward, regardless if they convert it back to fiat.
Any increase in use of LN effectively increases demand for Bitcoin, even if at one end of the trade it gets converted back to fiat. Increased demand for sats as a medium of exchange on LN is just as good, if not better, than hodling sats as a store of value.
This is why the work that Strike is doing is so important.
reply
Giving customers the ability to pay with sats means you are not subjecting them to the tyranny of the state. That is the reason.
reply
Are you referring to the conversion of bitcoin into fiat and deposited into a bank account, or simply the fiat value of the bitcoin at the time of the transaction but the bitcoin is still held?
reply
Immediate conversion to fiat, with ability to transfer the balance to a bank account.
OpenNode do this for a 1% conversion fee.
Of course I hope the merchant will choose to hold BTC, if not immediately, then eventually..
reply
Immediate conversion to fiat,
The most idiotic thing ever. That means you want a forever slavery of fiat debt. Why do you bother anymore to use BTC? Just take the shitcoin fiat and be a slave forever.
Damn it, people still don't get it why we are in this... not to get rich or have another paypal, but to FUCK THE BANKS AND GET RID OF ALL FUCKING GOVS!
Bitcoin will change the whole world, not just financially but in all aspects. Don't try to "!integrate" Bitcoin into existing system, change the entire system to adapt to Bitcoin way.
reply
In America at least, starting in 2022 the IRS requires third party payment processors to submit a tax form on their customers. Strike and cash app and stripe included.
But it only works for the IRS with businesses that convert their payments to dirty surveillance fiat. Businesses need to be aware of this especially ones that are accustomed to cash.
reply
reply
If a business accepts lightning and then subjects itself to IRS surveillance and extortion, who cares because that business is giving its customers the option to avoid all that.
+100 :-)
reply
Have you heard of LNURL-pay?
reply
I have, but only superficially. Is there an LNURL-pay solution already out there that delivers on the above?
  • Untrusted staff member types in the amount on their own device (using only a browser)
  • Customer scans & sends (no need for them to type the amount)
I don't think OpenNode have LNURL-pay (I could be mistaken). is there an easy-to-sign-up LNURL-pay service that also provides auto-fiat conversions?
reply
an alternative is that a bitcoiner who works at the merchant location accepts the bitcoin and pays the fiat invoice (e.g. a waiter with a 'bitcoin accepted here' pin)
  • the advantage to the merchant bitcoiner is getting KYC free sats
  • the advantage to the customer bitcoiner is using bitcoin
  • the shop or restuarant accounts are not affected but they are closer to going full bitcoin
if it's a reliable setup (maybe multiple bitcoiners at the merchant) then the merchant can add themselves to btcmap.org for the marketing win
reply
That's a very clever idea! I'll try that on the next waiter...
reply
This is a very important point. Let the business do the surveillance dollar conversion if they want to instead of the customer, who now has the option use their lightning node in the real world.
reply
This week I am also working on a project to help more merchants onboard lightning network..
My approach is similar to stripe payment link, here is the whole process:
For merchants:
  1. In a web page, the merchants leave their lightning network address(they can get from https://lightningaddress.com/)
  2. The name / description / amount of products
  3. The return and webhook url
Then the service will generate a reusable payment link
For customers:
  1. Click the payment link, get product detail and invoice QR code which is a hodl invoice based on the lightning address (inspired by https://lnproxy.org/)
  2. After the hodl invoice get paid, the service will route the original invoice and settle the hodl invoice, then send webhook to merchants.
This will have much better experience than stripe or open node:
No KYC / Very low Fee / No chargeback/ Even no need to sign up/ Service don't hold money.
Any merchants can sell any thing online and accept bitcoin!
reply
This week I am also working on a project to help more merchants onboard lightning network..
Link to your project?
reply
still in progress..will share after completion…
reply
I would be really surprised if Strike wasn't already working on this ... they just got that 80 mill as well...
haven't found anything yet...
reply