Bitcoin Forum

Bitcoin => Project Development => Topic started by: puttyking on February 20, 2015, 04:29:14 PM



Title: How to accept bitcoin on a website ?
Post by: puttyking on February 20, 2015, 04:29:14 PM
Is there any way to accept bitcoin on a website automatically without using a 3rd party like bitpay? 


Title: Re: How to accept bitcoin on a website ?
Post by: rapsaodan84 on February 20, 2015, 04:31:09 PM
Is there any way to accept bitcoin on a website automatically without using a 3rd party like bitpay? 

What do you mean automatically? If you don't want to use a third party you need to install a bitcoin wallet on your server and develop the logic to detect payments.


Title: Re: How to accept bitcoin on a website ?
Post by: RodeoX on February 20, 2015, 04:35:37 PM
Yes. You just state: "Bitcoin accepted here".

When someone wants to pay you, email them an address (and QR code is nice). That's all. Of course when you roll your own you will need to set up an exchange account to buy dollars with your BTC. Or find a supplier who also takes BTC and use them. It is also a best practice to use each addy one time. I might further create a ton of addresses from a wallet then take it offline.  

I must say though, BitPay is hard to beat. It's free for the retailer and 3% more profitable than credit cards.


Title: Re: How to accept bitcoin on a website ?
Post by: Q7 on February 20, 2015, 04:38:09 PM
ChangeTip allows you to integrate payment services into your blog and website. You can try that


Title: Re: How to accept bitcoin on a website ?
Post by: ChuckBuck on February 20, 2015, 04:44:06 PM
If you're a legitimate retail business or merchant, I'd think you want to be able to track your payments easily, so why not Coinbase or Bitpay?  I'm sure they have analytical tools and you can see all sorts of statistics on your customer base, so the % they take is well spent.

If you decide just to email your customers a link each time they want to buy something, you'd have to generate a new BTC address or new QR code each time which is pretty inconvenient on your end, or they'll be able to check your available wallet funds.


Title: Re: How to accept bitcoin on a website ?
Post by: 687_2 on February 20, 2015, 04:48:33 PM
Is there any way to accept bitcoin on a website automatically without using a 3rd party like bitpay? 

Yes, it is fairly easy if you are comfortable with PHP.

Using blockchain.info's API:
https://blockchain.info/api/api_receive

This creates a new address for each invoice and forwards the payment to an address you specify. Everything else is just creating a listener for the payment (using blockchain/info's notifier)/updating your database, etc.

To create "fresh" addresses otherwise, you'll probably want to use a Python script that has a wallet's MPK and then keep the rest stored offline. I have an academic example done in PHP where you query a database of pre-generated addresses (not recommended):
https://github.com/jswebdevel/btcbox






Title: Re: How to accept bitcoin on a website ?
Post by: juju on February 20, 2015, 04:49:58 PM
Is there any way to accept bitcoin on a website automatically without using a 3rd party like bitpay? 

I would avoid using Bitpay and Coinbase for payment verification, you need to be a real company, have tax codes and ids etc. Learn about callback handling https://blockchain.info/api/api_receive

I setup payment handling and qr generation on a new Django website I was working on using blockchain.info receive api, it was so easy I was laughing the entire time I set it up.

Alternatively you setup your own node, and send RPC Calls to it too generate new addresses and then check for payments: getreceivedbyaddress <bitcoinaddress> [minconf=1]

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list


Title: Re: How to accept bitcoin on a website ?
Post by: 687_2 on February 20, 2015, 04:50:36 PM
If you're a legitimate retail business or merchant, I'd think you want to be able to track your payments easily, so why not Coinbase or Bitpay? 

Universal human right to privacy - you should not have to divulge your business data to third parties.

Also, third parties suck. They can lock you out for any reason at any time. It's the antithesis of the Bitcoin ethos.



Title: Re: How to accept bitcoin on a website ?
Post by: juju on February 20, 2015, 04:50:57 PM
Is there any way to accept bitcoin on a website automatically without using a 3rd party like bitpay? 

Yes, it is fairly easy if you are comfortable with PHP.

Using blockchain.info's API:
https://blockchain.info/api/api_receive

This creates a new address for each invoice and forwards the payment to an address you specify. Everything else is just creating a listener for the payment (using blockchain/info's notifier)/updating your database, etc.

To create "fresh" addresses otherwise, you'll probably want to use a Python script that has a wallet's MPK and then keep the rest stored offline. I have an academic example done in PHP where you query a database of pre-generated addresses (not recommended):
https://github.com/jswebdevel/btcbox


Dude, you beat me to the punch LOL


Title: Re: How to accept bitcoin on a website ?
Post by: Madness on February 20, 2015, 05:02:25 PM
Is there any way to accept bitcoin on a website automatically without using a 3rd party like bitpay? 

Well it couldn't be easier then this , no ? (If it's for tips,donations etc ... ) Then simply put your Bitcoin adress on your website a you are done . If it's not what you are looking for then you may wanna develop your own if you don't want to use any third party websites .

~ Madness


Title: Re: How to accept bitcoin on a website ?
Post by: najzenmajsen on February 20, 2015, 05:03:22 PM
If you're a legitimate retail business or merchant, I'd think you want to be able to track your payments easily, so why not Coinbase or Bitpay?  I'm sure they have analytical tools and you can see all sorts of statistics on your customer base, so the % they take is well spent.

If you decide just to email your customers a link each time they want to buy something, you'd have to generate a new BTC address or new QR code each time which is pretty inconvenient on your end, or they'll be able to check your available wallet funds.
lol , this is stupid just because you're a legitimate bussines doesnt mean you want others seeing your payments.
this is exactly like saying we could put camera's everywhere because if you're legit it doesnt matter.
Who needs privacy right ? ..


Title: Re: How to accept bitcoin on a website ?
Post by: puttyking on February 20, 2015, 05:30:45 PM
If you're a legitimate retail business or merchant, I'd think you want to be able to track your payments easily, so why not Coinbase or Bitpay?  I'm sure they have analytical tools and you can see all sorts of statistics on your customer base, so the % they take is well spent.

If you decide just to email your customers a link each time they want to buy something, you'd have to generate a new BTC address or new QR code each time which is pretty inconvenient on your end, or they'll be able to check your available wallet funds.

If bitcoin will result in 3rd parties taking over my transactions then to me it has already failed. What is the point of moving from the current banking system to one that will work exactly the same. I am not doing anything illegal and pay all my taxes...

----

Regarding the PHP function is there anything already built offered for free or sold anywhere that works with wordpress ?


Title: Re: How to accept bitcoin on a website ?
Post by: RodeoX on February 20, 2015, 07:08:10 PM
Sounds like you want to do it yourself. Good for you, that's what I would do also. But as I mentioned above it will require some effort on your part. I would:

Set up a secure computer. Like a beat up old PC with a big hard drive. I would install Linux and NOT use winxx or Mac. From here you can install bitcoin QT, create a bunch of receiving addresses and then remove the wallet. Now you have a wallet that is not on the internet but can receive money. You can restart QT and let it sync with the network. It will create a new wallet during this process that you keep empty. It is just there so that you can download the blockchain and stay synced.

Next you may want to set up an account at an exchange based in your country. I would look for one that is above board and trying to comply. You may need this if you plan on turning some of your BTC into dollars. Since businesses need dollars to pay taxes and such it will be worth your time to understand exchanges.

Now your set! Modify your website to have a img like this or something. http://www.tenerifeloca.com/uploads/ownerimages/1015/bitcoin-sm.png

When a customer wants to pay with bitcoin it may be best to handle it manually. I know that sounds wrong for a digital currency but security will be a huge concern. Any plugin or software tool that links to a hot wallet full of bitcoins is going to be a target. I would send the customer a receiving address and ship when the BTC comes in. Unlike a credit card you have money as soon as they pay. No need to worry about their identity or whatever. Why should you care, you have been paid?

Lastly you will need to keep careful records. If you make money on the appreciation in value of any coins then you will owe capitol gains. So you need to know (1.) How much the BTC was worth when the customer bought? (2.) How much was the BTC worth when you traded it later for dollars or goods?

Hope this helps. 


Title: Re: How to accept bitcoin on a website ?
Post by: kori on February 20, 2015, 07:09:48 PM
Connect to a gateway like bitpay or paypal or hire a pro hardcore programmer to make your own script for accepting btcs!


Title: Re: How to accept bitcoin on a website ?
Post by: Madness on February 20, 2015, 07:19:45 PM
Connect to a gateway like bitpay or paypal or hire a pro hardcore programmer to make your own script for accepting btcs!

He just said he don't want to use a Third party service like Bitpay.
@OP , just wanted to add something . If you are selling stuff Digital or whatever , there is a WooCommerce Wordpress plugin available on Wordpress.org , you should check it out . you will get payment to your wallet directly as far as I know and it will need your Master Public key for that .

~ Madness


Title: Re: How to accept bitcoin on a website ?
Post by: najzenmajsen on February 22, 2015, 01:48:50 PM
Connect to a gateway like bitpay or paypal or hire a pro hardcore programmer to make your own script for accepting btcs!

He just said he don't want to use a Third party service like Bitpay.
@OP , just wanted to add something . If you are selling stuff Digital or whatever , there is a WooCommerce Wordpress plugin available on Wordpress.org , you should check it out . you will get payment to your wallet directly as far as I know and it will need your Master Public key for that .

~ Madness
Oo thanks , i will probably use that myself for my future project


Title: Re: How to accept bitcoin on a website ?
Post by: Madness on February 22, 2015, 01:57:49 PM
Connect to a gateway like bitpay or paypal or hire a pro hardcore programmer to make your own script for accepting btcs!

He just said he don't want to use a Third party service like Bitpay.
@OP , just wanted to add something . If you are selling stuff Digital or whatever , there is a WooCommerce Wordpress plugin available on Wordpress.org , you should check it out . you will get payment to your wallet directly as far as I know and it will need your Master Public key for that .

~ Madness
Oo thanks , i will probably use that myself for my future project

No problem mate , Glad I could help you .
Here is the plugin link in case you didn't find it : https://wordpress.org/plugins/bitcoin-payments-for-woocommerce/

~ Madness


Title: Re: How to accept bitcoin on a website ?
Post by: najzenmajsen on February 22, 2015, 02:07:52 PM
Yes. You just state: "Bitcoin accepted here".

When someone wants to pay you, email them an address (and QR code is nice). That's all. Of course when you roll your own you will need to set up an exchange account to buy dollars with your BTC. Or find a supplier who also takes BTC and use them. It is also a best practice to use each addy one time. I might further create a ton of addresses from a wallet then take it offline.  

I must say though, BitPay is hard to beat. It's free for the retailer and 3% more profitable than credit cards.
this might be the easiest way, but far from the best way to accept payments.


Title: Re: How to accept bitcoin on a website ?
Post by: rapsaodan84 on March 04, 2015, 03:23:23 PM
If you're a legitimate retail business or merchant, I'd think you want to be able to track your payments easily, so why not Coinbase or Bitpay?  I'm sure they have analytical tools and you can see all sorts of statistics on your customer base, so the % they take is well spent.

If you decide just to email your customers a link each time they want to buy something, you'd have to generate a new BTC address or new QR code each time which is pretty inconvenient on your end, or they'll be able to check your available wallet funds.

If bitcoin will result in 3rd parties taking over my transactions then to me it has already failed. What is the point of moving from the current banking system to one that will work exactly the same. I am not doing anything illegal and pay all my taxes...

----

Regarding the PHP function is there anything already built offered for free or sold anywhere that works with wordpress ?

If course you don't have to use 3rd parties. There are so many options. You can have cold addresses or install bitcoind to keep it automatic.


Title: Re: How to accept bitcoin on a website ?
Post by: ascisco on March 04, 2015, 03:32:26 PM
Check out Coinsimple.com