deezy-place icon indicating copy to clipboard operation
deezy-place copied to clipboard

Buy with lighting

Open andredevjs opened this issue 1 year ago • 4 comments

Please a new option next to "Buy" that says "Buy with lighting <Lighting icon>". And integrate there, that's the most consistent way of adding this feature. You should modify the buy modal to add the following:

  1. If is buying with lighting, it should NOT, validate the dummy utxos. (look for the update payer function)
  2. Of course, instead of using our psbt and signing function, just call the API with the signed seller psbt.
  3. Deezy api will give you back an bolt11_invoice, pay that invoice using Alby first, (then we can add the logic for metamask)

For the lighting icon please use "feather-zap", that is the most similar and it is consistent with the rest of the icons.

Create a new file under utils call lighting.js, and place all your logic there.

It is pretty much the same we have, but much much better, no need for users to be sending some dummy utxo's, something that for most people is hard to understand.

andredevjs avatar Apr 24 '23 13:04 andredevjs