<blockquote>
<p>I want to setup this system from scratch</p>
</blockquote>
<p>Existing answers mention BTCPay which is not a system from scratch as OP is asking. It is a popular solution however it requires a node which means you also need a VPS to spin up a node and keep it running all the time, and it means it's more expensive to run the site.</p>
<p>To accept bitcoin on a website all you need to be able to do is present the user with an address to pay to. What happens after that can vary dramatically depending on your use case. It can be as simple as generating a few thousand key pairs upfront save them offline, import the generated addresses into a database, pull a new address for each order, mark the address as used and that's it.  You can use 3rd party APIs to check for transactions/payment, or you can import your addresses to a wallet.</p>
<p>If you're looking to automate things a bit more, for example do <em>something</em> after a payment is received then it gets more complicated and you're probably better off using something like BTCPay or building your own system using a node with JSON-RPC API and walletnotify -- which again means you need a VPS to have a 24/7 node to interact with.</p>

CC BY-SA 4.0
2021-11-04T03:58:29.913Z
2021-11-04T03:58:29.913Z
m1xolyd1an
<p>Yes I can confirm BTCPay Server is a solid and open source solution to accept cryptocurrency payments in your website, whether it is a native one or a CMS like Wordpress.
They have multiple ways to deploy:</p>
<ol>
<li>Manual: You do it all by yourself but it is a pain. I tried myself and I managed to do it by myself, just by trying things.</li>
<li>Using &quot;Configurator&quot;: Easiest way to deploy in my opinion. You just follow instructions on a nice GUI. They will generate a bash script at the end, to use on your VPS.</li>
<li>Docker deployment</li>
</ol>
<p>After deployment, you could create Stores (multiple ones if you want), Apps (they can be for crowdfunding for example), Pay button (it will generate a code to paste to your website so people can pay you with BTC for example), and so much more...</p>
<p>BTCPay Server also supports multiple currencies and multiple crytocurrencies.</p>
<p>For deployment isntructions : <a href="https://docs.btcpayserver.org/Deployment/" rel="nofollow noreferrer">https://docs.btcpayserver.org/Deployment/</a></p>
<p>For support during and after deployment : <a href="https://chat.btcpayserver.org/" rel="nofollow noreferrer">https://chat.btcpayserver.org/</a></p>

CC BY-SA 4.0
2021-11-02T19:09:13.303Z
2021-11-02T19:34:08.957Z
2021-11-02T19:34:08.957Z
nourou4them
<p>To start I have checked this <a href="https://bitcoin.stackexchange.com/questions/69275/how-to-allow-setup-crypto-transfers-payments-on-my-website">question</a>, but the answers were unsatisfactory. Basically, I want to accept payments of ethereum, and bitcoin (these have different integrations). I want to setup this system from scratch (python, javascript). However, searching on the internet I get no clear answers. This is a simple problem (probably addressed multiple times). I would love to hear from anyone who has built such a system or anyone who has resources on how to integrate.
<br>
<br>
The blockchain is hosted on some servers, there is a protocol to download that blockchain (or parts, and check its validity), and parse the relevant transactions. Interacting with the blockchain is coin specific and there has to be respective endpoints. I may be simplifying this, but the fundamental problem is essentially this.
<br>
<br>
Can someone give <i>clear</i> answer to the issue of accept crypto payments (bitcoin and ethereum)? If no simple answer can be given, can I be directed to a developer community who would know the answer?</p>
<p>Cheers.</p>

<payment><website-integration>
How to accept crypto payments to a website?
user638879
# How to accept crypto payments to a website?

(Asked by: username_0 on 2021-11-02)

To start I have checked this [question](https://bitcoin.stackexchange.com/questions/69275/how-to-allow-setup-crypto-transfers-payments-on-my-website), but the answers were unsatisfactory. Basically, I want to accept payments of ethereum, and bitcoin (these have different integrations). I want to setup this system from scratch (python, javascript). However, searching on the internet I get no clear answers. This is a simple problem (probably addressed multiple times). I would love to hear from anyone who has built such a system or anyone who has resources on how to integrate.
  
  
The blockchain is hosted on some servers, there is a protocol to download that blockchain (or parts, and check its validity), and parse the relevant transactions. Interacting with the blockchain is coin specific and there has to be respective endpoints. I may be simplifying this, but the fundamental problem is essentially this.
  
  
Can someone give *clear* answer to the issue of accept crypto payments (bitcoin and ethereum)? If no simple answer can be given, can I be directed to a developer community who would know the answer?

Cheers.

**Tags:** payment, website-integration


---

## 2 answers

### Answer by username_1 on 2021-11-04. Score: 2

> I want to setup this system from scratch

Existing answers mention BTCPay which is not a system from scratch as OP is asking. It is a popular solution however it requires a node which means you also need a VPS to spin up a node and keep it running all the time, and it means it's more expensive to run the site.

To accept bitcoin on a website all you need to be able to do is present the user with an address to pay to. What happens after that can vary dramatically depending on your use case. It can be as simple as generating a few thousand key pairs upfront save them offline, import the generated addresses into a database, pull a new address for each order, mark the address as used and that's it. You can use 3rd party APIs to check for transactions/payment, or you can import your addresses to a wallet.

If you're looking to automate things a bit more, for example do *something* after a payment is received then it gets more complicated and you're probably better off using something like BTCPay or building your own system using a node with JSON-RPC API and walletnotify -- which again means you need a VPS to have a 24/7 node to interact with.


---

### Answer by username_2 on 2021-11-02. Score: 2

Yes I can confirm BTCPay Server is a solid and open source solution to accept cryptocurrency payments in your website, whether it is a native one or a CMS like Wordpress.
They have multiple ways to deploy:

1. Manual: You do it all by yourself but it is a pain. I tried myself and I managed to do it by myself, just by trying things.
2. Using "Configurator": Easiest way to deploy in my opinion. You just follow instructions on a nice GUI. They will generate a bash script at the end, to use on your VPS.
3. Docker deployment

After deployment, you could create Stores (multiple ones if you want), Apps (they can be for crowdfunding for example), Pay button (it will generate a code to paste to your website so people can pay you with BTC for example), and so much more...

BTCPay Server also supports multiple currencies and multiple crytocurrencies.

For deployment isntructions : <https://docs.btcpayserver.org/Deployment/>

For support during and after deployment : <https://chat.btcpayserver.org/>


---

