Bitcoin Forum
October 18, 2017, 09:53:02 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 6 »  All
  Print  
Author Topic: So You Want To Use Bitcoin On Your Website?  (Read 14884 times)
coinableS
Legendary
*
Offline Offline

Activity: 1036



View Profile WWW
March 14, 2015, 11:39:10 PM
 #1

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

So You Want To Use Bitcoin On Your Website?

Goto my youtube channel to see all videos

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

Bitcoin NodeJS Part 1 - Hello World
Bitcoin NodeJS Part 2 - Express
Bitcoin NodeJS Part 3 - Create a Brain Wallet
Bitcoin NodeJS Part 4 - Callback Functions
Bitcoin NodeJS Part 5 - Build a Converter App with EJS & Bootstrap

Written Lessons:
Table of Contents
Lesson 1 - Intro into Bitcoin
Lesson 2 - Intro to Web Wallets
Lesson 3 - Intro to PHP and JSON
Lesson 4 - More PHP and JSON
Lesson 5 - API
Lesson 6 - PROJECT - Create a simple bitcoin webstore
Bitcoin and Websocket - Real-Time Live Transactions
Chain.com API - Create a Address & Transaction Browser
How to use blockchain's new receive payments API with PHP & cURL
How to use blockchain's new Blockchain Wallet API V2
Intro Bitcoin JavaScript Tutorials


Video Lessons:
Lesson 1 - Intro into Bitcoin
Lesson 2 - Intro to Web Wallets
Lesson 3 - Intro to PHP and JSON
Lesson 4 - More PHP and JSON
Lesson 5 - API
Lesson 6 - PROJECT - Create a simple bitcoin webstore
How To Create Dynamic Bitcoin URIs
How To Use Blockchain.info Receive Payments API Deprecated as of Dec 7th 2015, see new version
Bitcoin and Websocket - Real-Time Live Transactions
How To Easily Query Bitcoin Blockchain Stats with Blockchain.info API
How To Create A Bitcoin Address Validation Form
How to use blockchain's new receive payments API with PHP & cURL
How to use Block.IO API to integrate bitcoin payments on your website
How to use Blockchain Wallet Service API V2
Programming a simple bitcoin trading bot with bitfinex API
How to build your first Bitcoin Chrome Extension
How to build a Bitcoin Mining Calculator in PHP
Blockchain WebSocket using Javascript


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
Contents:
How to get the Price
Create a BTC/USD Converter
Using Blockchain.info API
Building A Bitcoin Faucet

Again, I know these aren't the best but it's a start in a world without walkthrough tutorials for building bitcoin related websites.
 Cool
==========
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

EDIT: 4/1/15
Added New Video: How To Use Blockchain.info Receive Payments API

EDIT: 5/8/15
Added Video and Written Lesson on websocket.
Lesson: Bitcoin and Websocket - Real-Time Live Transactions
Video: Bitcoin and Websocket - Real-Time Live Transactions

EDIT: 5/25/15
Chain.com API
Videos:
Building a Bitcoin Address Browser
Building a Bitcoin Address Browser 2
Building a Bitcoin Address Browser 3
Building a Bitcoin Address Browser 4

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

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
Video: How to use blockchain's new receive payments API with PHP & cURL

EDIT: 1/3/2016
Video: How to use Block.IO API to integrate bitcoin payments on your website

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
Bitcoin NodeJS Part 2 - Express
Bitcoin NodeJS Part 3 - Create a Brain Wallet
Bitcoin NodeJS Part 4 - Callback Functions
Bitcoin NodeJS Part 5 - Build a Converter App with EJS & Bootstrap

1508320382
Hero Member
*
Offline Offline

Posts: 1508320382

View Profile Personal Message (Offline)

Ignore
1508320382
Reply with quote  #2

1508320382
Report to moderator
1508320382
Hero Member
*
Offline Offline

Posts: 1508320382

View Profile Personal Message (Offline)

Ignore
1508320382
Reply with quote  #2

1508320382
Report to moderator
1508320382
Hero Member
*
Offline Offline

Posts: 1508320382

View Profile Personal Message (Offline)

Ignore
1508320382
Reply with quote  #2

1508320382
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508320382
Hero Member
*
Offline Offline

Posts: 1508320382

View Profile Personal Message (Offline)

Ignore
1508320382
Reply with quote  #2

1508320382
Report to moderator
1508320382
Hero Member
*
Offline Offline

Posts: 1508320382

View Profile Personal Message (Offline)

Ignore
1508320382
Reply with quote  #2

1508320382
Report to moderator
S4VV4S
Hero Member
*****
Offline Offline

Activity: 630


You make me laugh!


View Profile
March 15, 2015, 09:26:47 AM
 #2

Oh WOW!

There's a fart lighting page on wikipedia?

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

LOL!
Just kidding!  Cheesy Cheesy Cheesy Cheesy Cheesy

Excellent guide!
Well done  Wink

williamho
Member
**
Offline Offline

Activity: 113


View Profile
March 15, 2015, 09:28:22 AM
 #3

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

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
Lesson 1 - Intro into Bitcoin
Lesson 2 - Intro to Web Wallets
Lesson 3 - Intro to PHP and JSON
Lesson 4 - More PHP and JSON
Lesson 5 - API
Lesson 6 - PROJECT - Create a simple bitcoin webstore

Video Lessons:
Lesson 1 - Intro into Bitcoin
Lesson 2 - Intro to Web Wallets
Lesson 3 - Intro to PHP and JSON
Lesson 4 - More PHP and JSON
Lesson 5 - API
Lesson 6 - PROJECT - Create a simple bitcoin webstore
All videos as a Playlist

Building Bitcoin Websites:
Some older videos. This is where I started... The videos are less structured but still useful.
PLAYLIST: Building Bitcoin Websites
Contents:
How to get the Price
Create a BTC/USD Converter
Using Blockchain.info API
Building A Bitcoin Faucet

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.
 Cool



Good complete lesson on how to integrate Bitcoin. Bitpay does the job quite well too Tongue
S4VV4S
Hero Member
*****
Offline Offline

Activity: 630


You make me laugh!


View Profile
March 15, 2015, 09:33:27 AM
 #4

-snip-

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

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

Glucose
Hero Member
*****
Offline Offline

Activity: 844



View Profile
March 15, 2015, 11:04:06 AM
 #5

Thanks. You did a good job there. It looks quite good and really useful. Will try to use it on my website ^^

coinableS
Legendary
*
Offline Offline

Activity: 1036



View Profile WWW
March 15, 2015, 03:02:27 PM
 #6

-snip-

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

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.

Decksperiment
Sr. Member
****
Offline Offline

Activity: 364


Uniting the Power of Sound & Ceation


View Profile
March 15, 2015, 03:06:12 PM
 #7

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 Wink

And YOU set the price of ANYTHING.. Wink

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

BTC: 1654DECHaU4QyYXom9ooRBvt2zmULR3MfZ
dezoel
Legendary
*
Offline Offline

Activity: 812



View Profile
March 15, 2015, 04:16:13 PM
 #8

thanks, very help guide...,
will try into my website, and see what happen then..., Cheesy
coinableS
Legendary
*
Offline Offline

Activity: 1036



View Profile WWW
March 22, 2015, 06:43:07 PM
 #9

Added New Video: How To Create Dynamic Bitcoin URIs

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.


Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
April 24, 2015, 06:49:15 PM
 #10

Bump.

Great guide. Keep up the good work.

Scamalert
Hero Member
*****
Offline Offline

Activity: 491


Captain


View Profile
April 25, 2015, 08:02:06 AM
 #11

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.
Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
April 25, 2015, 12:51:23 PM
 #12

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.

Scamalert
Hero Member
*****
Offline Offline

Activity: 491


Captain


View Profile
April 25, 2015, 12:52:47 PM
 #13

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 Smiley
coinableS
Legendary
*
Offline Offline

Activity: 1036



View Profile WWW
April 25, 2015, 11:50:37 PM
 #14

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

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>

SirLolicon
Sr. Member
****
Offline Offline

Activity: 322

Sound Engineer for Hire


View Profile
April 26, 2015, 04:46:09 AM
 #15

I didn't exactly read everything but dang this is pretty helpful Smiley
Bookmarked this post

Scamalert
Hero Member
*****
Offline Offline

Activity: 491


Captain


View Profile
April 26, 2015, 07:43:49 AM
 #16

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

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 Smiley
freemind1
Legendary
*
Offline Offline

Activity: 1064



View Profile
April 26, 2015, 11:40:11 AM
 #17

An excellent guide coinableS, i keep it in my favorites and will share the link to people i know are interested in using it.

.SPECTRE.                ▄▄███▄▄
            ▄▄███▀▀▀▀▀███▄▄
▄▄      ▄▄███▀▀ ▄▄███▄▄ ▀▀███▄▄      ▄▄
████▄▄  ▀▀▀ ▄▄███████████▄▄ ▀▀▀  ▄▄████
  ▀▀████▄    ▀▀█████████▀▀    ▄████▀▀
 ██▄▄ ▀██ █▄▄    ▀▀▀▀▀    ▄▄█ ██▀ ▄▄██
 ▀▀███ ██ █████▄       ▄█████ ██ ███▀▀
      ██ ███████▄   ▄███████ ██
       ██ ████████   ████████ ██
       ██▄▄ ▀▀████   ████▀▀ ▄▄██
        ▀▀███▄▄ ▀▀   ▀▀ ▄▄███▀▀
            ▀▀███▄▄▄▄▄███▀▀
                ▀▀███▀▀
             │
     │      ███
     │      ███
    │     ███
███  │     ███
███ ███ ███ ███
███ ███ ███ ███
███ ███ ███ ███
███ ███ ███ ███
███ ███     │
███ ███     │
    │
 
▬▬     WHITEPAPER    ▬▬
FACEBOOK     TELEGRAM
TWITTER     SLACK     MEDIUM
.
PRE-SALE.
PUBLIC SALE.
dukeneptun
Legendary
*
Offline Offline

Activity: 1064


View Profile
April 28, 2015, 01:14:10 AM
 #18

Excelent guide. Will try to use it on my website .
Pores
Member
**
Offline Offline

Activity: 70


View Profile
April 28, 2015, 01:57:36 PM
 #19

Looks great! Should be pinned IMO
Crypto9er
Member
**
Offline Offline

Activity: 60


View Profile
April 29, 2015, 01:44:32 AM
 #20


Very helpful, Thanks.
Pages: [1] 2 3 4 5 6 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!