Bitcoin Forum

Bitcoin => Project Development => Topic started by: serrveraside on July 20, 2013, 09:23:04 PM



Title: Bitcoin deposit system
Post by: serrveraside on July 20, 2013, 09:23:04 PM
Are there any actual tutorials to follow on setting up a basic setup, where a user can deposit bitcoins to a website?

ie. Address is generated, user deposits coins, confirms in the background.  They are free then to purchase items.  Pref not using using bitcoind running on a server but checking with blockexplorer.com

I have the website pretty much done.  It uses https://easydigitaldownloads.com/ for wordpress, just need to make a payment gateway.  I don't want to use bitpay which is already available.  No fiat just coins as my store will be bitcoin only.

I wouldn't mind offering a bounty if someone could help me out.

\Cheers!


Title: Re: Bitcoin deposit system
Post by: torba on July 20, 2013, 09:43:34 PM
Sites like coinbase and inputs.io make it really easy. But I'll talk about the proccess on inputs.io but the proccess is fairly similiar to coinbase.

To start accepting payments all you have to do is add one of these

Code:
<script src='https://inputs.io/js/buttons.js'></script>
 <a href='https://inputs.io/pay?to=messagecoin' class='inputsio-alt' data-to='messagecoin'>Buy Now</a>
With that code this will appear.
https://i.imgur.com/BJJPKpE.png
Although that be a buy button for me, see the actual inputs.io or coinbase page on how to make a button for precise code.
You add a note to label the transaction to be able to recognize it, inputs.io lets you disable the field so that user can't change it. So let's say a user makes a buy on a button labeled "website buy for user: torba", inputs.io will then visit a url you specify on the settings page with GET data saying that a transaction with amount x, with note "website buy for user: torba" has completed. You just make a script that responds to inputs.io visiting a certain page and thats it.

Again read inputs.io or coinbase documentation on this, I'm just providing the general idea. Coinbase let's you get btc addresses with custom callback links through their api.