# Payment Gateway - BTC Pay

**URL:** <https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207>\
**Category:** Community Grants\
**Created:** [September 29, 2021, 11:17am UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207 "2021-09-29T11:17:12Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [May 13, 2022, 3:25am UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/22 "2022-05-13T03:25:54Z")

</div>

You can use pre built docker images.

[https://github.com/hhanh00/zcash-btcpay](https://github.com/hhanh00/zcash-btcpay)

Check out the README and let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![\_eric](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/_eric/32/21598_2.png) [@\_eric](https://forum.zcashcommunity.com/u/_eric)\
**Post date:** [May 13, 2022, 1:03pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/23 "2022-05-13T13:03:04Z")

</div>

That’s more helpful, thanks. I followed the readme instructions. I did steps 1,2, and 3, but that’s as far as I can get. zcash-walletd is running, but the message from step 4 does not appear. This is what my terminal looks like.

 ![Screen Shot 2022-05-13 at 8.32.49 AM](https://global.discourse-cdn.com/zcash/original/3X/2/7/278bd1227edad810bd4df1056db88feb80686f49.jpeg)  
Also, when i do step 5 the screen shows an error, maybe because i have not deployed a store yet? Does the method of deployment matter? How did you deploy? I tried deploying with a third party host btcpayjungle but that did not interact with zcash-walletd.

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [May 13, 2022, 1:46pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/24 "2022-05-13T13:46:23Z")

</div>

Please provide the complete log, especially the beginning.

---

<div class="post-metadata">

**Author:** ![\_eric](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/_eric/32/21598_2.png) [@\_eric](https://forum.zcashcommunity.com/u/_eric)\
**Post date:** [May 13, 2022, 2:36pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/25 "2022-05-13T14:36:26Z")

</div>

![1Screen Shot 2022-05-13 at 10.25.43 AM](https://global.discourse-cdn.com/zcash/original/3X/4/a/4a55230e824147e2122082ad73740c9b6717b88c.jpeg)  
 ![2Screen Shot 2022-05-13 at 10.26.07 AM](https://global.discourse-cdn.com/zcash/original/3X/5/e/5ecf460d8815d73aa59753c3d33036d02aeeda51.jpeg)  
 ![3Screen Shot 2022-05-13 at 10.26.28 AM](https://global.discourse-cdn.com/zcash/original/3X/7/6/7680e39b3466e43045c6b00a4c9a31927fbc7c83.jpeg)  
after that it repeats a scan for every block height

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [May 13, 2022, 3:04pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/26 "2022-05-13T15:04:30Z")

</div>

Are you using docker on Apple M1 chip?

---

<div class="post-metadata">

**Author:** ![\_eric](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/_eric/32/21598_2.png) [@\_eric](https://forum.zcashcommunity.com/u/_eric)\
**Post date:** [May 13, 2022, 4:22pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/27 "2022-05-13T16:22:30Z")

</div>

Yes thats right

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [May 14, 2022, 12:35am UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/28 "2022-05-14T00:35:15Z")

</div>

It’s a known bug with QEMU / Docker Mac on M1. Better use Intel/AMD CPU or rebuild from source.

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [May 14, 2022, 12:36am UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/29 "2022-05-14T00:36:21Z")

</div>

For the record, it’s a bug in the virtualization engine used by Docker. Not related to the app itself. [https://gitlab.com/qemu-project/qemu/-/issues/340](https://gitlab.com/qemu-project/qemu/-/issues/340)

---

<div class="post-metadata">

**Author:** ![A4E](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/a4e/32/28027_2.png) [@A4E](https://forum.zcashcommunity.com/u/A4E)\
**Post date:** [June 23, 2023, 3:11pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/30 "2023-06-23T15:11:04Z")

</div>

Hello @hanh!  
Does your product support multiple ZEC wallets in case multiple stores will use our BTC Pay Server? If yes, could you please share the docker-compose.yml example?

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [June 23, 2023, 11:07pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/31 "2023-06-23T23:07:56Z")

</div>

The plugin only supports one key at this time.

---

<div class="post-metadata">

**Author:** ![1337bytes](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/1337bytes/32/18714_2.png) [@1337bytes](https://forum.zcashcommunity.com/u/1337bytes)\
**Post date:** [January 18, 2025, 11:49am UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/32 "2025-01-18T11:49:15Z")

</div>

Hi, there’s a discussion in the BTCPayServer repository around removing Zcash and Monero altcoin support from the core codebase and integrating them as plugins that live in a separate repository – [Remove ZCash and Monero from core code by NicolasDorier · Pull Request #6535 · btcpayserver/btcpayserver · GitHub](https://github.com/btcpayserver/btcpayserver/pull/6535) . They’re looking to transfer ownership of the plugin to someone in the Zcash community and are looking for more active maintenance of the integration – [GitHub - btcpayserver/btcpayserver-zcash-plugin: This plugin extends BTCPay Server to enable users to receive payments via Zcash.](https://github.com/btcpayserver/btcpayserver-zcash-plugin) .

I would be happy to take on some limited testing/maintenance of the integration, however I’m not proficient in C# or Rust. I have published a fork of `zcash-walletd` to Docker: `1337bytes/zcash-walletd` with environment variable arguments for `LWD_URL` and `CONFIRMATIONS`. The existing usage of `lightwalletd.com` in `Rocket.toml` breaks the integration. Also, I plan to write up some documentation to hopefully encourage more usage of the Zcash BTCPayServer integration, and while I ended up focusing on a simpler Node.js REST interface server with bindings to the Zingo Rust lightwallet client for Elemental Pay, I plan to switch my focus to BTCPayServer support for Elemental Pay and can include some support as part of a new grant/revamp of Elemental Pay if there is interest in it.

From my testing the last BTCPayServer version that works is `btcpayserver/btcpayserver:1.13.7-altcoins`, however I’ve run into problems with running it on 2.0.

Unified Address and multi-account support is missing in the current implementation, a revamp of `zcash-walletd` to include this would be great and help with increasing adoption, especially with multi-wallet support in BTCPayServer.

---

<div class="post-metadata">

**Author:** ![machinesunmachine](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/machinesunmachine/32/27149_2.png) [@machinesunmachine](https://forum.zcashcommunity.com/u/machinesunmachine)\
**Post date:** [January 21, 2025, 11:07pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/33 "2025-01-21T23:07:08Z")

</div>

@1337bytes We’re talking about doing this, too! Let’s keep talking to each other about what’s needed so we can pool our efforts. - Sunny @ Birdcalls

---

<div class="post-metadata">

**Author:** ![machinesunmachine](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/machinesunmachine/32/27149_2.png) [@machinesunmachine](https://forum.zcashcommunity.com/u/machinesunmachine)\
**Post date:** [January 21, 2025, 11:09pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/34 "2025-01-21T23:09:34Z")

</div>

@hanh Was there a blocking factor we might not know about yet that stopped you from maintaining this project?

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [January 22, 2025, 12:17am UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/35 "2025-01-22T00:17:38Z")

</div>

it is not broken as far as I know. But the main reason was the lack of usage. It would be good to know how many deployments of BTCPayserver and Zgo are out there.

---

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [January 22, 2025, 3:12pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/36 "2025-01-22T15:12:57Z")

</div>

I know the zechub store uses Zgo

---

<div class="post-metadata">

**Author:** ![dismad](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/dismad/32/18432_2.png) [@dismad](https://forum.zcashcommunity.com/u/dismad)\
**Post date:** [January 22, 2025, 4:56pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/37 "2025-01-22T16:56:23Z")

</div>

Yes, we have one store running and another coming soon 👀 🧑‍🎓 👍

---

<div class="post-metadata">

**Author:** ![nuttycom](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/nuttycom/32/9621_2.png) [@nuttycom](https://forum.zcashcommunity.com/u/nuttycom)\
**Post date:** [January 22, 2025, 8:13pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/38 "2025-01-22T20:13:27Z")

</div>

If you’re interested in taking this over, and moving forward with the plugin development, I’m happy to provide whatever support I can for modernizing the stack, with the caveat that `zcashd` deprecation and NU7 work are taking up essentially all of my time for the next few months so what I can offer is likely limited to occasional review & consultation.

---

<div class="post-metadata">

**Author:** ![machinesunmachine](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/machinesunmachine/32/27149_2.png) [@machinesunmachine](https://forum.zcashcommunity.com/u/machinesunmachine)\
**Post date:** [January 23, 2025, 3:46am UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/39 "2025-01-23T03:46:20Z")

</div>

@hanh, thanks for your reply!

---

<div class="post-metadata">

**Author:** ![1337bytes](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/1337bytes/32/18714_2.png) [@1337bytes](https://forum.zcashcommunity.com/u/1337bytes)\
**Post date:** [January 23, 2025, 11:23am UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/40 "2025-01-23T11:23:05Z")

</div>

The Zcash UI doesn’t run in BTCPayServer 2.0, I have a patched version locally that runs in 2.0, together with address generation. However, when sending a test payment to the address in the invoice UI, I get this error:

```auto
wallet-1 | [2025-...Z INFO rocket::server] Matched: (request_scan) POST /request_scan
wallet-1 | [2025-...Z INFO zcash_walletd::scan] Scanning from <START> to <END>
wallet-1 | [2025-...Z INFO zcash_walletd::scan] Scan tx id: <TRANSACTION_ID>
wallet-1 | [2025-...Z WARN rocket::response::debug] Debug: Unknown transaction format
wallet-1 | [2025-...Z WARN rocket::response::debug] Debug always responds with 500 Internal Server Error.
wallet-1 | [2025-...Z INFO rocket::server] Outcome: Failure
wallet-1 | [2025-...Z WARN rocket::server] No 500 catcher registered. Using Rocket default.
wallet-1 | [2025-...Z INFO rocket::server] Response succeeded.

```

Will spend some more time testing the 2.0 plugin and will publish my UI fix for 2.0 shortly, I have a feeling that porting the RPC client to use `warp-sync` could be worth trying to make maintenance easier.

Best way to increase adoption I feel would be to integrate Zcash as part of the BTCPayServer Docker Compose generation process, which is their recommended setup process, then have it added as a supported altcoin in their docs. After that, can reach out to existing BTCPayServer merchants and ask them to add `ZEC` support.

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [January 23, 2025, 7:33pm UTC](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207/41 "2025-01-23T19:33:38Z")

</div>

This error looks like it’s caused by transactions using v5. I’ll check it out when I have some free time.

[Previous page](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207.md?page=1)

[Next page](https://forum.zcashcommunity.com/t/payment-gateway-btc-pay/40207.md?page=3)
