Bitcoin Forum
April 25, 2024, 03:54:59 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to accept BTC directly and integrate into an e-commerce site?  (Read 263 times)
chateaux (OP)
Copper Member
Jr. Member
*
Offline Offline

Activity: 68
Merit: 2

I help my clients with gambling licensing.


View Profile WWW
June 13, 2019, 11:06:08 AM
 #1

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?


Join our affiliate programme: https://fuzebet.com/affiliates/
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714017299
Hero Member
*
Offline Offline

Posts: 1714017299

View Profile Personal Message (Offline)

Ignore
1714017299
Reply with quote  #2

1714017299
Report to moderator
1714017299
Hero Member
*
Offline Offline

Posts: 1714017299

View Profile Personal Message (Offline)

Ignore
1714017299
Reply with quote  #2

1714017299
Report to moderator
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 13, 2019, 11:16:09 AM
 #2

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.

poordeveloper
Hero Member
*****
Offline Offline

Activity: 896
Merit: 527


₿₿₿₿₿₿₿


View Profile WWW
June 13, 2019, 11:23:06 AM
 #3

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.

🎰 Bitcoin Casinos ⭐⭐⭐⭐⭐
.
🔵 Buy Bitcoin (Visa / Mastercard / SEPA / Bank Transfer / Western Union / MoneyGram / RIA)
HeRetiK
Legendary
*
Offline Offline

Activity: 2912
Merit: 2080


Cashback 15%


View Profile
June 13, 2019, 11:23:51 AM
 #4

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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
chateaux (OP)
Copper Member
Jr. Member
*
Offline Offline

Activity: 68
Merit: 2

I help my clients with gambling licensing.


View Profile WWW
June 13, 2019, 11:25:16 AM
 #5

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!

Join our affiliate programme: https://fuzebet.com/affiliates/
CryptoReggae
Member
**
Offline Offline

Activity: 187
Merit: 45


View Profile
June 13, 2019, 11:55:46 AM
Merited by hugeblack (1), Artemis3 (1)
 #6

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.
shield132
Hero Member
*****
Offline Offline

Activity: 2198
Merit: 848



View Profile
June 13, 2019, 10:26:38 PM
 #7

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.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
btc_enigma
Hero Member
*****
Offline Offline

Activity: 688
Merit: 565


View Profile
July 16, 2019, 06:57:58 AM
 #8

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

examplens
Legendary
*
Offline Offline

Activity: 3262
Merit: 3148


Crypto Swap Exchange


View Profile WWW
July 17, 2019, 02:51:49 PM
 #9

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
July 17, 2019, 06:02:00 PM
 #10

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.

BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2942


Block halving is coming.


View Profile WWW
July 17, 2019, 09:05:25 PM
 #11

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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
TeslaWatt.com
Member
**
Offline Offline

Activity: 405
Merit: 10

www.teslawatt.com


View Profile WWW
July 17, 2019, 10:01:47 PM
 #12

TeslaWatt is using TokenTrade for this purpose. Great Service. We can recommend.

hugeblack
Legendary
*
Offline Offline

Activity: 2492
Merit: 3596


Buy/Sell crypto at BestChange


View Profile WWW
July 20, 2019, 12:59:29 PM
 #13

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.

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!