Bitcoin Forum

Bitcoin => Project Development => Topic started by: coinableS on March 14, 2015, 11:39:10 PM



Title: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on March 14, 2015, 11:39:10 PM
So we're all at least somewhat techy if we're into bitcoin, but that doesn't mean we all know how to code like a pro.
I believe there is a serious lack of tutorials and step-by-step walk throughs available in the bitcoin ecosystem.

I can google "how to light my fart on fire" and find endless videos available. There's even a wikipedia page dedicated to it (http://en.wikipedia.org/wiki/Fart_lighting). This is a serious issue that such a ridiculous topic can have so many resources, but something as serious as integrating and building bitcoin websites does not. I know there are a lot of knowledgeable coders out there that know how to make cool bitcoin related websites, but for some reason no one is making tutorials.

Since I began working with bitcoin related websites mid last year I ran into lots of hurdles and I have compiled what I have learned into some step by step videos and written tutorials.

I know I'm not the greatest coder and there are probably better ways to do the things I demonstrate, but as I stated previously I only created these because they don't exist already and I wish they did when I was getting started. If you think I missed something crucial I advise you to create something better because it's something that the community could really use.

==========
My Book: Building Bitcoin Websites  (https://www.amazon.com/Building-Bitcoin-Websites-Beginners-Development/dp/153494544X)
==========

So You Want To Use Bitcoin On Your Website?

Goto my youtube channel to see all videos (https://www.youtube.com/user/m1xolyd1an/videos)

I'm now doing a series on Bitcoin NodeJS Development
https://www.youtube.com/playlist?list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_

Bitcoin NodeJS Part 1 - Hello World (https://www.youtube.com/watch?v=lUiKpNU2Tx4&index=1&t=3s&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 2 - Express (https://www.youtube.com/watch?v=JoTYbWtxVIY&index=2&t=1s&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 3 - Create a Brain Wallet (https://www.youtube.com/watch?v=gD20zsE3TEE&index=3&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 4 - Callback Functions (https://www.youtube.com/watch?v=l-Fkga-5cVg&index=4&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 5 - Build a Converter App with EJS & Bootstrap (https://www.youtube.com/watch?v=Wwv6pK4PBdw&index=5&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)

Written Lessons:
Table of Contents (http://btcthreads.com/inst.html)
Lesson 1 - Intro into Bitcoin (http://btcthreads.com/lesson1.html)
Lesson 2 - Intro to Web Wallets (http://btcthreads.com/lesson2.html)
Lesson 3 - Intro to PHP and JSON (http://btcthreads.com/lesson3.html)
Lesson 4 - More PHP and JSON (http://btcthreads.com/lesson4.html)
Lesson 5 - API (http://btcthreads.com/lesson5.html)
Lesson 6 - PROJECT - Create a simple bitcoin webstore (http://btcthreads.com/lesson6.html)
Bitcoin and Websocket - Real-Time Live Transactions (http://btcthreads.com/websocket.html)
Chain.com API - Create a Address & Transaction Browser (http://btcthreads.com/chain.html)
How to use blockchain's new receive payments API with PHP & cURL (http://btcthreads.com/how-to-use-blockchain-receive-payments-api-hd-bip32-xpub/)
How to use blockchain's new Blockchain Wallet API V2 (http://btcthreads.com/how-to-setup-blockchain-wallet-service/)
Intro Bitcoin JavaScript Tutorials (https://coinables.github.io)


Video Lessons:
Lesson 1 - Intro into Bitcoin (https://www.youtube.com/watch?v=4_A_HF5Jpfs)
Lesson 2 - Intro to Web Wallets (https://www.youtube.com/watch?v=H3bvnoWhzoE)
Lesson 3 - Intro to PHP and JSON (https://www.youtube.com/watch?v=_TSJLvYw4p8)
Lesson 4 - More PHP and JSON (https://www.youtube.com/watch?v=-hvbrC5PadI)
Lesson 5 - API (https://www.youtube.com/watch?v=pqUsjrqkH_M)
Lesson 6 - PROJECT - Create a simple bitcoin webstore (https://www.youtube.com/watch?v=9x6OYHEhENc)
How To Create Dynamic Bitcoin URIs (https://www.youtube.com/watch?v=timLCHxDae0&index=8&list=PLhWIQKZKupCYogutsw_qRuDWhjaHm19Ie)
How To Use Blockchain.info Receive Payments API (https://www.youtube.com/watch?v=vWt9wRZ3Hhk) Deprecated as of Dec 7th 2015, see new version
Bitcoin and Websocket - Real-Time Live Transactions (http://youtu.be/jEdfNG-eT8E)
How To Easily Query Bitcoin Blockchain Stats with Blockchain.info API (https://www.youtube.com/watch?v=iQAZ40C9dww)
How To Create A Bitcoin Address Validation Form (https://www.youtube.com/watch?v=YoH_M47lDjY)
How to use blockchain's new receive payments API with PHP & cURL (https://www.youtube.com/watch?v=ASCz5uLs5EE)
How to use Block.IO API to integrate bitcoin payments on your website (https://www.youtube.com/watch?v=0cMhcZb8aNw)
How to use Blockchain Wallet Service API V2 (https://www.youtube.com/watch?v=X8jsaf4sEgs)
Programming a simple bitcoin trading bot with bitfinex API  (https://www.youtube.com/watch?v=rky1EnDqmhI)
How to build your first Bitcoin Chrome Extension (https://www.youtube.com/watch?v=lWC6E7175I8)
How to build a Bitcoin Mining Calculator in PHP (https://www.youtube.com/watch?v=iMuwInCCIYw)
Blockchain WebSocket using Javascript (https://www.youtube.com/watch?v=55xvr2oqMdk)


Bitcoind and JSON-RPC API
1. Intro - https://www.youtube.com/watch?v=cMM-t7azzJE
2. Setting up on a VPS - https://www.youtube.com/watch?v=ygNit44dQHA
3. Customize the bitcoin.conf - https://www.youtube.com/watch?v=W54aRszkEOI
4. Testing with bitcoin command line interface - https://www.youtube.com/watch?v=vmdYD7vutTI
5. Your first JSON-RPC calls - https://www.youtube.com/watch?v=ARL_PvDEBtU
6. More JSON-RPC calls - https://www.youtube.com/watch?v=FyLCKMqkWIA
7. Wallet Notify - https://www.youtube.com/watch?v=o4BPt4RXOm4

Building Bitcoin Websites:
Some older videos. This is where I started...
The videos are less structured but still useful.

PLAYLIST: Building Bitcoin Websites (https://www.youtube.com/playlist?list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV)
Contents:
How to get the Price (https://www.youtube.com/watch?v=0XNpy3e0qrQ&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=1)
Create a BTC/USD Converter (https://www.youtube.com/watch?v=DihdEsE8x6U&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=3)
Using Blockchain.info API (https://www.youtube.com/watch?v=dQbah3IYMOs&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=6)
Building A Bitcoin Faucet (https://www.youtube.com/watch?v=ZEQUfPleqaI&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=8)

Again, I know these aren't the best but it's a start in a world without walkthrough tutorials for building bitcoin related websites.
 8)
==========
EDIT: 3/22/15
Updated: tinyStore files to include basic form validation and integrated bitcoin client URI during the purchase.
Added New Video: How To Create Dynamic Bitcoin URIs (https://www.youtube.com/watch?v=timLCHxDae0&index=8&list=PLhWIQKZKupCYogutsw_qRuDWhjaHm19Ie)

EDIT: 4/1/15
Added New Video: How To Use Blockchain.info Receive Payments API (https://www.youtube.com/watch?v=vWt9wRZ3Hhk)

EDIT: 5/8/15
Added Video and Written Lesson on websocket.
Lesson: Bitcoin and Websocket - Real-Time Live Transactions (http://btcthreads.com/websocket.html)
Video: Bitcoin and Websocket - Real-Time Live Transactions (http://youtu.be/jEdfNG-eT8E)

EDIT: 5/25/15
Chain.com API
Videos:
Building a Bitcoin Address Browser (https://www.youtube.com/watch?v=nX7u02KM8Tg)
Building a Bitcoin Address Browser 2 (https://www.youtube.com/watch?v=OUdGJK-sJ2k)
Building a Bitcoin Address Browser 3 (https://www.youtube.com/watch?v=h9Elo57CLoM)
Building a Bitcoin Address Browser 4 (https://www.youtube.com/watch?v=H_XjXoLIQFA)

EDIT: 8/1/2015
My tutorials have now been featured on Blockchain's blog!
http://blog.blockchain.com/2015/07/30/building-bitcoin-websites-using-the-blockchain-api-video-tutorial/

EDIT: 10/17/2015
How To Create A Bitcoin Address Validation Form (https://www.youtube.com/watch?v=YoH_M47lDjY)

EDIT: 11/18/2015
2nd Feature article on blockchain.info's blog
https://blog.blockchain.com/2015/11/18/using-the-blockchain-api-to-determine-the-time-left-until-the-next-bitcoin-block-halving/

EDIT: 12/4/2015
Written: How to use blockchain's new receive payments API with PHP & cURL (http://btcthreads.com/how-to-use-blockchain-receive-payments-api-hd-bip32-xpub/)
Video: How to use blockchain's new receive payments API with PHP & cURL (https://www.youtube.com/watch?v=ASCz5uLs5EE)

EDIT: 1/3/2016
Video: How to use Block.IO API to integrate bitcoin payments on your website (https://www.youtube.com/watch?v=0cMhcZb8aNw)

EDIT: 4/13/2016
Added a video series on bitcoind JSON-RPC API usage.
https://www.youtube.com/watch?v=cMM-t7azzJE&index=27&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV[/quote]

EDIT: 5/5/2016
How to build your first Bitcoin Chrome Extension
https://www.youtube.com/watch?v=lWC6E7175I8

EDIT: 5/25/2016
How to build a Bitcoin Mining Calculator in PHP
https://www.youtube.com/watch?v=iMuwInCCIYw

EDIT: 7/2/2016
Since I do so much with PHP, I added some simple introduction Bitcoin JavaScript tutorials
https://coinables.github.io

EDIT: 8/15/2016
Added a video on Blockchain WebSocket using Javascript
https://www.youtube.com/watch?v=55xvr2oqMdk

EDIT: 12/18/2016
Bitcoin NodeJS Tutorial Series work in progress
Bitcoin NodeJS Part 1 - Hello World (https://www.youtube.com/watch?v=lUiKpNU2Tx4&index=1&t=3s&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 2 - Express (https://www.youtube.com/watch?v=JoTYbWtxVIY&index=2&t=1s&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 3 - Create a Brain Wallet (https://www.youtube.com/watch?v=gD20zsE3TEE&index=3&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 4 - Callback Functions (https://www.youtube.com/watch?v=l-Fkga-5cVg&index=4&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 5 - Build a Converter App with EJS & Bootstrap (https://www.youtube.com/watch?v=Wwv6pK4PBdw&index=5&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: S4VV4S on March 15, 2015, 09:26:47 AM
Oh WOW!

There's a fart lighting page on wikipedia?

I didn't know that.
I will check it now.....

LOL!
Just kidding!  :D :D :D :D :D

Excellent guide!
Well done  ;)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: williamho on March 15, 2015, 09:28:22 AM
So we're all at least somewhat techy if we're into bitcoin, but that doesn't mean we all know how to code like a pro.
I believe there is a serious lack of tutorials and step-by-step walk throughs available in the bitcoin ecosystem.

I can google "how to light my fart on fire" and find endless videos available. There's even a wikipedia page dedicated to it (http://en.wikipedia.org/wiki/Fart_lighting). This is a serious issue that such a ridiculous topic can have so many resources, but something as serious as integrating and building bitcoin websites does not. I know there are a lot of knowledgeable coders out there that know how to make cool bitcoin related websites, but for some reason no one is making tutorials.

Since I began working with bitcoin related websites mid last year I ran into lots of hurdles and I have compiled what I have learned into some step by step videos and written tutorials.

I know I'm not the greatest coder and there are probably better ways to do the things I demonstrate, but as I stated previously I only created these because they don't exist already and I wish they did when I was getting started. If you think I missed something crucial I advise you to create something better because it's something that the community could really use.

==========

So You Want To Use Bitcoin On Your Website?

Video:
Create a Simple Bitcoin Webstore (https://www.youtube.com/watch?v=ozDespuaJJw)

Source:
Main Page: http://pastebin.com/LiWbugN0
Item(s) Page: http://pastebin.com/DHJ0Dffp
yourEmail.php: http://pastebin.com/VYnD5N7m
blockChn.php: http://pastebin.com/q72Sa75t

Download as a zip: http://btcthreads.com/tinyStore.zip

Written Lessons:
Table of Contents (http://btcthreads.com/inst.html)
Lesson 1 - Intro into Bitcoin (http://btcthreads.com/lesson1.html)
Lesson 2 - Intro to Web Wallets (http://btcthreads.com/lesson2.html)
Lesson 3 - Intro to PHP and JSON (http://btcthreads.com/lesson3.html)
Lesson 4 - More PHP and JSON (http://btcthreads.com/lesson4.html)
Lesson 5 - API (http://btcthreads.com/lesson5.html)
Lesson 6 - PROJECT - Create a simple bitcoin webstore (http://btcthreads.com/lesson6.html)

Video Lessons:
Lesson 1 - Intro into Bitcoin (https://www.youtube.com/watch?v=4_A_HF5Jpfs)
Lesson 2 - Intro to Web Wallets (https://www.youtube.com/watch?v=H3bvnoWhzoE)
Lesson 3 - Intro to PHP and JSON (https://www.youtube.com/watch?v=_TSJLvYw4p8)
Lesson 4 - More PHP and JSON (https://www.youtube.com/watch?v=-hvbrC5PadI)
Lesson 5 - API (https://www.youtube.com/watch?v=pqUsjrqkH_M)
Lesson 6 - PROJECT - Create a simple bitcoin webstore (https://www.youtube.com/watch?v=9x6OYHEhENc)
All videos as a Playlist (https://www.youtube.com/watch?v=ozDespuaJJw&list=PLhWIQKZKupCYogutsw_qRuDWhjaHm19Ie&index=1)

Building Bitcoin Websites:
Some older videos. This is where I started... The videos are less structured but still useful.
PLAYLIST: Building Bitcoin Websites (https://www.youtube.com/playlist?list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV)
Contents:
How to get the Price (https://www.youtube.com/watch?v=0XNpy3e0qrQ&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=1)
Create a BTC/USD Converter (https://www.youtube.com/watch?v=DihdEsE8x6U&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=3)
Using Blockchain.info API (https://www.youtube.com/watch?v=dQbah3IYMOs&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=6)
Building A Bitcoin Faucet (https://www.youtube.com/watch?v=ZEQUfPleqaI&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=8)

Again, I know these aren't the best quality but it's a start in a world without walkthrough tutorials for building bitcoin related websites.
 8)



Good complete lesson on how to integrate Bitcoin. Bitpay does the job quite well too :P


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: S4VV4S on March 15, 2015, 09:33:27 AM
-snip-

Good complete lesson on how to integrate Bitcoin. Bitpay does the job quite well too :P

Yeah, but Bitpay takes some profit from your sales, innit?


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Glucose on March 15, 2015, 11:04:06 AM
Thanks. You did a good job there. It looks quite good and really useful. Will try to use it on my website ^^


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on March 15, 2015, 03:02:27 PM
-snip-

Good complete lesson on how to integrate Bitcoin. Bitpay does the job quite well too :P

Yeah, but Bitpay takes some profit from your sales, innit?

DOB, gov't license, Tax ID/SSN, Credit bureaus, right to reject account and close...
Not everyone likes Bitpay or Coinbase as a solution. Especially as states start creating laws that require web owners to have a "bit license" or similar.

Bitpay TOS Section 2.1:
We may require additional information about you (including any person signing below or otherwise agreeing to the Terms on behalf of the merchant) such as, for instance, your date of birth, tax identification number or government-issued identification, and we may also obtain information about you from third parties, such as credit bureaus and identity verification services. We have the right to reject your account registration, or to later close your BitPay account, if you do not provide us with accurate, complete and satisfactory information.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Decksperiment on March 15, 2015, 03:06:12 PM
I like this scource, well done mate.. My advice.. forget those that try to get you to use third party websites like ----- or ----- and keep everything on your own pc, just make sure your paying your isp, then you are truely independant of the leecher's who take percentage's based on their greed ;)

And YOU set the price of ANYTHING.. ;)

Edit: What I have yet still to understand is why there is no company dealing with, say I want to bill for adverts appearing on my screen?

That's a hint pro's..


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: dezoel on March 15, 2015, 04:16:13 PM
thanks, very help guide...,
will try into my website, and see what happen then..., :D


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on March 22, 2015, 06:43:07 PM
Added New Video: How To Create Dynamic Bitcoin URIs (https://www.youtube.com/watch?v=timLCHxDae0&index=8&list=PLhWIQKZKupCYogutsw_qRuDWhjaHm19Ie)

Updated tinyStore source files to include basic form validation and integrated bitcoin URI to auto-populate payment amount, payment address and item description during the purchase.



Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Muhammed Zakir on April 24, 2015, 06:49:15 PM
Bump.

Great guide. Keep up the good work.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Scamalert on April 25, 2015, 08:02:06 AM
That is a very nice package, good work.

I have no experience in make BIPS, but I have always thought that if I should make a small webstore, then would I take a very pragmatic approach. I would generate a long list of public address with www.bitaddress.org. and then only expose the public part to the webpage. Use some kinda a java script to present the user with order number and unique public adresss.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Muhammed Zakir on April 25, 2015, 12:51:23 PM
That is a very nice package, good work.

I have no experience in make BIPS, but I have always thought that if I should make a small webstore, then would I take a very pragmatic approach. I would generate a long list of public address with www.bitaddress.org. and then only expose the public part to the webpage. Use some kinda a java script to present the user with order number and unique public adresss.

PHP is better and simple.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Scamalert on April 25, 2015, 12:52:47 PM
That is a very nice package, good work.

I have no experience in make BIPS, but I have always thought that if I should make a small webstore, then would I take a very pragmatic approach. I would generate a long list of public address with www.bitaddress.org. and then only expose the public part to the webpage. Use some kinda a java script to present the user with order number and unique public adresss.

PHP is better and simple.

I never got arond to code PHP, it is on my todo list. Thanks :)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on April 25, 2015, 11:50:37 PM
That is a very nice package, good work.

I have no experience in make BIPS, but I have always thought that if I should make a small webstore, then would I take a very pragmatic approach. I would generate a long list of public address with www.bitaddress.org. and then only expose the public part to the webpage. Use some kinda a java script to present the user with order number and unique public adresss.

Thanks,
You can do it that way too with pre-generated addresses and javascript. In fact I gave that method a try before as well.

I created a javascript file with hundreds of addresses and had it select one at random when the user went to buy a product. It was difficult since I had to constantly update the list and remove old addresses. Also with javascript users can see your code so a malicious user could start sending dust amounts to my addresses to try and mess up my records/bookkeeping. It looked something like this:

JSfiddle example (http://jsfiddle.net/rskkuux0/)

Code:
<html>
<script>
var myArray = [
"1G3L2W6Fkw1NsMwtzcqM6rPQ7wbE3RKBWw",
"1PCNpFrf9NXtHY4u2UDhAhW66ETwHiKvYt",
"1DYLxff6yZ2yUdWH2YjeChqqse3fMkAYtd",
"15YyAKwGff7o4LNmJz7wr4uJaARKdh784A",
"1FEpU3C5gbSeWzhwp6jE9E8Bt1XNwhaJuo",
"15YyLesC4766Sk3ZTPNBcVv9hFHEDN2Xt7", 
"1HXKLsRhL5HKUfViDiHkwvqY92VdXhsrbF"
];
var rand = myArray[Math.floor(Math.random() * myArray.length)];

function popup() {
document.getElementById("result").value = rand;
}
</script>
<center><input type="button" id="buyButton" onclick="popup();" value="BUY">
<p>
Send your BTC to:
<input type="text" align="center" id="result" size="46" readonly />
</p>
</html>


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: SirLolicon on April 26, 2015, 04:46:09 AM
I didn't exactly read everything but dang this is pretty helpful :)
Bookmarked this post


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Scamalert on April 26, 2015, 07:43:49 AM
That is a very nice package, good work.

I have no experience in make BIPS, but I have always thought that if I should make a small webstore, then would I take a very pragmatic approach. I would generate a long list of public address with www.bitaddress.org. and then only expose the public part to the webpage. Use some kinda a java script to present the user with order number and unique public adresss.

Thanks,
You can do it that way too with pre-generated addresses and javascript. In fact I gave that method a try before as well.

I created a javascript file with hundreds of addresses and had it select one at random when the user went to buy a product. It was difficult since I had to constantly update the list and remove old addresses. Also with javascript users can see your code so a malicious user could start sending dust amounts to my addresses to try and mess up my records/bookkeeping. It looked something like this:

JSfiddle example (http://jsfiddle.net/rskkuux0/)

Code:
<html>
<script>
var myArray = [
"1G3L2W6Fkw1NsMwtzcqM6rPQ7wbE3RKBWw",
"1PCNpFrf9NXtHY4u2UDhAhW66ETwHiKvYt",
"1DYLxff6yZ2yUdWH2YjeChqqse3fMkAYtd",
"15YyAKwGff7o4LNmJz7wr4uJaARKdh784A",
"1FEpU3C5gbSeWzhwp6jE9E8Bt1XNwhaJuo",
"15YyLesC4766Sk3ZTPNBcVv9hFHEDN2Xt7", 
"1HXKLsRhL5HKUfViDiHkwvqY92VdXhsrbF"
];
var rand = myArray[Math.floor(Math.random() * myArray.length)];

function popup() {
document.getElementById("result").value = rand;
}
</script>
<center><input type="button" id="buyButton" onclick="popup();" value="BUY">
<p>
Send your BTC to:
<input type="text" align="center" id="result" size="46" readonly />
</p>
</html>

This thread is bookmarked!
Damn, you are giving away a lot of gold nuggets here.

The code you showed is very close to what I had in mind.
I must admit, never though about the negative aspects,
I do consider the dust a big problem, but the adminstration (delete/add) could be a difficult.

Thank you so much for sharing :)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: freemind1 on April 26, 2015, 11:40:11 AM
An excellent guide coinableS, i keep it in my favorites and will share the link to people i know are interested in using it.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: dukeneptun on April 28, 2015, 01:14:10 AM
Excelent guide. Will try to use it on my website .


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Pores on April 28, 2015, 01:57:36 PM
Looks great! Should be pinned IMO


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Crypto9er on April 29, 2015, 01:44:32 AM

Very helpful, Thanks.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on April 29, 2015, 01:54:24 AM
dang this is pretty helpful :)
Bookmarked this post

This thread is bookmarked!
Thank you so much for sharing :)

Great guide. Keep up the good work.

An excellent guide coinableS, i keep it in my favorites

Excelent guide.

Looks great! Should be pinned IMO

Very helpful, Thanks.

WOW, thanks for all the positive feedback everyone!  :)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: wdnj on April 29, 2015, 03:19:23 AM
This is a very valuable information Per interested in using the Bitcoin into his website.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: bteec on April 30, 2015, 02:20:03 PM
Definitely one of the most practical and useful, easy to follow and well documented web guide for bitcoin ecommerce. thank you kind sir!


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on May 09, 2015, 06:15:38 AM
Added Video and Written Lesson on websocket.
Lesson: Bitcoin and Websocket - Real-Time Live Transactions (http://btcthreads.com/websocket.html)
Video: Bitcoin and Websocket - Real-Time Live Transactions (http://youtu.be/jEdfNG-eT8E)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: KespaJail on May 11, 2015, 04:05:12 PM
Added Video and Written Lesson on websocket.
Lesson: Bitcoin and Websocket - Real-Time Live Transactions (http://btcthreads.com/websocket.html)
Video: Bitcoin and Websocket - Real-Time Live Transactions (http://youtu.be/jEdfNG-eT8E)

Very cool and useful videos!

Thanks


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: wdnj on May 14, 2015, 03:00:40 PM
what is the best java or php ???


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on May 14, 2015, 08:44:29 PM
what is the best java or php ???
2 different languages for 2 different purposes.
I like php since I'm comfortable with it for backend web dev.
Java is good for app development.
Not to be confused with javascript which is good for website interactivity.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: wdnj on May 15, 2015, 07:45:24 PM
what is the best java or php ???
2 different languages for 2 different purposes.
I like php since I'm comfortable with it for backend web dev.
Java is god for app development.
Not to be confused with javascript which is good for website interactivity.
thank you for this info


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on May 25, 2015, 03:34:55 PM
With bctalk being down a few days I was able to be productive.

Added some videos on using Chain.com API, and did a mini project to create an address browser.

https://i.imgur.com/8xdwLcY.png?1

Building a Bitcoin Address Browser with Chain.com API:
Videos:
Building a Bitcoin Address Browser (https://www.youtube.com/watch?v=nX7u02KM8Tg)
Building a Bitcoin Address Browser 2 (https://www.youtube.com/watch?v=OUdGJK-sJ2k)
Building a Bitcoin Address Browser 3 (https://www.youtube.com/watch?v=h9Elo57CLoM)
Building a Bitcoin Address Browser 4 (https://www.youtube.com/watch?v=H_XjXoLIQFA)
Example code basic: http://pastebin.com/s2RndVpy
2nd Example using curl. Also using $_GETs to turn each address into a link : http://pastebin.com/GJQXcVck


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on August 01, 2015, 02:57:57 PM
My tutorials have now been featured on Blockchain's blog!

http://blog.blockchain.com/2015/07/30/building-bitcoin-websites-using-the-blockchain-api-video-tutorial/

https://i.imgur.com/W4N698E.png?1
https://i.imgur.com/ih0BCp9.png?1


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: bimasena25 on August 01, 2015, 04:03:31 PM
nice tutorial to give learn who's try implement btc payment at web server, my bro


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: cryptothreads on August 01, 2015, 06:22:41 PM
Good looking post thanks for this!  ;D


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: BitcoinNewsMagazine on August 01, 2015, 07:05:42 PM
If you want to avoid third party payment processors like BitPay there is a new option for WordPress sites using WooCommerce. CoinSimple (https://bitcoinnewsmagazine.com/coinsimple-lets-your-store-accept-bitcoin-to-trezor-wallet/) lets you accept bitcoin payments in your WooCommerce shop. Just install the plugin and integrate it with your Electrum, Armory or Trezor wallet.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Arrakeen on January 04, 2016, 02:28:01 AM
This is an awesome resource, and more people need to see it!!!!!!!!


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: OzbigG on January 05, 2016, 12:05:53 PM
I've just come across this, it's looks really good. I will be doing some bitcoin website work myself soon so I'll give some feedback on how useful I find it.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Scamalert on January 05, 2016, 10:18:32 PM
I've just come across this, it's looks really good. I will be doing some bitcoin website work myself soon so I'll give some feedback on how useful I find it.

Yes, coinableS made a great tutorial here.
Think about it for a sec........ anybody with just a little coding skills and these guides can set up website with a payment processor..... and the best thing is, no banks are involved!!


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: BellaBitBit on January 06, 2016, 12:07:12 AM
This is great thank you, I too just discovered this.  I look forward to integrating Bitcoin into my website.  I am also interested in learning how php fits in with Bitcoin.  I have a lot of reading to do!


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: SparkedDev on January 06, 2016, 01:04:40 AM
Thanks for this ill keep this bookmarked.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on January 06, 2016, 03:16:51 AM
I've just come across this, it's looks really good. I will be doing some bitcoin website work myself soon so I'll give some feedback on how useful I find it.

Yes, coinableS made a great tutorial here.
Think about it for a sec........ anybody with just a little coding skills and these guides can set up website with a payment processor..... and the best thing is, no banks are involved!!

Yes it's really easy to start up your own webstore thanks to bitcoin. Previously having to use 3rd party payment processors was a pain plus they charged expensive fees. You can buy a domain and hosting and have a store up and running the same day, if needed. Bitcoin will rule the future of eCommerce for this one feature alone.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: locopao on January 06, 2016, 09:29:24 PM
Wow!

One of the best tutorials / guide ever read!

Keep up the good work! Very helpful. Added to favorites already for future reading!

Thanks a lot!


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Smack That Ace on January 08, 2016, 10:37:18 PM
Thank you. This is a great help.

Just a question.
I am working on a project that needs a backend developer and help us with integrating bitcoin.
Would you be interested to work with us ?

Regards

Duke


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on January 09, 2016, 01:33:21 AM
Thank you. This is a great help.

Just a question.
I am working on a project that needs a backend developer and help us with integrating bitcoin.
Would you be interested to work with us ?

Regards

Duke

No sorry, you would need a professional to build the back end of an exchange. I'm just a hobbyist.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Smack That Ace on January 09, 2016, 08:09:40 AM
Still thank you for the great effort.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: yslyung on January 09, 2016, 12:27:32 PM
BUMP ! awesome work n dedication thx for sharing.

will make use of it.

good job again OP ! u deserve all the good words here !

sub'd


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: James100t on January 09, 2016, 03:30:14 PM
yes!!Here is many useful link. Finally i got this.Thanks for everything.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Bitcoin Explorer on January 10, 2016, 10:08:37 AM
Nice guides. Implementations in NodeJS would be cool.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on February 22, 2016, 12:29:42 AM
Updated:

Written:
How to use blockchain's new Blockchain Wallet API V2 (http://btcthreads.com/how-to-setup-blockchain-wallet-service/)
Video:
How to use Blockchain Wallet Service API V2 (https://www.youtube.com/watch?v=X8jsaf4sEgs)
Programming a simple bitcoin trading bot with bitfinex API  (https://www.youtube.com/watch?v=rky1EnDqmhI)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Newmba on February 22, 2016, 08:02:02 PM
really nice and most importantly easy. Sometimes coders don't get most are newbs and start with the hard stuff, scaring people away


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: eas on February 22, 2016, 09:35:41 PM
hi,
im new here  ;D
and im a webdeveloper. this post looks interesting.
thanks for it :)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on February 23, 2016, 01:34:50 AM
really nice and most importantly easy. Sometimes coders don't get most are newbs and start with the hard stuff, scaring people away

Thanks. Exactly, I attempt to bridge the gap between experienced developers and beginners. Some API documentation will just say something like "create a POST cURL request that includes your payload with a HMAC sha512 signature of your request, api key and a nonce and include your data in the headers" and then they paste a giant block of code.  Most people won't know where to start. 


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on April 14, 2016, 01:17:52 AM
Update

Just finished a new series on how to integrate and use the bitcoind server on a website.

Bitcoind and JSON-RPC API
1. Intro - https://www.youtube.com/watch?v=cMM-t7azzJE
2. Setting up on a VPS - https://www.youtube.com/watch?v=ygNit44dQHA
3. Customize the bitcoin.conf - https://www.youtube.com/watch?v=W54aRszkEOI
4. Testing with bitcoin command line interface - https://www.youtube.com/watch?v=vmdYD7vutTI
5. Your first JSON-RPC calls - https://www.youtube.com/watch?v=ARL_PvDEBtU
6. More JSON-RPC calls - https://www.youtube.com/watch?v=FyLCKMqkWIA
7. Wallet Notify - https://www.youtube.com/watch?v=o4BPt4RXOm4

Or watch all vids as a playlist:  
https://www.youtube.com/watch?v=cMM-t7azzJE&index=27&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: kaltun on April 14, 2016, 01:10:17 PM
Update

Just finished a new series on how to integrate and use the bitcoind server on a website.

Bitcoind and JSON-RPC API
1. Intro - https://www.youtube.com/watch?v=cMM-t7azzJE
2. Setting up on a VPS - https://www.youtube.com/watch?v=ygNit44dQHA
3. Customize the bitcoin.conf - https://www.youtube.com/watch?v=W54aRszkEOI
4. Testing with bitcoin command line interface - https://www.youtube.com/watch?v=vmdYD7vutTI
5. Your first JSON-RPC calls - https://www.youtube.com/watch?v=ARL_PvDEBtU
6. More JSON-RPC calls - https://www.youtube.com/watch?v=FyLCKMqkWIA
7. Wallet Notify - https://www.youtube.com/watch?v=o4BPt4RXOm4

Or watch all vids as a playlist:  
https://www.youtube.com/watch?v=cMM-t7azzJE&index=27&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV

your great ( but you knew this :) )
thx alot  i am not gonna use it , but its handy if someone needs a good info


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 15, 2016, 03:30:46 AM
Updated:

Written:
How to use blockchain's new Blockchain Wallet API V2 (http://btcthreads.com/how-to-setup-blockchain-wallet-service/)
Video:
How to use Blockchain Wallet Service API V2 (https://www.youtube.com/watch?v=X8jsaf4sEgs)
Programming a simple bitcoin trading bot with bitfinex API  (https://www.youtube.com/watch?v=rky1EnDqmhI)

Thanks for your work and great lessons!

i have some questions...


i have installed blockchain-wallet-service and start on port 3030.
i have aproved api key.

i start php script

<?
$url = "http://127.0.0.1:3030/merchant/my-GUID/login?password=my-PASSWORD&api_code=my-API-CODE";
   $ch = curl_init();
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   curl_setopt($ch, CURLOPT_URL, $url);
   $ccc = curl_exec($ch);
   $json = json_decode($ccc, true);
   echo "<pre>";
   var_dump($json);
   echo "</pre>";
?>

but server answer:
array(1) {
  ["error"]=>
  string(69) "Request to fetch wallet timed out, check that your API key is correct"
}

what is this?
why don't work?

also not work without api key..
http://localhost:3000/merchant/$guid/balance?password=$main_password


but receive api v2 is work well.
and work callback url

please help me..
thanks!



Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 15, 2016, 06:19:16 AM
why use port 3030 for blockchain wallet service api v2?

in manual port is 3000


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on April 15, 2016, 01:14:25 PM
I only switched it to port 3030 because port 3000 was already being used on my system.
The receive payments api key is different than the wallet api key.
https://blockchain.info/api/api_create_code

I made a pull request to the blockchain api repo on github a while back regarding the timeout error.

https://github.com/blockchain/service-my-wallet-v3/blob/master/README.md#troubleshooting

Timeout Errors:

If you are getting a timeout response, additional authorization from your blockchain wallet may be required. This can occur when using an unrecognized browser or IP address. An email authorizing the API access attempt will be sent to the registered user that will require action in order to authorize future requests.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 17, 2016, 05:27:23 AM
Can I use Droplet 512mb 20Gb for bitcoind?

what need config bitcoin.conf?

I install bitcoind and after 5-7 minutes see out of memory: kill process 4150 (bitcoind)
how fix it?
thanks


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on April 17, 2016, 05:47:28 AM
512mb is pretty weak. I recommend the $20/month 2GB of RAM option.   Did you follow the videos and modify your bitcoin.conf so that you aren't eating up all your bandwidth?


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 17, 2016, 05:56:15 AM
512mb is pretty weak. I recommend the $20/month 2GB of RAM option.   Did you follow the videos and modify your bitcoin.conf so that you aren't eating up all your bandwidth?

I follow to your video json-rpc.

my bitcoin.conf
prune=600
maxconnections=12
maxuploadtarget=20
rpcuser=myuser
rpcpassword=mypassword
daemon=1
keypool=10000


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 17, 2016, 05:59:32 AM
and I call getaccountaddress via console.
and get bitcoin address.

after sent to this address 0.0001btc from my blockchain.info account.
but getbalance return 0.000btc.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 17, 2016, 07:38:17 AM
i use code:

...
$newaddress = $bitcoin->getnewaddress();
print_r($newaddress);
...

the script get new address: 1EJJxKyoda4wkSvr1S4F4X5o9hFtaWs38E

i sent to this address 0.0001 btc.

than i call getbalance..
but balance 0.

why?

i try it 2 times..

thanks.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 17, 2016, 08:01:00 AM
and i have question..

after install bitcoind need create multi sig "createmultisig" for receiving payment?
and what need "key" use?     createmultisig   <nrequired> <'["key,"key"]'>

i ask this question because i sent payment to getnewaddress and balance is 0.. where lost payments?

i don't know how resolve this problem.
need help


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on April 17, 2016, 03:20:52 PM
and i have question..

after install bitcoind need create multi sig "createmultisig" for receiving payment?
and what need "key" use?     createmultisig   <nrequired> <'["key,"key"]'>

i ask this question because i sent payment to getnewaddress and balance is 0.. where lost payments?

i don't know how resolve this problem.
need help


Payment is not lost. Your balance will remain zero until your node has reached and validated the block that transaction is in and is fully synced. Since you only started ~ 9 hours ago your node is still syncing and validating, it took mine about 14 hours to fully sync.   If you can do getinfo like you mentioned before, try it again and see what block your node is at. Our current block height is at 407720.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 18, 2016, 07:04:37 AM
How make that script (wallet notify) count confirm?

i need add info to mysql after 3 confirmation..

thanks


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on April 18, 2016, 12:14:15 PM
Wallet notify will trigger twould times. Once when the TX is first seen, and again after first confirmation. If you are looking for 3 you will need to program it manually.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 18, 2016, 01:19:55 PM
Wallet notify will trigger twould times. Once when the TX is first seen, and again after first confirmation. If you are looking for 3 you will need to program it manually.

ok. i will create php script.
but where setup my callback.php? (similar blockchain.info)

can make similar callback blockchain api v2?


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: HackerBOSS on April 21, 2016, 02:15:22 AM
i use gettransaction($txid);

how get my wallet address for receiving? (this method get payer wallet address only)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on April 21, 2016, 12:46:43 PM
i use gettransaction($txid);

how get my wallet address for receiving? (this method get payer wallet address only)

If gettransaction isn't showing you enough info you could use getrawtransaction instead and pick out what you need from the inputs/outs.

Code:
getrawtransaction($txid, 1);


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: grey_net on June 07, 2016, 09:12:59 PM
So we're all at least somewhat techy if we're into bitcoin, but that doesn't mean we all know how to code like a pro.
I believe there is a serious lack of tutorials and step-by-step walk throughs available in the bitcoin ecosystem.

I want to use visual basic .NET (but 2.0), and I find that there are so many endless tutorials on using python and also for C#. But since I'm a big fan of visual basic .NET, I find that its impossible to find guides to do almost anything.

I'm mostly interested in trying to make a raw transaction as a nice challenge, but also sometime maybe begin a project of building a desktop wallet in .NET, or better yet, an open source .NET library on github for versions below 4.0.   :D

It is of course a little bit easier in .NET4.0, as it has many of those bitcoin related crypto functions like BigIntegers, RIPEMD160, ECDSA calculation etc, but i would prefer trying to make it in .NET 2.0 as this way I'm having most of the tools to converting the code to a VB clone with multiOS compiling.  :)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: cloverme on June 08, 2016, 12:33:11 PM
So we're all at least somewhat techy if we're into bitcoin, but that doesn't mean we all know how to code like a pro.
I believe there is a serious lack of tutorials and step-by-step walk throughs available in the bitcoin ecosystem.

I want to use visual basic .NET (but 2.0), and I find that there are so many endless tutorials on using python and also for C#. But since I'm a big fan of visual basic .NET, I find that its impossible to find guides to do almost anything.

I'm mostly interested in trying to make a raw transaction as a nice challenge, but also sometime maybe begin a project of building a desktop wallet in .NET, or better yet, an open source .NET library on github for versions below 4.0.   :D

It is of course a little bit easier in .NET4.0, as it has many of those bitcoin related crypto functions like BigIntegers, RIPEMD160, ECDSA calculation etc, but i would prefer trying to make it in .NET 2.0 as this way I'm having most of the tools to converting the code to a VB clone with multiOS compiling.  :)

So, a few years ago, I moved from vb to c# and never looked back. Don't let c# push you away, I have a couple of recommendations for you if you ever want to switch:
C# & VB.NET Conversion Pocket Reference By Jose Mojica
Build Your Own ASP.NET 4 Web Site Using C# & VB, 4th Edition
Check out George Kimionis's Bitcoin Library for .net - https://github.com/GeorgeKimionis/BitcoinLib

That being said, designing a good web application these days is very difficult in .net, at least up to VS 2013. I haven't tried the later version yet. There's a lack of a good IDE that welds dynamic client facing code (jquery, ajax, etc) with server side code unless you use expensive add-ons (telerik, etc).


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: TheBarMan on June 09, 2016, 11:08:09 PM
thanks a lot for this info my friend, is very important to me.

Have a nice day.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: TheBarMan on June 12, 2016, 07:17:23 AM
Hi my friend, thanks for the manual...

Maybe is time to updete the API blockchain part because this section has change.

Obviously we have to read the new changes and create the things in a new way.

But if you want your beautiful manual up to date, maybe is a good idea that you do it.

Thanks again, im working step by step with your manual and start to jump when the BTC price appears in the page...

hehehe

Cheers

I saw the update in the videos section after write this, im sorry.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on August 16, 2016, 03:32:08 AM
UPDATE:

The Building Bitcoin Websites Book is now available on Amazon!

https://www.amazon.com/Building-Bitcoin-Websites-Beginners-Development/dp/153494544X

This is the thread started it all. It's taken an entire year but I've finally finished my book!

If you liked my tutorials take it a step further and check out my new book, Building Bitcoin Websites: A Beginner's Guide To Bitcoin Focused Web Development. Learn to become a full stack developer while leveraging the use of Bitcoin integration. Take your ideas and turn them into completed working websites!

https://images-na.ssl-images-amazon.com/images/I/51hsSduT-rL.jpg


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: drakker on August 18, 2016, 09:52:24 AM
Thanks for this thread. I'm planning to make a website of mine and I need some of this tutorials. Kudos to you bro. You did a good job here.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: tobasco on August 19, 2016, 01:07:22 PM
Awesome, just ordered the book.

Thanks for everything Kyle.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on August 20, 2016, 12:10:44 AM
Awesome, just ordered the book.

Thanks for everything Kyle.

Very cool! Once you get it please consider leaving a review on Amazon. Reviews really help the book rankings  ;D


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: StarofBTC on August 20, 2016, 04:46:26 AM
So many appreciations for your work coinableS.. and congrats for your new book.. I want to buy it.

Awesome, just ordered the book.

Thanks for everything Kyle.

Very cool! Once you get it please consider leaving a review on Amazon. Reviews really help the book rankings  ;D
I want to buy the book for Bitcoin. why don't you add your book in a bitcoin marketplace instead of amazon which don't accept bitcoin?
It doesn't mean I have any issue that you added the book in amazon, it is fine. but I think you should add this for bitcoin too. (If it is added and I don't know please provide me link/detail)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: fikihafana on August 21, 2016, 03:04:52 AM
So we're all at least somewhat techy if we're into bitcoin, but that doesn't mean we all know how to code like a pro.
I believe there is a serious lack of tutorials and step-by-step walk throughs available in the bitcoin ecosystem.

I can google "how to light my fart on fire" and find endless videos available. There's even a wikipedia page dedicated to it (http://en.wikipedia.org/wiki/Fart_lighting). This is a serious issue that such a ridiculous topic can have so many resources, but something as serious as integrating and building bitcoin websites does not. I know there are a lot of knowledgeable coders out there that know how to make cool bitcoin related websites, but for some reason no one is making tutorials.

Since I began working with bitcoin related websites mid last year I ran into lots of hurdles and I have compiled what I have learned into some step by step videos and written tutorials.

I know I'm not the greatest coder and there are probably better ways to do the things I demonstrate, but as I stated previously I only created these because they don't exist already and I wish they did when I was getting started. If you think I missed something crucial I advise you to create something better because it's something that the community could really use.

==========
My Book: Building Bitcoin Websites  (https://www.amazon.com/Building-Bitcoin-Websites-Beginners-Development/dp/153494544X)
==========

So You Want To Use Bitcoin On Your Website?

Goto my youtube channel to see all videos (https://www.youtube.com/user/m1xolyd1an/videos)

Written Lessons:
Table of Contents (http://btcthreads.com/inst.html)
Lesson 1 - Intro into Bitcoin (http://btcthreads.com/lesson1.html)
Lesson 2 - Intro to Web Wallets (http://btcthreads.com/lesson2.html)
Lesson 3 - Intro to PHP and JSON (http://btcthreads.com/lesson3.html)
Lesson 4 - More PHP and JSON (http://btcthreads.com/lesson4.html)
Lesson 5 - API (http://btcthreads.com/lesson5.html)
Lesson 6 - PROJECT - Create a simple bitcoin webstore (http://btcthreads.com/lesson6.html)
Bitcoin and Websocket - Real-Time Live Transactions (http://btcthreads.com/websocket.html)
Chain.com API - Create a Address & Transaction Browser (http://btcthreads.com/chain.html)
How to use blockchain's new receive payments API with PHP & cURL (http://btcthreads.com/how-to-use-blockchain-receive-payments-api-hd-bip32-xpub/)
How to use blockchain's new Blockchain Wallet API V2 (http://btcthreads.com/how-to-setup-blockchain-wallet-service/)
Intro Bitcoin JavaScript Tutorials (https://coinables.github.io)


Video Lessons:
Lesson 1 - Intro into Bitcoin (https://www.youtube.com/watch?v=4_A_HF5Jpfs)
Lesson 2 - Intro to Web Wallets (https://www.youtube.com/watch?v=H3bvnoWhzoE)
Lesson 3 - Intro to PHP and JSON (https://www.youtube.com/watch?v=_TSJLvYw4p8)
Lesson 4 - More PHP and JSON (https://www.youtube.com/watch?v=-hvbrC5PadI)
Lesson 5 - API (https://www.youtube.com/watch?v=pqUsjrqkH_M)
Lesson 6 - PROJECT - Create a simple bitcoin webstore (https://www.youtube.com/watch?v=9x6OYHEhENc)
How To Create Dynamic Bitcoin URIs (https://www.youtube.com/watch?v=timLCHxDae0&index=8&list=PLhWIQKZKupCYogutsw_qRuDWhjaHm19Ie)
How To Use Blockchain.info Receive Payments API (https://www.youtube.com/watch?v=vWt9wRZ3Hhk) Deprecated as of Dec 7th 2015, see new version
Bitcoin and Websocket - Real-Time Live Transactions (http://youtu.be/jEdfNG-eT8E)
How To Easily Query Bitcoin Blockchain Stats with Blockchain.info API (https://www.youtube.com/watch?v=iQAZ40C9dww)
How To Create A Bitcoin Address Validation Form (https://www.youtube.com/watch?v=YoH_M47lDjY)
How to use blockchain's new receive payments API with PHP & cURL (https://www.youtube.com/watch?v=ASCz5uLs5EE)
How to use Block.IO API to integrate bitcoin payments on your website (https://www.youtube.com/watch?v=0cMhcZb8aNw)
How to use Blockchain Wallet Service API V2 (https://www.youtube.com/watch?v=X8jsaf4sEgs)
Programming a simple bitcoin trading bot with bitfinex API  (https://www.youtube.com/watch?v=rky1EnDqmhI)
How to build your first Bitcoin Chrome Extension (https://www.youtube.com/watch?v=lWC6E7175I8)
How to build a Bitcoin Mining Calculator in PHP (https://www.youtube.com/watch?v=iMuwInCCIYw)
Blockchain WebSocket using Javascript (https://www.youtube.com/watch?v=55xvr2oqMdk)


Building a Bitcoin Address Browser with Chain.com API:
Videos:
Building a Bitcoin Address Browser (https://www.youtube.com/watch?v=nX7u02KM8Tg)
Building a Bitcoin Address Browser 2 (https://www.youtube.com/watch?v=OUdGJK-sJ2k)
Building a Bitcoin Address Browser 3 (https://www.youtube.com/watch?v=h9Elo57CLoM)
Building a Bitcoin Address Browser 4 (https://www.youtube.com/watch?v=H_XjXoLIQFA)
Example code basic: http://pastebin.com/s2RndVpy
2nd Example using curl. Also using $_GETs to turn each address into a link : http://pastebin.com/GJQXcVck

Bitcoind and JSON-RPC API
1. Intro - https://www.youtube.com/watch?v=cMM-t7azzJE
2. Setting up on a VPS - https://www.youtube.com/watch?v=ygNit44dQHA
3. Customize the bitcoin.conf - https://www.youtube.com/watch?v=W54aRszkEOI
4. Testing with bitcoin command line interface - https://www.youtube.com/watch?v=vmdYD7vutTI
5. Your first JSON-RPC calls - https://www.youtube.com/watch?v=ARL_PvDEBtU
6. More JSON-RPC calls - https://www.youtube.com/watch?v=FyLCKMqkWIA
7. Wallet Notify - https://www.youtube.com/watch?v=o4BPt4RXOm4

Building Bitcoin Websites:
Some older videos. This is where I started...
The videos are less structured but still useful.

PLAYLIST: Building Bitcoin Websites (https://www.youtube.com/playlist?list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV)
Contents:
How to get the Price (https://www.youtube.com/watch?v=0XNpy3e0qrQ&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=1)
Create a BTC/USD Converter (https://www.youtube.com/watch?v=DihdEsE8x6U&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=3)
Using Blockchain.info API (https://www.youtube.com/watch?v=dQbah3IYMOs&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=6)
Building A Bitcoin Faucet (https://www.youtube.com/watch?v=ZEQUfPleqaI&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV&index=8)

Again, I know these aren't the best but it's a start in a world without walkthrough tutorials for building bitcoin related websites.
 8)
==========
EDIT: 3/22/15
Updated: tinyStore files to include basic form validation and integrated bitcoin client URI during the purchase.
Added New Video: How To Create Dynamic Bitcoin URIs (https://www.youtube.com/watch?v=timLCHxDae0&index=8&list=PLhWIQKZKupCYogutsw_qRuDWhjaHm19Ie)

EDIT: 4/1/15
Added New Video: How To Use Blockchain.info Receive Payments API (https://www.youtube.com/watch?v=vWt9wRZ3Hhk)

EDIT: 5/8/15
Added Video and Written Lesson on websocket.
Lesson: Bitcoin and Websocket - Real-Time Live Transactions (http://btcthreads.com/websocket.html)
Video: Bitcoin and Websocket - Real-Time Live Transactions (http://youtu.be/jEdfNG-eT8E)

EDIT: 5/25/15
Chain.com API
Videos:
Building a Bitcoin Address Browser (https://www.youtube.com/watch?v=nX7u02KM8Tg)
Building a Bitcoin Address Browser 2 (https://www.youtube.com/watch?v=OUdGJK-sJ2k)
Building a Bitcoin Address Browser 3 (https://www.youtube.com/watch?v=h9Elo57CLoM)
Building a Bitcoin Address Browser 4 (https://www.youtube.com/watch?v=H_XjXoLIQFA)

EDIT: 8/1/2015
My tutorials have now been featured on Blockchain's blog!
http://blog.blockchain.com/2015/07/30/building-bitcoin-websites-using-the-blockchain-api-video-tutorial/

EDIT: 10/17/2015
How To Create A Bitcoin Address Validation Form (https://www.youtube.com/watch?v=YoH_M47lDjY)

EDIT: 11/18/2015
2nd Feature article on blockchain.info's blog
https://blog.blockchain.com/2015/11/18/using-the-blockchain-api-to-determine-the-time-left-until-the-next-bitcoin-block-halving/

EDIT: 12/4/2015
Written: How to use blockchain's new receive payments API with PHP & cURL (http://btcthreads.com/how-to-use-blockchain-receive-payments-api-hd-bip32-xpub/)
Video: How to use blockchain's new receive payments API with PHP & cURL (https://www.youtube.com/watch?v=ASCz5uLs5EE)

EDIT: 1/3/2016
Video: How to use Block.IO API to integrate bitcoin payments on your website (https://www.youtube.com/watch?v=0cMhcZb8aNw)

EDIT: 4/13/2016
Added a video series on bitcoind JSON-RPC API usage.
https://www.youtube.com/watch?v=cMM-t7azzJE&index=27&list=PLhWIQKZKupCYEPtkR8sPLRJ5VDu8NepcV

EDIT: 5/5/2016
How to build your first Bitcoin Chrome Extension
https://www.youtube.com/watch?v=lWC6E7175I8

EDIT: 5/25/2016
How to build a Bitcoin Mining Calculator in PHP
https://www.youtube.com/watch?v=iMuwInCCIYw

EDIT: 7/2/2016
Since I do so much with PHP, I added some simple introduction Bitcoin JavaScript tutorials
https://coinables.github.io

EDIT: 8/15/2016
Added a video on Blockchain WebSocket using Javascript
https://www.youtube.com/watch?v=55xvr2oqMdk
[/quote]

thanks for provide tutorial link, i would help me to improve my wallet. here is mine http://application.id


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: John Constantine on August 21, 2016, 04:05:46 AM
Great, good to be aware of it.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Galer on August 21, 2016, 05:36:12 AM
Wow this is what are looking for add Bitcoin in my website.Very helpful tutorial and well-explained videos.And now im start to add bitcoin as payment processor in my friend website.Thank you.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: crunck on October 24, 2016, 08:56:17 PM
Wow what a great thread, and well done every one that contributes to it ....


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: jooj on October 28, 2016, 12:16:07 PM
 Its a good information you have proved in this thread.
 Thanks


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: blackstar2016 on October 29, 2016, 08:59:16 PM
Interesting topic.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: cloverme on November 14, 2016, 01:14:08 AM
A tip of the hat to you... Found a useful script in your book and implemented part of it (with a little tweaking) into my SpacePirate game. Had no idea about WalletNotify until today, funny how you can work/dev with Bitcoin for years and then you learn something new! :D


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on November 14, 2016, 01:16:51 AM
A tip of the hat to you... Found a useful script in your book and implemented part of it (with a little tweaking) into my SpacePirate game. Had no idea about WalletNotify until today, funny how you can work/dev with Bitcoin for years and then you learn something new! :D

You're completely right! I'm always stumbling across something new as well.
Thanks for stopping by and sharing your success!
Glad I was able to help  ;)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on December 19, 2016, 12:37:14 AM
Some new ones added recently. I'm now doing a series on Bitcoin NodeJS Development
https://www.youtube.com/playlist?list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_

Bitcoin NodeJS Part 1 - Hello World (https://www.youtube.com/watch?v=lUiKpNU2Tx4&index=1&t=3s&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 2 - Express (https://www.youtube.com/watch?v=JoTYbWtxVIY&index=2&t=1s&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 3 - Create a Brain Wallet (https://www.youtube.com/watch?v=gD20zsE3TEE&index=3&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 4 - Callback Functions (https://www.youtube.com/watch?v=l-Fkga-5cVg&index=4&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)
Bitcoin NodeJS Part 5 - Build a Converter App with EJS & Bootstrap (https://www.youtube.com/watch?v=Wwv6pK4PBdw&index=5&list=PLhWIQKZKupCasXHue7itsB0twiIwQtDV_)


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: SparkedDev on December 19, 2016, 12:43:11 AM
Oh nice, ive been tracking this for a while its good to see you keep expanding on this.
Most people wouldn't really want to make how to's unless money is involved.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on December 19, 2016, 01:02:59 AM
Thanks!

Most people wouldn't really want to make how to's unless money is involved.

Yes, I do try to provide as much free information as possible to help others and support the ecosystem. Technically there is money involved though, I do get paid by youtube for letting them play ads. I also have a book for sale. But I do believe it's very important to have this information available for free. We need more of it. To anyone out there that might be a dev -- and I know there are a bunch of good ones in bitcoin -- feel free to post your stuff on this thread and I can add it to the main post. It would be nice to have a mega thread of community created bitcoin web dev guides. Doesn't have to be a video, it can be a blog post instead.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: SparkedDev on December 19, 2016, 01:55:14 AM
Ill keep that in mind since i was thinking of making my own guide so that's a plus.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: Rahar02 on December 19, 2016, 02:39:35 PM
Thanks!

Most people wouldn't really want to make how to's unless money is involved.

Yes, I do try to provide as much free information as possible to help others and support the ecosystem. Technically there is money involved though, I do get paid by youtube for letting them play ads. I also have a book for sale. But I do believe it's very important to have this information available for free. We need more of it. To anyone out there that might be a dev -- and I know there are a bunch of good ones in bitcoin -- feel free to post your stuff on this thread and I can add it to the main post. It would be nice to have a mega thread of community created bitcoin web dev guides. Doesn't have to be a video, it can be a blog post instead.

Thank you for sharing your bitcoin web dev, it's very helpful for us, I'll keep and try it someday with my friends.
Keep looking forward and hopefully more bitcoin developers to share their project experiences. Best regards.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: cocoklogi on December 21, 2016, 07:07:00 PM
Owesome!!!! Bookmarked

Anyway... didn't you interested to translate into another languages? Maybe I can help to translated into Indonesian. Please let me know.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: nemgun on December 22, 2016, 03:14:07 PM
Thanks!

Most people wouldn't really want to make how to's unless money is involved.

Yes, I do try to provide as much free information as possible to help others and support the ecosystem. Technically there is money involved though, I do get paid by youtube for letting them play ads. I also have a book for sale. But I do believe it's very important to have this information available for free. We need more of it. To anyone out there that might be a dev -- and I know there are a bunch of good ones in bitcoin -- feel free to post your stuff on this thread and I can add it to the main post. It would be nice to have a mega thread of community created bitcoin web dev guides. Doesn't have to be a video, it can be a blog post instead.

Could you show us how to use coinB for altcoins ? i would be interested to see if it can be used in nodeJS, CoinB is a great project, i was completly out when i saw the transactions confirmation, i thought it was impossible to do it from a different environment then java or c, you do a great job really.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: UGMZ on December 24, 2016, 12:30:46 AM
Fantastic post. Added to my book mark for further reading.

Is there any info on accepting bitcoin payments for forum subscriptions? via MyBB?

Been searching for a long time on this and have only ever found plugins that accept paypal unfortunately.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on December 24, 2016, 05:23:37 PM
Is there any info on accepting bitcoin payments for forum subscriptions? via MyBB?
Not that I'm aware of. If you can sort out the MyBB code well enough where you can customize it along with adding a new database table for addresses where you can correlate them with the userids and how much they've paid, time since paid, etc. Should be do-able.


Owesome!!!! Bookmarked

Anyway... didn't you interested to translate into another languages? Maybe I can help to translated into Indonesian. Please let me know.

Absolutely, feel free to re-use and translate.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: shield132 on December 25, 2016, 09:10:49 PM
Thanks!

Most people wouldn't really want to make how to's unless money is involved.

Yes, I do try to provide as much free information as possible to help others and support the ecosystem. Technically there is money involved though, I do get paid by youtube for letting them play ads. I also have a book for sale. But I do believe it's very important to have this information available for free. We need more of it. To anyone out there that might be a dev -- and I know there are a bunch of good ones in bitcoin -- feel free to post your stuff on this thread and I can add it to the main post. It would be nice to have a mega thread of community created bitcoin web dev guides. Doesn't have to be a video, it can be a blog post instead.

Yes, in most cases situation is like that but at the same time there are people which are doing such things for free and that must be appreciated by us. I think it will be better if these videos will be translated in another languages and will be pinned in localboards, so it will be easy for any interested person in this task to find information easily in native language.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: intelecticis on February 15, 2017, 05:09:43 PM
Hello,

Today I bought your book from your website (PDF Version).  From here: http://btcthreads.com/book/

I paid before few hours and the transaction have over 6 confirmations, but still have not a mail.

Can you send me the book?

The transactions is: https://blockchain.info/address/15zNpMBpQfND2Xvag3Rrg1Zb3KAPjW86QN

Thanks in advance!


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: nemgun on February 15, 2017, 05:10:59 PM
Hello coinables, i would like to ask you if you are working on new tutorials, maybe new projects, bcoin is awesome by the way.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: coinableS on February 16, 2017, 01:23:39 AM
Hello coinables, i would like to ask you if you are working on new tutorials, maybe new projects, bcoin is awesome by the way.

New tutorials, not right now I've been too busy. It takes a lot of time, I usually write out the lesson and then record it. I've been focusing on the nodejs series, not sure what I'll cover next maybe something like blockcypher API or maybe building raw transactions in nodejs.

New projects, yes one in particular that is consuming a lot of time.

bcoin is awesome! I have installed it, but haven't got to play with it as much as I want to yet.

Thanks for checking in!


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: nemgun on February 16, 2017, 08:13:40 AM
Hello coinables, i would like to ask you if you are working on new tutorials, maybe new projects, bcoin is awesome by the way.

New tutorials, not right now I've been too busy. It takes a lot of time, I usually write out the lesson and then record it. I've been focusing on the nodejs series, not sure what I'll cover next maybe something like blockcypher API or maybe building raw transactions in nodejs.

New projects, yes one in particular that is consuming a lot of time.

bcoin is awesome! I have installed it, but haven't got to play with it as much as I want to yet.

Thanks for checking in!

I am still dreaming of a pure javascript bitcoin daemon, working with nodeJS, this is why i ask for bcoin, i am still fetching the code for some indications on how to do the same for other coins, it may be better such a project for more coins, especially the full node in a browser, what an amazing job they did on it.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: apercoin on February 16, 2017, 12:01:43 PM
Great work! Added to bookmarks!


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: blackphoenixdigital on February 18, 2017, 08:51:32 PM
Hey Coinables, Great thread. Thanks for sharing your work and resources..

Regards,
Kevin
Blackphoenixdigital


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: wizmo on February 18, 2017, 08:56:08 PM
Will try this thanks


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: deadpoolx on February 18, 2017, 09:09:13 PM
Congratulations on your book. It seems that there is a lot of relevant information on this. I think that if Bitcoin becomes more popular you will see the demand for your book increase, as there will be a considerable number of people interested in creating a Bitcoin website.


Title: Re: So You Want To Use Bitcoin On Your Website?
Post by: trinhdinhthang20007 on September 03, 2017, 04:35:08 AM
Great, thank you so much.

I am researching and writing the web, can you refer me some code he completed on CSS, Javacrip ... for you to study it? Thank you very much.