Bitcoin Forum
May 23, 2024, 08:25:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Which code should I use for Bitcoin payment ?  (Read 805 times)
BitCoinDream (OP)
Legendary
*
Offline Offline

Activity: 2324
Merit: 1204

The revolution will be digital


View Profile
June 24, 2014, 03:43:15 PM
 #1

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 />

Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
June 24, 2014, 08:36:29 PM
 #2

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.

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
Velkro
Legendary
*
Offline Offline

Activity: 2296
Merit: 1014



View Profile
June 24, 2014, 09:05:32 PM
 #3

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
BitCoinDream (OP)
Legendary
*
Offline Offline

Activity: 2324
Merit: 1204

The revolution will be digital


View Profile
June 24, 2014, 09:10:43 PM
 #4

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.

byt411
Hero Member
*****
Offline Offline

Activity: 798
Merit: 1000


View Profile
June 24, 2014, 09:21:46 PM
 #5

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!