-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove external payment options from payment request modal #212
Comments
Optimally Polling the server to check if the payment has been received would be the best option, but I can see it might not always be possible. Maybe we can have a CC @reneaaron @bumi |
Agree. We take the preimage as proof of payment so it's possible that the server/service that takes the credentials does not have access to an invoice status.
I agree that by default most of the people want it set to true. So whatever route we follow ( Also, should we consider yet another section with a text field (from) for introducing the preimage manually (I would go with no, but in case you see it necessary) |
No, I think users should never have to manually paste a preimage. Most people have no idea what it is, and I'm not sure what they gain from doing this or even where they get that preimage from |
It also makes sense to only show the external options in some cases. I wonder if instead we add a property |
Problem
The payment request modal currently offers users two options:
I am integrating bitcoin-connect into a service based on the L402 protocol. For the protocol to function correctly, it is essential that the client has access to the invoice preimage. Allowing the user to pay the invoice with an external wallet that is not connected introduces complications and makes it difficult to properly implement the L402 protocol.
Proposed solution
I propose making the "or + QR + copy invoice" HTML components optional in the payment request modal UI.
By providing a way to disable or hide these elements when needed, we make it really hard for the user to "accidentally" pay the invoice in a way that the client does not have access to the preimage.
Alternative Solution/Workarounds
I am more than happy to create a PR adding the prop + logic to hide this section of the html but I want to hear professional advice first :)
The text was updated successfully, but these errors were encountered: