Edit this page on GitHub (opens in a new tab)
BTCPay Server lets a merchant create invoices and accept ZEC directly into a wallet they control. The Zcash plugin connects each store to a separate receiving account through a viewing key, so the payment server can detect payments without holding the keys needed to spend them.
This guide covers Zcash plugin 2.0.0, released on 30 November 2026, and the official Docker deployment. Version 2.0 adds multiple store wallets, a Zkool GraphQL backend, and mempool notifications. Its declared minimum BTCPay Server version is 2.3.7. See the release notes and plugin requirements.
A fully shielded Zcash payment hides the sender, recipient, and transferred amount from public blockchain observers. The transaction still exists on the blockchain, and information such as its fee remains public. A payment involving a transparent address exposes information on that transparent side. See Anatomy of a Zcash transaction.
Shielding does not remove the information a customer gives a shop. The merchant still knows the order and payment details; the checkout server and any services handling its web traffic also have their own visibility. Protect customer records as well as payment data.
In plugin 2.0, the payment path is:
lightwalletd service.Keep the spending wallet and its seed phrase separate from the server. Import only the Unified Full Viewing Key (UFVK) into BTCPay. A viewing key reveals wallet information but cannot authorize spending. It is still sensitive: someone who obtains it can inspect the activity it covers.
Each store needs its own distinct Zcash account. Multiple stores can share the host's Zkool service, but the host administrator can see their payment information. This is separation between store accounts within a shared service, not secrecy from the server operator. The plugin README describes this arrangement.
Keeping spending keys off the server protects existing funds from being spent with a stolen viewing key. It does not make a compromised checkout harmless: an attacker controlling the website could replace the address shown to future customers.
Use a supported Linux host, administrative shell access, a domain, and persistent storage for BTCPay's database and wallet data. Use a current BTCPay release compatible with the plugin. For the public HTTPS setup below, point the domain at the host and follow BTCPay's port and firewall requirements. Follow the official Docker deployment instructions for operating-system prerequisites and installation of Docker.
The default Zcash configuration uses a public lightwalletd service and does not download a full Zcash node. Running your own Zebra node needs substantially more memory and disk space; use the current Zebra requirements when sizing that host.
Run the following in the administrative shell described by the BTCPay Docker instructions. Replace btcpay.example.com with your domain:
mkdir -p ~/BTCPayServer
cd ~/BTCPayServer
git clone https://github.com/btcpayserver/btcpayserver-docker
cd btcpayserver-docker
export BTCPAY_HOST="btcpay.example.com"
export NBITCOIN_NETWORK="mainnet"
export BTCPAYGEN_CRYPTO1="zec"
export BTCPAYGEN_LIGHTNING="none"
export BTCPAYGEN_REVERSEPROXY="nginx"
. ./btcpay-setup.sh -i
This example enables ZEC. To accept Bitcoin too, run export BTCPAYGEN_CRYPTO2="btc" before running setup and budget for the additional node. On an existing installation, preserve its enabled currencies and other settings; add ZEC in an unused BTCPAYGEN_CRYPTO slot.
Use the official btcpayserver/btcpayserver-docker repository. Its current Zcash fragment runs Zkool GraphQL. Older instructions that use the btcpay-zcash fork's feat/zec branch describe the previous wallet backend.
Open your HTTPS address and register the first account promptly; it becomes the server administrator. Create a store, then open Plugins → Plugin Directory and install Zcash. Confirm that the selected package is 2.0.0, as listed in the plugin directory entry, and restart BTCPay when prompted. Check the result under Plugins → Installed Plugins.
The current Docker fragment provides these BTCPay settings:
BTCPAY_ZEC_WALLET_BACKEND_TYPE=ZkoolGraphQL
BTCPAY_ZEC_WALLET_GRAPHQL_URI=http://zkool_graphql:8000/graphql
The GraphQL endpoint is a wallet-management service, not a public checkout endpoint. The default fragment permits unauthenticated access inside the Docker network and does not publish port 8000 to the host. Keep access limited to trusted services. Use a dedicated receiving database; do not attach a spending-wallet service.
For a separately managed, JWT-authenticated Zkool service, the plugin supports BTCPAY_ZEC_WALLET_GRAPHQL_TOKEN. Protect the connection and manage token expiry as described in the configuration reference.
The standard zcash fragment starts Zkool with --lwd-url https://zec.rocks:443. No extra fragment is needed. Availability and synchronization depend on that service as well as your own host.
Copy the current Zcash fragment before customizing it:
cd ~/BTCPayServer/btcpayserver-docker
cp docker-compose-generator/docker-fragments/zcash.yml \
docker-compose-generator/docker-fragments/zcash-external.custom.yml
In zcash-external.custom.yml, change the URL immediately after --lwd-url to your chosen lightwalletd endpoint. Keep the Zkool service, volumes, and BTCPay GraphQL settings in the file. Use TLS for a connection over a public network.
For an otherwise uncustomized deployment, select it with:
export BTCPAYGEN_EXCLUDE_FRAGMENTS="zcash;zcash-fullnode"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="zcash-external.custom"
. ./btcpay-setup.sh -i
If you already use other optional fragments, retain them in the semicolon-separated lists and remove conflicting Zcash selections. A .env entry named ZCASH_LIGHTWALLETD does not change the endpoint in the current fragment.
The official deployment also includes a Zcash full-node fragment containing Zebra, lightwalletd, and Zkool. Review its current images, resource requirements, and configuration before enabling it. In a configuration without other optional fragments, select it with:
export BTCPAYGEN_EXCLUDE_FRAGMENTS="zcash"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="zcash-fullnode"
. ./btcpay-setup.sh -i
Retain unrelated fragment selections on an existing host. Wait for both the node and the receiving wallet to synchronize before accepting payments. Keep the node RPC, lightwalletd, and wallet-management interfaces private; the bundled local connection is unencrypted. If you expose lightwalletd beyond the trusted host network, follow its production guidance.
uview1. Do not enter a seed phrase, spending key, ordinary payment address, or legacy standalone Sapling viewing key.For example, in Zkool, open the store's account, choose Backup from the account menu, and select Full on the Viewing Keys page. Copy the unified full viewing key, not the incoming-only key. See Zkool's key export instructions.
The plugin checks that the receiving account belongs to this store and rejects overlapping receiving keys already assigned elsewhere. Use distinct accounts for independent stores. See the wallet setup implementation.
Version 2.0 can detect payments before they are mined. Its ZEC settings include a Zero Confirmation option, confirmed-payment options, and a custom confirmation threshold. For a setup that waits for mining, select At Least One or a higher threshold. Zero-confirmation settlement means accepting a payment before inclusion in a block; enable it only when that matches your fulfilment policy.
The 2.0.0 release notes instruct existing operators to disable ZEC payments, let existing invoices expire, and switch to a new wallet and viewing key. The migration documentation distinguishes legacy walletd installations from stores already using Zkool.
For a legacy installation:
btcpay-update.sh in the official Docker deployment to obtain the new wallet fragment. If you use a custom fragment, update that configuration too.To reuse a store that still has the old ZEC configuration, the documented Greenfield operation is DELETE /api/v1/stores/{storeId}/payment-methods/ZEC-CHAIN. Use it after completing the cutover preparations, then import the new key. It removes the store's payment-method setting while preserving invoice history. This is a migration action, not a normal installation step.
A payment sent to an old address still reaches the previous wallet. Reconcile it there; upgrading the plugin does not redirect old addresses or transfer funds.
For stores already using a prerelease Zkool backend, follow the README's separate instructions: preserve the receiving database and the store/account identity. Verified imports can retain their addresses, while an old account number and label alone are insufficient to prove that the account was imported as watch-only. Restore the matching database, wallet data, and plugin together if you roll back.
Create a small invoice in ZEC and pay it from a different wallet. Check the amount and address, the payment shown in the receiving wallet, and the final BTCPay invoice state.
With a confirmed-payment policy, an invoice normally moves from New to Processing when payment is detected, then to Settled when the required confirmation threshold is reached. A visual checkout animation is not a substitute for checking the invoice state. If zero-confirmation settlement is enabled, Settled does not itself prove inclusion in a block.
Before connecting customer orders, also check how your integration handles an expired invoice, a partial payment, and duplicate notifications. Match the order to its invoice and check payment exceptions before fulfilment. See the BTCPay invoice documentation.
Create a store-scoped API key that can create and view invoices. Keep it on your backend. Do not put it into browser JavaScript or a public page. Add other permissions only when the integration needs them.
Send an invoice request to:
POST /api/v1/stores/{storeId}/invoices
Authorization: token {apiKey}
Content-Type: application/json
For example:
{
"amount": "0.01",
"currency": "ZEC",
"metadata": {
"orderId": "order-123"
},
"checkout": {
"paymentMethods": ["ZEC-CHAIN"]
}
}
ZEC-CHAIN is the plugin's payment-method identifier. The response includes id and checkoutLink. Save the invoice ID against the order and send the customer to that checkout link. Create a new invoice for each new order; do not use one completed or expired invoice as a permanent payment button. See the Greenfield API.
Add a webhook in the store settings so your backend receives invoice events. A reliable polling integration can also read invoice status through the API.
For a webhook integration:
BTCPay-Sig header using the webhook secret and HMAC-SHA256 of the original request body.InvoiceSettled and verify the invoice, expected order, amount, currency, and payment exceptions before fulfilment. A detection event alone is insufficient.The Greenfield integration guide covers invoice events and webhook handling.
Use the maintained BTCPay Server for WooCommerce V2 integration. In WordPress, open WooCommerce → Settings → BTCPay Settings and follow its connection wizard. The authorization flow creates the API key and webhook required by the integration. Then enable the gateway under WooCommerce → Settings → Payments.
Enable ZEC in the connected BTCPay store, then place a test order and verify that the payment changes the WooCommerce order status as intended. Follow the official WooCommerce V2 guide.
For a static website or a donation page, use BTCPay's generated Pay Button or a Point of Sale app. These create invoices for payments. For a button, open Plugins → Pay Button, enable public invoice creation for the store as instructed, and copy the generated form. Test the button or app link with ZEC enabled in the store.
An ordinary /i/{invoiceId} link belongs to one invoice. It can be sent to that customer for that payment, but it is not a reusable checkout for every visitor. See Payment Button and Point of Sale.
BTCPay can run on a home server if it stays available when customers pay. A Cloudflare Tunnel can make the web interface reachable without inbound port forwarding. Follow the BTCPay Cloudflare Tunnel instructions for a deployment that matches the Docker stack.
For a manually managed tunnel, cloudflared tunnel login creates an account certificate; cloudflared tunnel create creates the tunnel's <UUID>.json credentials file. Use that actual file path in the configuration and create the DNS route explicitly. These are different credentials and steps; see Cloudflare's local tunnel guide.
Cloudflare becomes an intermediary for the website's HTTPS traffic. A tunnel can conceal the origin address from ordinary visitors, but it does not make the checkout anonymous to Cloudflare. Expose the BTCPay web interface through the tunnel, not the Zkool GraphQL endpoint or node RPC.