Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: jwcastle on July 22, 2015, 01:41:46 AM



Title: accepting BTC on website
Post by: jwcastle on July 22, 2015, 01:41:46 AM

I'm considering adding BTC as a payment method for a website.
Can anyone point me in the right direction as to a PHP library (preferably open source that does not rely on a outside service) that supports BTC transactions and monitor its confirmations.

To mods: I'm not sure if this would be better suited in the Technical Support category, Project Development category, or here. Please move this thread if you deem it better suited in another category.


Title: Re: accepting BTC on website
Post by: ticoti on July 22, 2015, 01:45:03 AM
Why don't you implement it with Bitpay?

I think it is a really good way to do it,they give you many features


Title: Re: accepting BTC on website
Post by: foodstamps on July 22, 2015, 02:01:18 AM
I agree with ticoti, you should go with options that are already there. No need to try to reinvent the wheel.


Title: Re: accepting BTC on website
Post by: Envrin on July 22, 2015, 02:23:52 AM
http://synala.com/

Free, open sourced on Github, and provides everything you need, including a hook system to run additional PHP code when new deposits come in, funds are sent, etc.  It does require Bitcoin Core though on your server, as that's simply still the best and most reliable way to watch the blockchain.  Aside from watching txs flow through the blockchain, and broadcasting sends, everything is done in-house (address generation, creating & signing txs, etc.), and all the PHP libraries are well commented if you're using it for learning purposes.




Title: Re: accepting BTC on website
Post by: jwcastle on July 22, 2015, 05:17:31 AM
Yea, you're right. I don't need to reinvent the the wheel.

I'm hesitant to rely on any type of service, but after looking over Bitpay, I can implement it in less than 15 minutes. If I had to do it all myself, it would take weeks or months.


Title: Re: accepting BTC on website
Post by: funtotry on July 22, 2015, 05:18:44 AM
If you are PHP coder and your website uses PHP, the blockchain.info receive payments API is something worth looking into.
Its pretty easy to use, however it sometimes takes a while for payment to be logged, sometimes up to an hour.
Or you can manually index TXs and create addresses using your wallet.
If you PM me I can help, I have made so many bitcoin deposit/payment methods and its pretty easy.


Title: Re: accepting BTC on website
Post by: Kasawari on July 23, 2015, 05:12:34 AM
this is a good idea but with the delay of the transaction being confirmed that takes sometimes up to an hour, price of BTC may be lower than the expected exchange rate


Title: Re: accepting BTC on website
Post by: AT101ET on July 23, 2015, 06:04:30 AM
There are quite a few sites that allow you to simply implement Bitcoin on your site.
BitPay is probably the most widely known but there are quite a few others too. It's probably best to search through all the payment processors to see who takes the lowest fee.
Most of the processors explain on their sites how to add their scripts to your site.
It's also probably worth looking into something like coinpayments which accepts both BTC and Alfa so it'd expand your sales in the crypto related market. 


Title: Re: accepting BTC on website
Post by: Mickeyb on July 23, 2015, 06:22:25 AM
Yea, you're right. I don't need to reinvent the the wheel.

I'm hesitant to rely on any type of service, but after looking over Bitpay, I can implement it in less than 15 minutes. If I had to do it all myself, it would take weeks or months.

Trust me, save yourself a hassle and just go with the bitpay. When I showed people how to do it, they were amazed on how easy it was. I mean complete newbies got it in less than half an hour.