Bitcoin Forum
June 26, 2024, 11:35:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is There An Easy Way Here? Please Advise (Resolved)  (Read 737 times)
serenitys (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 101

Be Here Now


View Profile
May 11, 2014, 07:22:20 AM
Last edit: May 11, 2014, 09:21:41 AM by serenitys
 #1

I've been looking for the easiest solution but keep finding convoluted coding bs...

All I want to do is add a bitcoin donation button to a website...and I assumed it would be as simple as the bitcoin wallet address in the href tag and the button image in the image tag and there ya go. If someone clicks, it'll take them where ever the address leads to.

Apparently it's not that simple.

I have 1. website, 2. bitcoin wallet address, 3. button image

How exactly do I need to add this? What would I add for a QR code? Where does it go?

Also, what is the public key and what do I do with it? Private key?

Thanks

You say "anti government" like that's a bad thing...

Unfortunate times will bring out the best in good people and the worst in bad people
Foxpup
Legendary
*
Offline Offline

Activity: 4410
Merit: 3062


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
May 11, 2014, 07:47:03 AM
 #2

All I want to do is add a bitcoin donation button to a website...and I assumed it would be as simple as the bitcoin wallet address in the href tag and the button image in the image tag and there ya go. If someone clicks, it'll take them where ever the address leads to.

Apparently it's not that simple.
Sure it is. See my signature, for example. Is there a specific problem you're experiencing?

I have 1. website, 2. bitcoin wallet address, 3. button image

How exactly do I need to add this?
Code:
<a href="bitcoin:address?label=whatever%20you%20want">
<img src="imagefilename" alt="whatever you want">
</a>
You should also have the Bitcoin address in plain text on the website, for the benefit of people who don't have a Bitcoin client installed and are therefore unable to use the link directly.

What would I add for a QR code? Where does it go?
You'd add another image. Put it near the donation button. Or make it part of the same image. Either way works.

Also, what is the public key and what do I do with it?
The public key is irrelevant and unnecessary for this operation. Do nothing with it.

Private key?
Do especially nothing with it. Private = don't put it on your website.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
BitCoinDream
Legendary
*
Offline Offline

Activity: 2338
Merit: 1204

The revolution will be digital


View Profile
May 11, 2014, 07:56:01 AM
 #3

I've been looking for the easiest solution but keep finding convoluted coding bs...

All I want to do is add a bitcoin donation button to a website...and I assumed it would be as simple as the bitcoin wallet address in the href tag and the button image in the image tag and there ya go. If someone clicks, it'll take them where ever the address leads to.

Apparently it's not that simple.

I have 1. website, 2. bitcoin wallet address, 3. button image

How exactly do I need to add this? What would I add for a QR code? Where does it go?

Also, what is the public key and what do I do with it? Private key?

Thanks

Paste the following in your HTML and modify the address and qr code image, otherwise the donation will go to Bitcoin foundation Wink

Code:
<center><a href="bitcoin:1BTCorgHwCg6u2YSAWKgS17qUad6kHmtQW?label=Bitcoin+Foundation+Donation">1BTCorgHwCg6u2YSAWKgS17qUad6kHmtQW</a><br /><br />
<a href="bitcoin:1BTCorgHwCg6u2YSAWKgS17qUad6kHmtQW?label=Bitcoin+Foundation+Donation">
<img src="http://btcf.bwb.is/static/sites/11/2014/04/btcf_qr.png" alt="btcf_qr" width="202" height="201">
</a></center>

Preview...





serenitys (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 101

Be Here Now


View Profile
May 11, 2014, 09:21:21 AM
 #4

Awesome. That did the trick. Thanks so much for the info. Not sure what I was looking at but there were several "add bitcoin donation button" tutorials that wanted all kinds of code, php, js, and downloading this and that...I even signed up for bitpay and have no idea whether I need it or not ;-p

Thanks for the easy solution.

Happy Mother's Day to you all too

You say "anti government" like that's a bad thing...

Unfortunate times will bring out the best in good people and the worst in bad people
newIndia
Legendary
*
Offline Offline

Activity: 2226
Merit: 1049


View Profile
May 13, 2014, 03:48:14 PM
 #5

All I want to do is add a bitcoin donation button to a website...and I assumed it would be as simple as the bitcoin wallet address in the href tag and the button image in the image tag and there ya go. If someone clicks, it'll take them where ever the address leads to.

Apparently it's not that simple.
Sure it is. See my signature, for example. Is there a specific problem you're experiencing?

I have 1. website, 2. bitcoin wallet address, 3. button image

How exactly do I need to add this?
Code:
<a href="bitcoin:address?label=whatever%20you%20want">
<img src="imagefilename" alt="whatever you want">
</a>
You should also have the Bitcoin address in plain text on the website, for the benefit of people who don't have a Bitcoin client installed and are therefore unable to use the link directly.

What would I add for a QR code? Where does it go?
You'd add another image. Put it near the donation button. Or make it part of the same image. Either way works.

Also, what is the public key and what do I do with it?
The public key is irrelevant and unnecessary for this operation. Do nothing with it.

Private key?
Do especially nothing with it. Private = don't put it on your website.

I'd like to know how the payment made through the above is tracked, i.e. how the system will know the Tx Id or the amount that the user is paying by clicking on bitcoin:address ?

devthedev
Legendary
*
Offline Offline

Activity: 1050
Merit: 1004



View Profile
May 13, 2014, 04:15:21 PM
 #6

Awesome. That did the trick. Thanks so much for the info. Not sure what I was looking at but there were several "add bitcoin donation button" tutorials that wanted all kinds of code, php, js, and downloading this and that...I even signed up for bitpay and have no idea whether I need it or not ;-p

Thanks for the easy solution.

Happy Mother's Day to you all too

Here's a script you can use for a donate button as well, it includes a QR code and such.
All you have to do is replace the "###" with your Bitcoin address everywhere you see it in the code.

Code:
<script src="//blockr.io/js_external/coinwidget/coin.js"></script>
<script>
CoinWidgetCom.go({
wallet_address: '###',
currency: 'bitcoin',
counter: 'count',
lbl_button: 'Donate',
lbl_count: 'donations',
lbl_amount: 'BTC',
lbl_address: 'Use address below to donate. Thanks!',
qrcode: true,
alignment: 'bl',
decimals: 8,
size: "small",
color: "dark",
countdownFrom: "0",
element: "#coinwidget-bitcoin-###",
onShow: function(){},
onHide: function(){}
});
</script>
<div id="coinwidget-bitcoin-###"></div>

newIndia
Legendary
*
Offline Offline

Activity: 2226
Merit: 1049


View Profile
May 13, 2014, 04:21:27 PM
 #7

Awesome. That did the trick. Thanks so much for the info. Not sure what I was looking at but there were several "add bitcoin donation button" tutorials that wanted all kinds of code, php, js, and downloading this and that...I even signed up for bitpay and have no idea whether I need it or not ;-p

Thanks for the easy solution.

Happy Mother's Day to you all too

Here's a script you can use for a donate button as well, it includes a QR code and such.
All you have to do is replace the "###" with your Bitcoin address everywhere you see it in the code.

Code:
<script src="//blockr.io/js_external/coinwidget/coin.js"></script>
<script>
CoinWidgetCom.go({
wallet_address: '###',
currency: 'bitcoin',
counter: 'count',
lbl_button: 'Donate',
lbl_count: 'donations',
lbl_amount: 'BTC',
lbl_address: 'Use address below to donate. Thanks!',
qrcode: true,
alignment: 'bl',
decimals: 8,
size: "small",
color: "dark",
countdownFrom: "0",
element: "#coinwidget-bitcoin-###",
onShow: function(){},
onHide: function(){}
});
</script>
<div id="coinwidget-bitcoin-###"></div>

In this case also, how the payment is tracked by the system, i.e. how my site will know about the Tx Id and the amount ?

Foxpup
Legendary
*
Offline Offline

Activity: 4410
Merit: 3062


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
May 14, 2014, 01:52:48 AM
 #8

how my site will know about the Tx Id and the amount ?
The same way as if you had published your bank account number on your site for the purpose of people sending money to it. Your site has no way of knowing if anyone has sent money to that bank account. However, your bank will know, and you can get the transaction details from your bank. Likewise, your site will not know if you have received bitcoins, but your Bitcoin wallet will, and it will provide the transaction details.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
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!