Bitcoin Forum

Economy => Service Discussion => Topic started by: chateaux on June 13, 2019, 11:06:08 AM



Title: How to accept BTC directly and integrate into an e-commerce site?
Post by: chateaux on June 13, 2019, 11:06:08 AM
I am sure this has been discussed in length.

I would like to understand the end to end process of accepting bitcoin on an e-commerce website without the need to use a third party exchange.

I am hoping there are some opensource code and information available on this, can anyone direct me to some good resources?



Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: bob123 on June 13, 2019, 11:16:09 AM
You have multiple option to achieve that.
The most commons are:

1)
You can use bitcoin core to hold your private keys, and use walletnotify and/or blocknotify to trigger external scripts whenever a payment is received.

2)
You can use electrum to receive payments via creating invoices and being notified semi-automatically.
For more information, take a look at https://docs.electrum.org/en/latest/merchant.html (https://docs.electrum.org/en/latest/merchant.html).


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: poordeveloper on June 13, 2019, 11:23:06 AM
The answer is XPUB. That way the only thing you store on your server is the minimal information to allow your code to create new addresses.

In case you get hacked, you would at most lose the list of addresses of that XPUB - never the funds.

You can use this code as starting point or as tools to generate lists of addresses from your XPUB:

https://github.com/dan-da/hd-wallet-derive
https://github.com/dan-da/hd-wallet-addrs

Then you only need to monitor transactions to those addresses which is pretty simple if you use an API (you don't even need to run any software on your server).

If you really want to also have control on the validation of funds, you'll need a Full Bitcoin Node.


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: HeRetiK on June 13, 2019, 11:23:51 AM
There's also these webshop plugins by blockonomics:

https://www.blockonomics.co/merchants#/page1

I haven't used them myself so far, but this approach seems to be the middle ground between writing your own implementation and relying on a third party exchange. You'll have to look into the details yourself, but from what I've gathered you have full control over your own keys with them earning money via prepaid payment fees.


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: chateaux on June 13, 2019, 11:25:16 AM
The answer is XPUB. That way the only thing you store on your server is the minimal information to allow your code to create new addresses.

In case you get hacked, you would at most lose the list of addresses of that XPUB - never the funds.

You can use this code as starting point or as tools to generate lists of addresses from your XPUB:

https://github.com/dan-da/hd-wallet-derive
https://github.com/dan-da/hd-wallet-addrs

Then you only need to monitor transactions to those addresses which is pretty simple if you use an API (you don't even need to run any software on your server).

If you really want to also have control on the validation of funds, you'll need a Full Bitcoin Node.

This seems like a really good way to do it.

thank you!


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: CryptoReggae on June 13, 2019, 11:55:46 AM
I find BTCPay very useful for me
Github: https://github.com/btcpayserver/btcpayserver
demo: https://mainnet.demo.btcpayserver.org/
You have your own fullnode, with a very intuitive webgui.
A simple and inexpensive installation on hosting can be performed automatically through lunanode.com

I find it interesting, then it clearly depends on the uses and needs. All the previous alternatives that other users have mentioned to you are interesting and you should evaluate everything based on your needs.


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: shield132 on June 13, 2019, 10:26:38 PM
I am sure this has been discussed in length.

I would like to understand the end to end process of accepting bitcoin on an e-commerce website without the need to use a third party exchange.

I am hoping there are some opensource code and information available on this, can anyone direct me to some good resources?


You can use themeforest/codecanyon or any envato's website where plugins and etc are available. Don't know how you can do that without 3rd parties but if you have some money and want to integrate btc payment on your website (which engine do you use?), I think you'll find a lot of needed not only bitcoin but also altcoin paymenth plugins/tools on that website which I stated above.


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: btc_enigma on July 16, 2019, 06:57:58 AM
Yes, you can do this completely using open source code. The complexity of the solution depends on your requirement. Feel free to read the below article that summarizes this

https://blog.blockonomics.co/accepting-bitcoin-do-you-need-a-payment-gateway-832487d3b84c


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: examplens on July 17, 2019, 02:51:49 PM
Yes, you can do this completely using open source code. The complexity of the solution depends on your requirement. Feel free to read the below article that summarizes this

https://blog.blockonomics.co/accepting-bitcoin-do-you-need-a-payment-gateway-832487d3b84c


Do you know any example website where does this work, also some real feedback is desirable?
thanks


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: AdolfinWolf on July 17, 2019, 06:02:00 PM
Yes, you can do this completely using open source code. The complexity of the solution depends on your requirement. Feel free to read the below article that summarizes this

https://blog.blockonomics.co/accepting-bitcoin-do-you-need-a-payment-gateway-832487d3b84c


Do you know any example website where does this work, also some real feedback is desirable?
thanks
I think almost all websites use any of those solutions listed in the blog, so any website where bitcoin is accepted really.

PIA, G2A... etc all use their own node to generate invoices instead of a third party i'm pretty sure..

Either they use Bitpay/Coinpayments, or they have their own node.


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: BitMaxz on July 17, 2019, 09:05:25 PM
This seems like a really good way to do it.

It looks like you are looking for a self-hosted payment processor.

I have bookmarked list of the self-hosted payment processors and I think it will help you to decide which one is the best because it also includes the merchant stories.

Take a look this https://github.com/alexk111/awesome-bitcoin-payment-processors

Since the other payment processor already mentions above it means that the other payment processor under this list is well-known but some of them are not. And most of them are open source so you can decide which one is the best. Make sure to use the one which directly sends the payment to your own wallet.


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: TeslaWatt.com on July 17, 2019, 10:01:47 PM
TeslaWatt is using TokenTrade for this purpose. Great Service. We can recommend.


Title: Re: How to accept BTC directly and integrate into an e-commerce site?
Post by: hugeblack on July 20, 2019, 12:59:29 PM
I would like to understand the end to end process of accepting bitcoin on an e-commerce website without the need to use a third-party exchange.
I am hoping there are some opensource code and information available on this, can anyone direct me to some good resources?
Do not forget that not using a third party means you want to promote privacy, privacy is not a bad thing ----> https://en.bitcoin.it/wiki/Privacy#Why_privacy.
btcpayserver (https://mainnet.demo.btcpayserver.org/) is the best way to accept BTC without the need for a third party + the possibility to enhance privacy through the Tor network and Bitcoin core wallet.
It does not require much technical knowledge You can find some help via YouTube & reddit.com.