Menu

How to Self-Host BTCPay Server & Accept Monero Payments (Full Setup Guide)

115 views · April 13, 2026 · Accepting Monero

Chapters

  1. 0:00 Intro
  2. 0:53 Choosing & Buying a Hosting Plan
  3. 3:00 Bunny.net DNS
  4. 3:24 Installing the OS
  5. 3:47 SSH Key Setup & First Login
  6. 5:39 Installing BTCPay Server
  7. 7:38 Accessing the Portal & Creating an Account
  8. 7:54 Creating a Store
  9. 8:39 Waiting for Sync
  10. 9:39 Setting Up the Wallet with the Right Block Height
  11. 12:19 Changing the Wallet
  12. 14:09 Creating an Invoice
  13. 15:34 API Keys & Webhooks
  14. 19:33 Point of Sale
  15. 21:20 Maintenance
  16. 22:20 Summary

Description

A complete walkthrough of setting up your own BTCPay Server from scratch — no third-party processors, no KYC, full custody of every payment.

Chapters:

0:00 - Intro
0:53 - Choosing & Buying a Hosting Plan
3:00 - Bunny.net DNS
3:24 - Installing the OS
3:47 - SSH Key Setup & First Login
5:39 - Installing BTCPay Server
7:38 - Accessing the Portal & Creating an Account
7:54 - Creating a Store
8:39 - Waiting for Sync
9:39 - Setting Up the Wallet with the Right Block Height
12:19 - Changing the Wallet
14:09 - Creating an Invoice
15:34 - API Keys & Webhooks
19:33 - Point of Sale
21:20 - Maintenance
22:20 - Summary

Not tax, legal or financial advice.

🔗 Resources mentioned:

Buy VPS: https://privateweb.is/aff.php?aff=2657&pid=570
Bunny.net: https://bunny.net/?ref=3e7kxgyblr
BTCPay Server docs: https://docs.btcpayserver.org
Monerica — Monero merchant directory: https://monerica.com
Commands used: https://blog.monerica.com/articles/btcpay-server-setup-guide-with-private-webhost

❤️If this helped you, please donate to Monerica (thank you!):

8BciMHULmH1Gu6Jrwv1vEJB11f3sNNSGRVU2PKMuaMJ48wndUuNDbaZ94ijH7H3fKQbhkUA5k98ZHUB3cmuoJjwV7WcT3dC

Transcript

0:00 This video is going to show you how to set up a BTC Pay server to accept BTC Pay server is a self-hosted open-source payment processor with no intermediaries, no KYC, it supports Monero, and this video will show you how to set up everything Why self-host with BTC Pay server? There's no third-party fees, so you keep 100% of every payment. You have full custody over everything, it goes directly to your wallet. You have the most privacy, you don't share your IP addresses with a third party.

0:38 It allows you to have a Monero solution that's self-hosted. The customer does not need to provide KYC or have an account. It's censorship-resistant and it's open-source, so you can see and understand how it works. The first thing you're going to need is a hosting plan. In this demonstration, it will be a virtual private server plan with 4 gigs of RAM, 4 CPU cores, 160 gigabytes of storage, and capable of a terabyte of traffic every month. For this video, I will be using Private Web This is an affiliate video.

1:19 Find them on Monerica and click through the affiliate link there. This will help Monerica earn a small commission at no cost to you. You can also go directly to the product page for this product. The default is for 80 gigabytes. However, based on the current blockchain size and the projections, plus the options available, 160 gigabytes should be good for a while. It also gives you more space on the server for anything else you might need to do. Additionally, Private Web Host allows you to host in Germany or in Switzerland. Switzerland is one of the best places to host, and for an additional $5 a month, you can have a DMCA-ignored Swiss server. For this video, I will be using Germany, however.

2:18 Click continue to proceed to checkout. Enter in your information and proceed to You will be presented with a BTC Pay Select Monero and pay for the server. After payment, go into your account and find the service that you have, and then go to view details.

2:56 Here you will see an IP address to be able to associate your domain with your BTC Pay server, create some kind of a host name off your domain, add the IP address, and create the record. In this case, I'm using bunny.net. There is also an affiliate link for that as well. Now that I have the server, I'm going into manage through the control panel. At this point, it's time to install the operating system. Ubuntu long-term support is the recommended choice. Find Ubuntu from the list and choose the newest long-term support version that's available.

3:37 I'm keeping the default for the swap space. From here, I will add an SSH key, which will allow me to log into the server securely. The portal can help you with this, but I will show you how to do it locally. All the commands that are shown will be done using Windows. However, the same commands can be run on Linux and Mac. If you're using Windows, you need OpenSSH installed. If you do not have it installed, open your settings, system, go to optional features, click add a feature, search for OpenSSH, and click install. Open a command prompt as an administrator and create a key with a name. Here, I'm using BTC Pay as the name.

4:24 Make sure you enter your password correctly two times. It will then output a fingerprint, and it will show you where the file was saved. You can print out that value on Linux with cat or on Windows with type. The file path is the one that it has shown. It will vary for you. After you have specified that, it will print out a string. Copy that string, and then in the Private Web Host dashboard, click add Paste in the value, give the key a name, and click save.

5:06 Select the key that you have just Then, click install Ubuntu. Ubuntu will begin installing. Allow the installer to complete. Then, you'll be taken to the dashboard. The dashboard allows you to see different specifications that are on your server, such as bandwidth, CPU usage, and memory. Now, it's time to install the BTC Pay server. Type in SSH, and then root at your IP address.

5:48 Specify yes that you want to continue Then, enter the passphrase for the key that you have set up. You are now in the server. Update the server using the apt update commands. If there is a problem with something that was attempted to be downloaded, you can run an update again with the fix missing flag, and then reboot. Log back into the server. From here, you want to set up the firewall. Run each of these commands separately. You will then be prompted to proceed. Type Y and enter. The firewall is now active and enabled. Change directory, and then clone the BTC Pay server Docker. Then, change directory into the BTC Pay server Docker folder.

6:37 Now, you want to set different variables. The BTC Pay host is the address that you set up, the subdomain at your domain with the A record. The default crypto in this case is XMR, Monero. You can also add Tor. You can access your BTC Pay server over Tor. Set the reverse proxy to Nginx and enable After that, install BTC Pay server's setup script file. This will download different dependencies and set up everything for you. It may take a few minutes.

7:34 This is what it looks like when it's completed. Now, you have BTC Pay server installed on your server. The next step is to access the server through a web browser. When you go to the default page, it will redirect you to register. This is where you will create your admin account. It requires an email and password. Next, you will be creating a store through the dashboard. Give your store a name, a default currency, and set the preferred price source. Kraken is the recommended source. It supports Monero, and you can get the price through it. Click to create the store. Now, go into manage plugins and search for Monero.

8:21 Click to install the Monero plugin. And then, click to restart now. The connection will drop. And after some time, you can click to refresh the page. The wallet now begins synchronization. Synchronizing your node will take a long time. This is because it represents a pruned version of every transaction that has ever happened on the entire Monero blockchain. In testing, it took about 4 Here, you can see the sampling from the beginning to the end, 3 days and 6 and 1/2 hours. In testing the node synchronization a second time with a different hosting company, it took about 7 days. Therefore, Private Web Host was actually much faster. You should budget around a week for this process to take place. You will see a screen like this.

9:17 When completed, you should see a way to enter your wallet details. After synchronization, if you don't see this, restart the server. You may want to check how much disk space is on your server. To do that, SSH into your server and run the command. It will show you what percentage of your disk space is used and how much is available. Now, you want to set up a wallet with the right block height. Do not enable the wallet until the synchronization has completed. The block height should be the current block height or the block height of a newly created wallet. First, get access to the wallet you want to use.

9:56 It's best to use new wallet only for BTC Pay Server. You'll be able to restore the wallet from the seed phrase to other devices, like a mobile wallet, such as Cake Wallet, if you want to, later. To get a new wallet, go to the official Monero website. It's From there, download the GUI wallet and set it up. Go into the settings and you'll be able to access the keys under settings and show seed and keys. This wallet is used for demonstrational purposes only.

10:33 Never show your seed phrase or any secret keys to anyone. On this page, you can see the block height, which is when the wallet was created. If it's a new wallet, use this for the block height. The primary address and secret view key allow BTC Pay Server to generate new sub addresses, which are the unique addresses made for each invoice that BTC Pay Server creates. Once the node is fully synchronized, as indicated by the top and bottom numbers being equal and saying true, you can enter the address, view key and block height. Do not leave the restore height at zero. This is very important. The wallet will get into a bad state on a pruned node where BTC Pay Server cannot detect payments. After entering all the details, click save wallet details.

11:32 From here, you click enable and then set the amount of confirmations you want to require for the payment settlement. 10 is considered safe, but I will use one for quicker demo purposes. Never have zero unless you have a very specific reason to do so. After setting all of these, click save. You may run into an issue where the wallet already has been created and you can't change it correctly and invoices do not show up correctly. You may also run into a situation where you have to re-enable the plugin because the wallet has caused it to crash. If that happens, you need to re-enable it and restart the If you configure the wallet incorrectly, causing it to not detect transactions properly, or you simply want to change the wallet that you have set up, you will need to change the wallet. This cannot be done through the UI. You will need to do this through the command

12:33 line. There is also no way to know exactly which wallet is currently set up after you saved it. You can verify the current wallet address by the primary address by running this command. This will show you what the current wallet To change the wallet, you first stop the BTC Pay Server for the Monero wallet. Then you delete the wallet and keys file for that wallet. After that, you need to delete any pending invoices. If you don't do this, you may not be able to delete the wallet properly. Your invoice data will remain, but this is required to change the wallet properly. After that, restart the BTC Pay Server's Monero wallet. Now, when you go back into the dashboard and you go to your XMR wallet, you can see that it has been reset and that there is nothing there. This is where you can enter the new wallet or the existing wallet that you wanted to use that you set up improperly with the wrong block height. You can get the most recent

13:36 block in the dashboard. Click do set wallet details. Make sure to enable the wallet and also set the amount of confirmations that you want to require. 10 or more is safe. But for the purpose of this setup, only one is required. Make sure to save this so that your wallet will work. Now your wallet is ready. You want to go back and check that your wallet is the current wallet you want. Run the command Now that you have BTC Pay set up and a wallet, it's time to test creating an invoice. If you didn't set the restore height properly, you may see that it says that the wallet is synced when it really isn't. The bottom number should match the top number and it should say synced to truly have it synced.

14:27 Despite this, you can still create an invoice and pay it, but BTC Pay Server will not be able to detect that it has been paid until the node is Here you can see creating an invoice. Manually entering in the order ID, description, amount and other details. After clicking create, I can then go to checkout. This will show a payable address that was created from my wallet address and secret view key. If you pay this, you can see that the exact amount asked for shows up in the wallet, which shows that no fees have been taken out.

15:13 But once your wallet is synchronized, when you go back to pay, you can see that it recognizes that the payment was And then, after one confirmation, that the invoice is paid. Now that you have tested a working invoice through the portal, you open yourself up to other options. In this video, I will show how to use an API key and webhooks for separate application and also how to use your BTC Pay Server as a standalone e-commerce platform.

15:51 This section is about using an API key and webhooks. Go to manage account from your account. From there, click API keys and then generate key. Give your API key a name and then select that you want to have the ability to create an invoice and view existing invoices. No additional permissions are needed. After you create that key, you can click to reveal it. Again, never share this information. This is for demonstration purposes only. Now go back into your settings and get your store ID. You will need this for the API.

16:39 Next, create a webhook. The payload URL is where your postback will occur. It is where BTC Pay Server will send data regarding transactions that occur on your server. It receives the messages that show that an invoice was paid in your system. Save your secret key. Also click automatic redelivery so that data can be sent to your server if it And then add the webhook. Your business will be different, but in the case of Monerica, the base URL, API key, store ID, webhook secret, default currency, success URL where the user is sent and a cancel URL if the person decides not to pay are all configured here. You can see an API client that was created to interface with BTC Pay Server. It can create invoices, get invoice details and validate that a request is valid.

18:00 There are different config setting and several different models that are required to properly interface with BTC Pay Server and a different application. Your business logic will be your own issue to deal with, but you have all the required information to set it up and use it. Now you can see Monerica working with BTC Pay Server. Selecting a sponsorship and then checking out. Now, when attempting to purchase a listing, it goes to BTC Pay Server.

18:43 After paying the test invoice, you can see that the payment was received properly. When the invoice has been paid after one the user is redirected back to Monerica with the order ID that was passed in the URL. You can also see in the BTC Pay dashboard the order ID and all the order details related to this transaction for this invoice. The API is very flexible and you can use it to create your own custom checkout flow on your site over Tor.

19:23 Here you can see Monerica's implementation over Tor with no This is the most advanced and most private option. You don't need to use an API to integrate with BTC Pay Server. BTC Pay Server also offers you a point of sale system built in in the Go to point of sale and give your application a name. First, remove all the existing products. For the purpose of this demo, I will be creating a Monerica t-shirt.

20:17 You can choose a file and upload an You can also give it a description. And then apply to save the item. For this example, go into the server settings and change the setting so that your shop loads at the root of your domain. Here you can see paying for Monerica as well as the invoice and receipt that it has generated.

21:19 Now you have a working BTCPay Server that works with an API and a point of sale system, but you will need to maintain the Go into server settings and maintenance. In this case, there was an existing Click update. The server will begin restarting. After refreshing the server, you can see that it was upgraded. The version number is different than the previous. Another thing you will need to maintain is the Monero plugin. You may see a notification that a new version has been Click the notification or go into the manage plugins section.

22:04 Here you click update on the plugin. From there, you restart the server. Additional maintenance, such as changing your wallet or restarting the server, can be done using SSH. And that's everything you need to start your own business running your own node accepting Monero on your own server. We showed you how to do this with Private Web Host, which has a data center in Switzerland that has DMCA protection. We then showed you how to install the operating system and SSH into it, install everything that's needed from the firewall to the server. After that, we showed how to set up the wallet and common gotchas and issues related to creating and recreating that wallet. We then showed how to test creation of an invoice.

22:56 After that, how to work with the API and webhooks so that your standalone application can use BTCPay Server for processing your payments isolated from your application. Also, how to set up a storefront so you don't even need a separate application. And finally, how to maintain your server by upgrading it. Thank you for watching and go to BTCPay Server for additional resources and visit Monerica to submit your business that you've just created.

Comments (0)

No comments yet. Be the first.

No account or email. You'll prove you hold a PGP key (it's your identity), then write your comment. Comments appear after review.