Jump to content

BTCPay payment module forces BTC payment method instead of allowing store to use its default


Recommended Posts

Posted

@Kurogane, if you do want an invitation to open a store, your tests are sucessful with LTC anf you want to try othe altcoins then I will enable them in order of your choice until I run out of hard drive space for storing their blockchains.

Currently I have three BTCPay running on three servers, only one of which has enough hard drive space for extra altcoins and I plan on letting this server go in the next few weeks.

Posted
  On 4/20/2024 at 6:18 AM, Kurogane said:

It's ok, i going to test myself when i have time.

Expand  

If you use https://github.com/btcpayserver/btcpayserver-docker then something like the following can be used to add in ltc, dogecoin, dash and monero. I have not tried it so I don't know how much of it will work.

Enabling even one coin at a time puts a heavy strain on server at the start of catching up with its blockchain. It is not just a matter of downloading, the blockchain needs to be verified and a pool of UTXOs (chainstate) needs to be built up. So while you can enable multiple coins at one time, its not ideal.

# to see current settings exported in environment
set | grep BTCPAYGEN

# do not run this sequence one after another. enable one coin only at a time and wait for its blockchain to catch up

# add in ltc
btcpay-down.sh
export BTCPAYGEN_CRYPTO2=ltc
cd $BTCPAY_BASE_DIRECTORY/btcpayserver-docker
. ./btcpay-setup.sh -i


# add in dogecoin
btcpay-down.sh
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;dogecoin"
export BTCPAYGEN_CRYPTO3=doge
cd $BTCPAY_BASE_DIRECTORY/btcpayserver-docker
. ./btcpay-setup.sh -i

# add in dash
btcpay-down.sh
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;dash"
export BTCPAYGEN_CRYPTO4=dash
cd $BTCPAY_BASE_DIRECTORY/btcpayserver-docker
. ./btcpay-setup.sh -i


# add in monero
# see also https://sethforprivacy.com/guides/accepting-monero-via-btcpay-server/
btcpay-down.sh
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;monero"
export BTCPAYGEN_CRYPTO5=xmr
cd $BTCPAY_BASE_DIRECTORY/btcpayserver-docker
. ./btcpay-setup.sh -i


# to only allow btc and ltc
btcpay-down.sh
export BTCPAYGEN_EXCLUDE_FRAGMENTS="dogecoin;dash;monero"
cd $BTCPAY_BASE_DIRECTORY/btcpayserver-docker
. ./btcpay-setup.sh -i


# to only allow btc, ltc and dogecoin
btcpay-down.sh
export BTCPAYGEN_EXCLUDE_FRAGMENTS="dash;monero"
cd $BTCPAY_BASE_DIRECTORY/btcpayserver-docker
. ./btcpay-setup.sh -i


# to reallow dash and monero
btcpay-down.sh
export BTCPAYGEN_EXCLUDE_FRAGMENTS=""
cd $BTCPAY_BASE_DIRECTORY/btcpayserver-docker
. ./btcpay-setup.sh -i

 

Posted

Also, you can monitor how much disk space you have left when a blockchain is being downloaded, verifed and havings its UTXO pool (chainstate) built with with 'df -h'. If too much is going to be used you can disable a blockchain as above.

Posted

I know how btcpay works, i just remove altcoins because i can't used and wasted of space.

Now, i configure three nodes, i commenting out line 268 and test, indeed now show all coins btcpay support and i pay any of them a sucessfully paid.

With a single line, solve all payment supported btcpay.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...