Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: dank on August 31, 2012, 05:01:52 AM



Title: Bitcoin Buy button?
Post by: dank on August 31, 2012, 05:01:52 AM
Is there a way to make a clickable link that opens the client with the amount of BTC to send and the receiving address?


Title: Re: Bitcoin Buy button?
Post by: payb.tc on August 31, 2012, 05:02:52 AM
Is there a way to make a clickable link that opens the client with the amount of BTC to send and the receiving address?

search: "bitcoin URI"

not sure if the satoshi client supports it yet, but i know armory does.


Title: Re: Bitcoin Buy button?
Post by: Stephen Gornick on August 31, 2012, 08:31:12 AM
The URI will be like this:

   bitcoin:1PC9aZC4hNX2rmmrt7uHTfYAS3hRbph4UN?amount=1.2345

In HTML:

<a href="bitcoin:1PC9aZC4hNX2rmmrt7uHTfYAS3hRbph4UN?amount=1.2345">1PC9aZC4hNX2rmmrt7uHTfYAS3hRbph4UN</a>



not sure if the satoshi client supports it yet, but i know armory does.

v0.6.x doesn't.  v0.7 will support it (or, the v0.7 rc1 already does).

search: "bitcoin URI"


Here's an example:
 - https://bitpay.com/cart?id=iFj4uQXWxH96Pc3TZ8rd_WJiQCn72sE-jHBkHEEkvYk=  (click the Checkout Now Bitcoin button)


Title: Re: Bitcoin Buy button?
Post by: Mike Hearn on August 31, 2012, 08:54:51 AM
MultiBit already also supports it. So I am hoping that we can adjust the forum software to make using Bitcoin URIs much easier once 0.7 is out.


Title: Re: Bitcoin Buy button?
Post by: jim618 on August 31, 2012, 09:11:27 AM
Electrum too.

Now that support is in the Satoshi client bitcoin URIs should start popping up everywhere !


Title: Re: Bitcoin Buy button?
Post by: dank on August 31, 2012, 09:03:13 PM
Awesome, much thanks.


Title: Re: Bitcoin Buy button?
Post by: MatthewLM on September 01, 2012, 01:27:38 PM
Probably best not to solely use the URI link method for payments though. Best to mix it with QR codes and copy and paste addresses.


Title: Re: Bitcoin Buy button?
Post by: TangibleCryptography on September 01, 2012, 02:23:43 PM
Probably best not to solely use the URI link method for payments though. Best to mix it with QR codes and copy and paste addresses.

Exactly.  Never assume what technology the client will have access to a checkout page with a text address that is a link to the bitcoin uri and a qr code covers all your bases and doesn't take up  much more space than just one method.


Title: Re: Bitcoin Buy button?
Post by: etotheipi on September 01, 2012, 03:59:12 PM
Probably best not to solely use the URI link method for payments though. Best to mix it with QR codes and copy and paste addresses.

Exactly.  Never assume what technology the client will have access to a checkout page with a text address that is a link to the bitcoin uri and a qr code covers all your bases and doesn't take up  much more space than just one method.


Hopefully, this will be ubiquitous across Bitcoin clients, and then it will be just like regular URLs : for most people it will just work, and if not, they know how to copy it into the browser.

For now, that's why the Armory URL creator encourages you to include the plaintext info too, when creating and sending such links. 

http://dl.dropbox.com/u/1139081/BitcoinImg/screenshot_payrequest_3_sm.png


Title: Re: Bitcoin Buy button?
Post by: memvola on September 01, 2012, 04:24:40 PM
not sure if the satoshi client supports it yet, but i know armory does.

v0.6.x doesn't.  v0.7 will support it (or, the v0.7 rc1 already does).

0.6 supports it on my computer and very conveniently I must say (e.g. click multiple URIs and send them all at once in a single transaction), though it wasn't installed automatically if that's what you mean.