PayButton / paybutton

Accept eCash by adding a donation or buy button to your website.
https://paybutton.org
MIT License
36 stars 19 forks source link

Try to help user get set up with a wallet if none is installed #277

Open Klakurka opened 1 year ago

Klakurka commented 1 year ago

Obviously this would happen when they go to click the button to pay under the QR code.

Klakurka commented 1 year ago

Right now the button just does nothing in the case where no wallet is found.

Klakurka commented 1 year ago

Linking to cashtab.com would be good, perhaps with some extra context from us.

Klakurka commented 1 year ago

MVP for this is to just open cashtab.com in a new tab.

chedieck commented 1 year ago

Unfortunately checking if the URL protocol (ecash: or bitcoincash:) can be opened by the user is not a solution (see https://stackoverflow.com/a/66201092)

Klakurka commented 5 months ago

https://github.com/Bitcoin-ABC/bitcoin-abc/blob/36c765ff3585ae997d703d5064061f10b1ef32ef/modules/cashtab-components/src/utils/cashtab-helpers.ts#L115-L121