Author

Topic: How to accept BTC directly and integrate into an e-commerce site? (Read 283 times)

legendary
Activity: 2702
Merit: 4002
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 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.
member
Activity: 405
Merit: 10
www.teslawatt.com
TeslaWatt is using TokenTrade for this purpose. Great Service. We can recommend.
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
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.
legendary
Activity: 1946
Merit: 1427
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.
legendary
Activity: 3472
Merit: 3507
Crypto Swap Exchange
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
hero member
Activity: 692
Merit: 569
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
hero member
Activity: 2352
Merit: 905
Metawin.com - Truly the best casino ever
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.
member
Activity: 187
Merit: 45
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.
copper member
Activity: 69
Merit: 2
Professional sports book punter.
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!
legendary
Activity: 3122
Merit: 2178
Playgram - The Telegram Casino
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.
hero member
Activity: 896
Merit: 527
₿₿₿₿₿₿₿
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.
legendary
Activity: 1624
Merit: 2481
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.
copper member
Activity: 69
Merit: 2
Professional sports book punter.
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?

Jump to: