Jump to content

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


John Heenan

Recommended Posts

@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.

Link to comment
Share on other sites

On 4/20/2024 at 4:18 PM, Kurogane said:

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

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...