HomeХобби и стильRelated VideosMore From: m1xolyd1an

So You Want To Use Bitcoin On Your Website?

58 ratings | 9894 views
Create a simple bitcoin webstore. 1NPrfWgJfkANmd1jt88A141PjhiarT8d9U This version is outdated and no longer works with blockchain API. Please refer to new V2 blockchain shopping cart: https://github.com/coinables/Blockchain-Receive-Payments-API-Shopping-Cart Follow me on twitter: https://twitter.com/coinableS Sell online with bitcoin Use website to sell with bitcoin How to sell with bitcoin How to make a bitcoin website
Html code for embedding videos on your blog
Text Comments (18)
Inter ludic (1 month ago)
how do you know when its been paid?
Tomas Atria Camucet (9 months ago)
Hi, I am getting an error on your v2 shopping cart "Field 'recd' doesn't have a default value", is there any fix for this?
Tomas Atria Camucet (9 months ago)
Hi, the problem is at the confirm page, I think it is the gap limit. Maybe this code can help to scan empty addresses and only provide empty addresses in range for a certain limit of time or assign it to another user. here is the code: https://github.com/thesoftwarejedi/keyscan thanks for your reply
m1xolyd1an (9 months ago)
Tomas Atria Camucet where are you seeing this error? Which step? Purchase, checkout, admin?
gmediasoft (1 year ago)
Hi m1xolyd1an, it is possible add a QR code on checkout page? In this way it's quickly pay with a smartphone, just scan QR code a pay.
gmediasoft (1 year ago)
Thank you
m1xolyd1an (1 year ago)
An easy way is using google charts API. http://chart.googleapis.com/chart?chs=125×125&cht=qr&chl=BITCOIN_ADDRESS  Also here's a related article I wrote for blockchain.info's blog that might help: https://blog.blockchain.com/2017/01/04/intro-to-bitcoin-development/
#dirtyundead (1 year ago)
where are u from? armenia?
Sarath Vavachan (3 years ago)
"We have emailed you this information if you have to pay later" ain't that a stupid option to have? What if the bitcoin exchange price drop?
m1xolyd1an (3 years ago)
+Sarath Vavachan The same could happen with the GET method of an updated price. At the time of purchase it was advertised at let's say 0.1 BTC, they come back to pay in a few days after obtaining 0.1 BTC and the bitcoin price has increased, so now they have to pay 0.12 for what they were previously told would be 0.1. So now they have to go back to coinbase or other service and buy more bitcoin. It's a double-edge sword, whether you look to fix the price to fiat or to BTC. The best solution to this process is to force them to pay immediately and don't offer the "pay later" option.
Sarath Vavachan (3 years ago)
+m1xolyd1an A good tutorial. It really helped. Thanks. :) but I have to totally disagree with this email with price in bitcoin thing. Bitcoin prices fluctuate heavily all the time.. I would instead give them a link with a transaction-ID(GET variable) that direct to a web page that allows users to make payment with an updated price. An email with a fixed bitcoin price is sure a bad practice in my opinion. No customer likes to pay high price after purchase and no seller likes to loose profit.
m1xolyd1an (3 years ago)
+Sarath Vavachan And what if the price increases? The bitcoin price will fluctuate whether the user pays immediately or later via email. If the webmaster is that concerned over exchange rate volatility they should probably stick with paypal. Sending an email with the payment info is a good way to retain a possibly customer that might not have their bitcoin wallet or funds available at time of purchase. I'd rather lose or gain a few cents from volatility instead of lose a sale.
Terror Byte (3 years ago)
how would I do the php combination in BootStrap instead of CSS?
Terror Byte (3 years ago)
+Sarath Vavachan cool thanks a lot.
Sarath Vavachan (3 years ago)
+Terror Byte same steps.
wofwactory (4 years ago)
Hey bro can you help my friend with a tiny project?
Anderson Juhasc (4 years ago)
I am concerned about the safety of the API data. How do I increase the security?
m1xolyd1an (4 years ago)
I can understand your concern with using your blockchain login info. This information is secured in your php file and processed by the server only and not visible to the client. This is also the method the blockchain.info recommends using.  It’s a bit beyond the scope of a “basic store” but if you are concerned about the MitM vulnerabilities within PHP then there are some other options:   Don’t use blockchain.info at all to generate addresses. Generate thousands offline and store them to a database, then call them from there for each purchase.   You could use curl instead of file_get_contents, just don’t forget to disable allow_url_fopen in your php.ini.   There’s also the PDO option where you can restrict info when using file_get_contents with verify_peer, cafile, CN_match. Relevant reading regarding this (http://phpsecurity.readthedocs.org/en/latest/Transport-Layer-Security-%28HTTPS-SSL-and-TLS%29.html)   Or you could just frequently transfer your funds from your blockchain hot wallet to cold storage.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.