blink icon indicating copy to clipboard operation
blink copied to clipboard

receive only wallet for merchants

Open nicolasburtey opened this issue 4 years ago • 7 comments

A use case that would be useful for merchants:

Typically today, if you go to a restaurant that have 5-10 employees, the only time a customer can pay with lightning is if the owner is here. The owner would typically not allow an employee to accept receive payment with their own wallet because he would not really know how much money was being received if employee was using their personal wallet.

The owner could share the wallet by letting some employees use their own phone number and sharing the code, but it would allow someone else have access to all the money in the wallet.

So the right solution is certainly to have a way for a receive only option for the wallet. This would typically be the way a payment terminal for credit card would work today. you can received, but not the balance of the account neither spend the money into it... with the exception of a reimbursement of a transaction that has just occurred.

nicolasburtey avatar Jul 08 '21 21:07 nicolasburtey

link to: https://github.com/GaloyMoney/galoy/issues/313 (but different)

nicolasburtey avatar Jul 08 '21 21:07 nicolasburtey

We solved this problem (at least partially) with lnpage. What feature do we not have there that we want to add?

krtk6160 avatar Jul 09 '21 06:07 krtk6160

maybe it's a documentation issue but 1/ not a lot of people know about this. 2/ the fact we can't set an amount (it's an invoiceless amount) make it not compatible with multiple wallet 3/ overall I think lnpage is good for not-in-person transaction, but for in person transaction using an app is so much better ux wise 4/ with lnpage we would never has a features like a refund option. this would be needed for the merchant. for instance is someone sent $100 instead of $10.

nicolasburtey avatar Jul 10 '21 16:07 nicolasburtey

Also currently they don’t even know how much money they received with lnpage @krtk6160 if they don’t have the mobile wallet associated with the account

nicolasburtey avatar Jul 11 '21 01:07 nicolasburtey

Hi, for example... maybe the app can have a send mail button, this can send all dayli transactions and the account balance to the restaurant owner for example. Actually i have your same idea, im trying to develop a special wallet for merchants using Galoy Infra. But i need your help to deploy it.

mTh0rs avatar Jul 27 '21 08:07 mTh0rs

@bodymindarts I think this is related to this PR. do you have more context in your mind on the best way to handle this issue, and the dependencies with our authentication/authorization ongoing work?

nicolasburtey avatar Mar 28 '22 00:03 nicolasburtey

We will need some kind of RBAC. Right now we have a naive self-made implementation that won't do long term. The PR was a POC to introduce Casbin which is one way we could go. Another option is ory/keto. We should revisit this decision when the ory integration work has progressed further (ie. Kratos + Hydra is complete).

bodymindarts avatar Mar 28 '22 07:03 bodymindarts