Open Tirodem opened 1 year ago
Big question here, I think, is : is it possible to automatically send lightning payment from a request with a rightly setted back-office, or should we include manual validation from the owner of the referred Bootik ? In that case, I shall make it async and change my conditions a bit.
Note : for this feature, always consider amounts in SATS, not dependig of the Bootik main currency Note2 : this might force us to stock the 2 amounts when ordering (main currency amount, and SATS real amount if SATS/BTC is 2nd currency)
Following talk with Lionel, it seems that we can use lnurl for direct payment from the seller to the referral bootik : https://docs.bitnob.com/docs/pay-lnurl-qr That would make the process easier.
Use case with lnurl :
yes we should be able to send sats directly to bootik with it's lightning paymetn address
@coyotte508 I rewrote the US considering that
Note : instead of using a lightning payment with a lightning address related to a bootik npub, we can think about associating the lightning address of the bootik with its nostr account and use the "Zaps" feature from Nostr. https://thebitcoinmanual.com/articles/nostr-zaps But it seems to be highly UI related, I think it's better to separate the lightning payment from the nostr notification. @ludomire WDYT ?
Why not both?
We indeeed can associate automatically Bootik's lightning address with its NostR account to allow users to give us Zaps and be whitelisted in Zaps pool. Still we'll do with Lightning payment first as I'm not sure it's pertinent to use Zaps from NostR to do lightning payment instead of a direct Lightning payment. I edit https://github.com/B2Bitcoin/B2BitcoinBootik/issues/167 for that.
After that, 1 day I guess
Following https://github.com/B2Bitcoin/B2BitcoinBootik/issues/96 Restricted to https://github.com/B2Bitcoin/B2BitcoinBootik/issues/168 whitelisted npubs
Prerequisite
Use cases
Setting referral on a product
Process referral on product sale
order.items.product.price.amount x order.items.quantity x amount / 100
through lightning to the target adressProcess referral payment on target's side