Bitcoin Forum

Other => Beginners & Help => Topic started by: BitCoinDream on June 24, 2014, 03:43:15 PM



Title: Which code should I use for Bitcoin payment ?
Post by: BitCoinDream on June 24, 2014, 03:43:15 PM
Pay 0.0115 BTC to 12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX

Code:
<a href="bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX">12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX</a><br /><br />

or

Code:
<a href="bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX?amount=0.0115">12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX</a><br /><br />


Title: Re: Which code should I use for Bitcoin payment ?
Post by: Dare on June 24, 2014, 08:36:29 PM
Pay 0.0115 BTC to 12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX

Code:
<a href="bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX">12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX</a><br /><br />

or

Code:
<a href="bitcoin:12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX?amount=0.0115">12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX</a><br /><br />

The second one is probably what you want, as it'll autofill the payment amount, though you should add a note to the page with the amount so that people can see it before they click the link. For future reference, bitcoin URIs are defined in BIP 0021 (https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki).


Title: Re: Which code should I use for Bitcoin payment ?
Post by: Velkro on June 24, 2014, 09:05:32 PM
Probably it depends on user wallet software how it will react to each link, probably very diffirent reaction.
If everybody would use one standard would be great


Title: Re: Which code should I use for Bitcoin payment ?
Post by: BitCoinDream on June 24, 2014, 09:10:43 PM
Probably it depends on user wallet software how it will react to each link, probably very diffirent reaction.
If everybody would use one standard would be great

AFAIK this approach is standard for Bitcoin-QT, but does not work for others. So, along with this, I'll also have the address and amount in simple text + the QR code of the address. I think, nothing else is required.


Title: Re: Which code should I use for Bitcoin payment ?
Post by: byt411 on June 24, 2014, 09:21:46 PM
Probably it depends on user wallet software how it will react to each link, probably very diffirent reaction.
If everybody would use one standard would be great

AFAIK this approach is standard for Bitcoin-QT, but does not work for others. So, along with this, I'll also have the address and amount in simple text + the QR code of the address. I think, nothing else is required.

I think MultiBit and Bitcoin-QT supports it, and that's it. Electrum definitely doesn't. And yeah, a nice design with the address with the QR code like CoinBase or Bitpay would be fine.