BTCPay Server na akpaɖe ƒe dzidzimebizniswo ƒe mɔ woaxɔ crypto fexexewo tẽ, manɔ haƒomevi alo ga dzralawo ŋu o. Mɔfiame sia akplɔ wò to BTCPay Server ƒe ɖoɖo blibo me kple Zcash ɣaɣla [shielded] fexexewo ƒe dzidzi ƒe kpekpeɖeŋu.
Dzidzime ƒe asitsotso xɔa crypto fexexewo sɔ gbã. Eƒe mɔ le kabakaba, ele xexea katã me, eye wòate ŋu awɔ dɔ manɔ bankiwo ŋu o. Esia doa vi na asitsotso wɔlawo kple asitsiwo siaa. Ke nyatakaka vevi aɖe li si ame geɖewo mekpena ɖe eŋu o.
Ne wòle order ɖom la, zi geɖe asitsi la naa ame ŋutɔ ƒe nyatakakawo: ŋkɔ, nuɖoƒe si woatsɔ nu yi, kple telefon ƒe xexlẽme. Ne wowɔ fexexe la kple public gaɖoɖowo ƒuƒoƒo ƒe ɖoɖonu [blockchain] abe Bitcoin, Ethereum, alo stablecoinwo siwo le Ethereum alo Tron dzi ene la, gaɖoɖo [transaction] la doa ɖe go tegbee be woate ŋu asrɔ̃e.
Ame sia ame ate ŋu, esi wòmenya nu si woxɔ o hã, awɔ esia:
Esia fia be nu si asitsi aɖe xɔ ko ate ŋu aɖe eƒe ga ƒe ŋutinya blibo afia.
Eye ewɔa dɔ le mɔ ma ke dzi hã. Ne asitsotso wɔla ƒe gaɖoƒe ƒe dzesi va dze ɖoɖonu dzi kpɔ la, woakpɔe nyuie. Hoho ƒe ameawo kple ame bubuwo ate ŋu atia fexexe ƒe ga home, nu dzodzrolawo ƒe dɔwɔwɔ, kple biznis ƒe ga ƒe zɔzɔ ƒe ɖoɖo.
BTCPay Server nye ɖoɖo mamle ga o, eye wòle ha nuɖo agni [decentralized], si woazã axɔ crypto fexexewo.
Menye fexexe ƒe haƒomevi o, eye wòmetsɔa ga aɖeke ɖo o. Fexexewo katã yia tẽ ɖe asitsotso wɔla ƒe gakotoku [wallet] me.
Esia ate ŋu anye ame ŋutɔ ƒe gakotoku alo multisig ƒe ɖoɖo le habɔbɔ aɖe me.
Server la wɔa dɔ le ɖoɖo ƒe dɔwo ŋu:
Nu katã dzea asitsotso ƒe owner ƒe dzikpɔkpɔ te, manɔ subɔsubɔ bubuwo ŋu o.
Zcash nye crypto ga si wowɔ tso zero-knowledge ɖaseɖigbalɛ [proof] wo dzi. Eƒe kpekpeɖeŋu le gaɖoɖo ƒe nɔnɔme si le ɣaɣla blibo me ŋu.
Ne wozã ɣaɣla gaɖoƒe ƒe dzesiwo (tso fifia yi ŋgɔ, míayɔ wo be "gaɖoƒe ƒe dzesiwo" ko) la, wometsɔa ame si dɔ ga la, ame si xɔe, kple gaɖoɖo la ƒe ga home aɖe go le gaɖoɖowo ƒuƒoƒo ƒe ɖoɖonu dzi o.
Na dzidzime ƒe asitsotsrowo la, esia fia be:
Zãla aɖe ɖoa order, eye wòtia Bitcoin alo USDT be woazã awɔ fexexe.
Nyatakakadzraƒe la wɔa fexexe ƒe gaɖoƒe ƒe dzesi eye wòfia ga home la.
Ne wowɔ fexexe la vɔ la, woaɖo gaɖoƒe ƒe dzesi sia ɖe ɖoɖonu dzi, eye wòzu nu si ame katã ate ŋu akpɔ.
Ame si di be yeawɔ vɔ̃ la hiã be wòaƒo order ɖeka ko kple gaɖoƒe ƒe dzesi la be wòakpɔe ƒe gaɖoɖo ƒe ŋutinya blibo tegbee.
Azɔ bu ŋku ɖe nɔnɔme ma ke ŋu kple Zcash.
BTCPay Server wɔa ɣaɣla gaɖoƒe ƒe dzesi. Nuƒola la dɔa fexexe la.
Le ɖoɖonu ƒe akpa la, menye nu aɖeke wɔm o. Public nyatakaka aɖeke mele afi ma si woasrɔ̃ o.
Server la xɔa kpeɖodzi, efɔa eƒo kple order la, eye wòwu dɔ la enu.
Na ame sia ame si mele gota la, eɖe abe nu aɖeke medzɔ o ene.
Ɖoɖo katã li le asitsotso la kple asitsi la dome, abe ale si wòle be wòanɔ ene.
Ɖoɖo sia mede automation alo zãzã ƒe bɔbɔe ɖeɖe o.
Nu katã wɔa dɔ abe ale si wòwɔa dɔ kple crypto ga bubuwo ene, ke data ƒe dododo ƒe afɔku mele o.
BTCPay Server wɔa dɔ abe fexexe ƒe dɔwɔwɔ ƒe ga ƒe lẽ [bridge] le wò e-commerce platform kple gaɖoɖowo ƒuƒoƒo ƒe ɖoɖonu la dome ene. Aleae zɔzɔ la le:
Asitsi la ɖoa order le wò nyatakakadzraƒe dzi (abe WooCommerce, Magento, alo platform sia sia si kple BTCPay ƒe ƒoƒoƒo le ene).
Asitsotso la bia fexexe ƒe invoice tso BTCPay Server gbɔ. Server la wɔa invoice tɔxɛ kple:
u1... ene - si me Orchard (ɣaɣla) xɔla le le gɔmedzedze me.Asitsi la kpɔa fexexe ƒe axa la eye wòdɔa ZEC ɖe gaɖoƒe ƒe dzesi si wonae la dzi.
BTCPay Server le ɖoɖonu la kpɔm, eye wòle fexexe la ƒom kple:
Ne wokpɔ gaɖoɖo la eye wokpe ɖe eŋu vɔ la, BTCPay naa asitsotso la nyanyui.
Asitsi la xɔa fexexe ƒe kpeɖodzi. Ne wòdi la, server la ate ŋu aɖo receipt ɖe email me.
Zɔzɔ blibo sia wɔa dɔ eɖokuiŋutɔ, manɔ haƒomevi alo ga dzralawo ŋu o.
BTCPay Server metsɔa ga aɖeke ɖo o - eƒoa order ƒe ɖoɖo la kple ɖoɖonu la ko le mɔ dedie kple ɣaɣla me.
BTCPay Server menye gakotoku o, eye mehia dzi ƒe kɔkɔe ƒe sɔkewordwo o.
Ga katã yia tẽ ɖe asitsotso wɔla ƒe gakotoku me. Woaɖo dedie le nukpɔsafui [viewing key]-based ƒe ɖoɖo zazã me.
Wowɔa gakotoku la le gɔmedzedze.
Asitsotso wɔla zãa Zcash gakotoku si ƒe kpekpeɖeŋu le nukpɔsafuiwo ŋu - abe Zkool alo Zingo! Wallet ene.
Ɖeɖe blibo le ZecHub.wiki dzi.
BTCPay Server ƒoa eɖokui to nukpɔsafui me.
Nukpɔsafui nye sɔkeword si wole xlẽm ko: ate ŋu akpɔ fexexe siwo gbɔna eye wòawɔ gaɖoƒe ƒe dzesi yeye siwo woaxɔe ɖo,
ke mate ŋu azã ga o. Server la medzraa gadzraɖoɖi nya [seed phrase] alo dzi ƒe kɔkɔe ƒe sɔkewordwo o.
Wokpɔa ɖoɖonu ƒe data to lightwalletd ƒe server me.
Àte ŋu azã public ɣaɣla dzesi ŋɔŋlɔ abe https://zec.rocks ene, alo nàwɔ wò ŋutɔ Zebra + lightwalletd ƒe ɖoɖo na wò ŋutɔ ƒe aƒetɔnyenye blibo.
Ɖoɖoɖo sia ƒe sia xɔ gaɖoƒe ƒe dzesi [address] tɔxɛ.
Nukpɔsafuiwo [Viewing keys] dea mɔ na server la be wòakpɔ Zcash ɣaɣla [shielded] gaɖoƒe ƒe dzesi yeyewo na invoice sia sia,
eye wòawɔ be fexexe ƒe ŋkuɖodzidzɔ le dedie eye wòaxe mɔ na gaɖoƒe ƒe dzesi ƒe gbagbɔgblɔ.
Wòawɔ dzi blibo ɖe ga la dzi.
Ne wowo vɔ̃ server la gɔ̃ hã, ame aɖeke mate ŋu afu wò ga o - fexexe ƒe metadata ko ate ŋu ado go.
Nɔnɔme sia ma infrastructure kple asset ƒe dzikpɔkpɔ ɖe te.
Àte ŋu atrɔe, atsɔe ayi teƒe bubu, alo aɖo BTCPay Server ɖe eya me ake manɔ ga aɖeke ƒe afɔku me o.
Le akpa siwo va yi la me, míeɖe ale si BTCPay Server wɔa dɔ kple Zcash kple nu si ta esia le vevie na ɣaɣla ƒe fexexewo afia. Azɔ ɣeyiɣi va be nàdze dɔ wɔwɔ gɔme.
Wò ŋutɔ ƒe ɖoɖo ate ŋu atɔ ɖe nu geɖewo ŋu:
Ta sia kplɔa ɖoɖo ƒe nɔnɔme siwo katã wozã fifia - tso ɖoɖo bɔbɔewo dzi va se ɖo ɖoɖo siwo wòwɔ wɔa aƒetɔnyenye blibo dzi.
Míakplɔ wò to esiwo gbɔna me:
Mina míayi ɖe ɖoɖo ŋutɔ ŋu. Le akpa sia me, míaɖo BTCPay Server kple Zcash ƒe kpekpeɖeŋu - le VPS yeye dzi alo to ZEC ƒe kpekpeɖeŋu tsɔtsɔ kpe ɖe instance si le asiwò xoxo ŋu.
Ne BTCPay Server le dɔ wɔm le asiwò xoxo (abe BTC alo Lightning ta ene) la, mehia be nàɖo nu katã ake o - dzu ZEC ƒe plugin la ko.
Míakplɔ wò to ɖoɖo vovovowo me, tso ɖoɖo bɔbɔe siwo zãa public lightwalletd ƒe ɣaɣla dzesi ŋɔŋlɔ dzi va se ɖo ɖoɖo siwo wò ŋutɔ ƒe ɣaɣla dzesi ŋɔŋlɔ blibo le.
Tiaƒe nyuitɔ atɔ ɖe afi si wò server la le kple ale si wòdi be wòanɔ abɔbɔɖeɖe si tso infrastructure si le gota la ŋu.
Hafi nàɖo nu la, kpɔ be esiwo gbɔna le asiwò:
git, docker, kple docker-compose woɖoBe nàɖo BTCPay Server kple Zcash ƒe kpekpeɖeŋu la, wòahiã esiwo gbɔna:
Míede asi be nàzã Ubuntu Server 22.04 LTS ƒe ɖoɖo bɔbɔe.
VPS ƒe subɔla sia sia si naa IP gaɖoƒe ƒe dzesi si woma na wò la awɔ dɔ.
Nusiwo hiã le gɔmedzedze:
Ɖoɖo sia de na ne èzã lightwalletd na Zcash.
Ne wòdi be nàwɔ Zcash ƒe ɣaɣla dzesi ŋɔŋlɔ blibo la, wòahiã GB 300 koŋ ƒe disk teƒe si le blibom.
Le wò DNS ƒe subɔla ƒe ɖoɖowo ƒuƒopé [dashboard] me la, wɔ A record na subdomain aɖe
(abe btcpay.example.com ene) si tsɔa asi ɖe wò VPS ƒe IP gaɖoƒe ƒe dzesi ŋu.
Wozãa domain sia be woato browser me akpɔ BTCPay Server
eye be woawɔ SSL certificate si womale ga o to Let's Encrypt me eɖokuiŋutɔ.
Be nàɖo BTCPay Server la, ele be nàƒo wò VPS la to SSH me.
Tso wò terminal me, wɔ esia:
ssh root@YOUR_SERVER_IP
Ne èzã macOS, Linux, alo WSL le Windows dzi la, SSH le terminal la me xoxo. Le Windows si me nu bubu mele o dzi la, zã SSH ƒe client abe PuTTY ene.
Wɔ dɔwɔƒe ƒe directory eye nàtsɔ BTCPay Server ƒe Docker ƒe deployment la:
mkdir BTCPayServer
cd BTCPayServer
git clone https://github.com/btcpayserver/btcpayserver-docker
cd btcpayserver-docker
Trɔ btcpay.example.com kple wò domain ŋutɔ ƒe ŋkɔ:
export BTCPAY_HOST="btcpay.example.com"
export NBITCOIN_NETWORK="mainnet"
export BTCPAYGEN_CRYPTO1="btc"
export BTCPAYGEN_CRYPTO2="zec"
export BTCPAYGEN_REVERSEPROXY="nginx"
export BTCPAYGEN_LIGHTNING="none"
export BTCPAYGEN_CRYPTO3="ltc"
export BTCPAYGEN_CRYPTO4="xmr"
Àte ŋu akpe coin yeyewo ɖe eŋu ɣeyiɣi sia sia ne nàtsɔ variables si dze eyome export eye nàwɔ setup script la ake:
. ./btcpay-setup.sh -i
Le mɔfiame sia ta la, míatsɔ ŋku aɖe Zcash ko ŋu.
Wɔ setup script la be nàtu eye nàdze server la gɔme:
. ./btcpay-setup.sh -i
Script la aɖo dependencywo, awɔ docker-compose.yml, adze subɔsubɔwo gɔme, eye wòaɖo systemd.
Esia xɔa miniti 5 ƒe ɣeyiɣi.
Ne wowu enu la, wò BTCPay Server ƒe instance anɔ afi sia:
https://btcpay.example.com
cd ~/BTCPayServer/btcpayserver-docker
btcpay-down.sh
. ./btcpay-setup.sh -i
Emegbe yi ɖe akpa si gbɔna la me be nàɖo Zcash le BTCPay Server ƒe web nɔnɔmetata me.
Ne wòdi be yeaɖo ŋu ɖe dukɔ bliboa ƒe lightwalletd ɣaɣla dzesi ŋɔŋlɔwo dzi o la, àte ŋu aɖo wò ŋutɔ ƒe Zcash ɣaɣla dzesi ŋɔŋlɔ blibo kple lightwalletd ɖe server ma ke dzi.
Esia nana be wòawo ŋutɔ ƒe aɖaba blibo anɔ asiwò - ametɔ bubu ƒe ɖoɖowo mele o, dziɖoɖo mehia o.
Zcash ɣaɣla dzesi ŋɔŋlɔ blibo (Zebra + lightwalletd) hia disk ƒe teƒe 300+ GB fifia, eye wòle dzidzime.
Mamáe nye:
Tsɔ esiae kpe ɖe wò environment ƒe ɖoɖo ŋu be nàdzu ɣaɣla dzesi ŋɔŋlɔ blibo ƒe ɖoɖo dzi:
export BTCPAYGEN_EXCLUDE_FRAGMENTS="zcash"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="zcash-fullnode"
Esia atsɔ zcash-fullnode ƒe fragment akpe ɖe eŋu, si adze zebrad kple lightwalletd siaa egɔme le BTCPay Server me.
. ./btcpay-setup.sh -i
Script la awɔ esiawo:
lightwalletd instance ŋuLe nyateƒe geɖe me la, woƒe ŋutɔ wɔnɔn blibo mele be wòhia o — eye asitsalawo ate ŋu madi be woanɔ ɣeyiɣi kple disk ƒe teƒe na Zcash ɣaɣla dzesi ŋɔŋlɔ blibo [full node] ƒe dɔwɔwɔ o.
Le gɔmedzedze me la, BTCPay Server ɖea eɖokui kple lightwalletd ɣaɣla dzesi ŋɔŋlɔ [node] si le amewo katã ƒe dzidzɔ me be wòawɔ ɣaɣla [shielded] fexexe [payment]wo ƒe dɔ, eye wòmeɖe gaɖoɖowo ƒuƒoƒo ƒe ɖoɖonu [blockchain] blibo la ɖe o.
Endpoint si wotsɔna le gɔmedzedze me nye:
https://zec.rocks:443
Ke hã, àte ŋu aɖo BTCPay Server be wòawɔ kadodo kple ŋgɔ ƒe lightwalletd ɣaɣla dzesi ŋɔŋlɔ ɖe sia ɖe, abe:
https://lightwalletd.example:443
Akpa sia fia ale si nàwɔe kple Docker ƒe fragment si wò ŋutɔ wɔ.
Le wò BTCPayServer project ƒe directory me, wɔ fragment ƒe faɛl si wò ŋutɔ:
cd ~/BTCPayServer/btcpayserver-docker
mkdir -p docker-compose-generator/docker-fragments
nano docker-compose-generator/docker-fragments/zcash-lightwalletd.custom.yml
Tsɔ emegbe ƒe emenyawo kpe ɖe eŋu:
exclusive:
- zcash
exclusive ƒe directive la na be fragment ɖeka koe ate ŋu anɔ dɔ wɔm si ƒe label sɔ kple etɔ (zcash le nya sia me).
Esia doa mɔ na ɖoɖo ƒe dzremetoto - le kpɔɖeŋu me, mèate ŋu aƒu zcash-fullnode ƒe fragment la kple ŋgɔ ƒe lightwalletd ƒe fragment si wò ŋutɔ wɔ sia le ɣeyiɣi ɖeka me o.
Ne wòde dzesi be enye exclusive: zcash la, BTCPay Server agblẽ zcash-fullnode si wotsɔna le gɔmedzedze me kple lightwalletd ƒe containerwo le eɖokui si, ale be nàte ŋu aɖe ɖe wò ŋutɔ ƒe ŋgɔ ƒe node ŋu.
Le terminal me:
export BTCPAYGEN_EXCLUDE_FRAGMENTS="$BTCPAYGEN_EXCLUDE_FRAGMENTS;zcash"
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;zcash-lightwalletd.custom"
Ʋu wò .env ƒe faɛl:
nano .env
Tsɔ fli sia kpe ɖe eŋu, eye tsɔ endpoint si wòtia ɖe URL la teƒe:
ZCASH_LIGHTWALLETD=https://lightwalletd.example:443
Àte ŋu azã:
https://zec.rocks:443. ./btcpay-setup.sh -i
BTCPay Server atsɔ wò custom config la awɔ dɔ eye wòaɖe ɖe lightwalletd ɣaɣla dzesi ŋɔŋlɔ si wòɖe go la ŋu.
Tso fifia dzi la, Zcash plugin la azã ŋgɔ ƒe endpoint ma na ɣaɣla gaɖoɖowo [transactions] ƒe kpɔɖeŋu.
Èdi be yàxɔ Zcash fexexewo esi nèle BTCPay Server ɖom le aƒeme ƒe mɔ̃nukpɔmɔ̃nukpɔnu dzi - abe Raspberry Pi 5 alo teƒe sia ƒe server aɖe si static IP mele o?
Àte ŋu atsɔ Cloudflare Tunnel aɖe wò instance la afia internet dzi le dzidzime.
Mɔ sia medoa port ƒe mɔɖeɖe o eye wòɣla wò IP gaɖoƒe vavã na dukɔ bliboa - esi wònana be wò server nanɔ te ŋu akpɔe to HTTPS dzi.
Eɖoa kpekpeɖeŋu na wò be nàgblẽ VPS ƒe asixɔxɔ ƒe to hã, si sɔ ŋutɔ ne cryptocurrency ƒe fexexe nye ŋuɖoɖo si wotia ko, menye wò asitsadɔ ƒe tanya vevi o.
sudo mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared any main" | sudo tee /etc/apt/sources.list.d/cloudflared.list
sudo apt update
sudo apt install cloudflared
Ne apt install cloudflared medze agbagba o la, ɖo .deb si sɔ kple eŋu ɖe eteƒe:
# Raspberry Pi / ARM64
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64.deb
sudo dpkg -i cloudflared.deb
# x86_64
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared.deb
cloudflared tunnel login
Se sia aʋu browser ƒe fesi. Ge ɖe eme eye nàna mɔ be woawɔ dɔ kple wò domain.
Cloudflare awɔ credentials ƒe faɛl si me token le le wò server dzi le eɖokui si.
btcpay alo nu bubu ɖe sia ɖe):cloudflared tunnel create btcpay
Esia wɔa btcpay.json ƒe faɛl si me tunnel ƒe ID kple credentialwo le - àhiã esia le afɔ si gbɔna me.
Wɔ configuration ƒe directory (ne menɔ anyi o) eye nàʋu config ƒe faɛl:
sudo mkdir -p /etc/cloudflared
sudo nano /etc/cloudflared/config.yml
Tsɔ ɖoɖo sia nam:
tunnel: btcpay # your tunnel name
credentials-file: /root/.cloudflared/btcpay.json
ingress:
- hostname: btcpay.example.com # your domain
service: http://127.0.0.1:80
- service: http_status:404
tunnel - tunnel si nèwɔ tsã ƒe ŋkɔcredentials-file - mɔ si yia token ƒe faɛl si wowo le cloudflared tunnel login mehostname - wò domain si Cloudflare registra (le kpɔɖeŋu me, btcpay.example.com)service - wò BTCPay Server ƒe teƒe sia ƒe gaɖoƒe ƒe dzesi (zi geɖe nye http://127.0.0.1:80 na Nginx)Le tunnel la wɔwɔ megbe la, Cloudflare anɔa CNAME DNS record aɖe tsɔm le eɖokui si na wò domain. Ele be wòanɔ abe ale:
btcpay.example.com -> <UUID>.cfargotunnel.com
Ne menɔ anyi le eɖokui si o la, tsɔe kpe ɖe eŋu to asi me:
Ŋkɔ: btcpay
Tanya: <UUID>.cfargotunnel.com
Àkpɔ asixɔxɔ vavã la le wò btcpay.json ƒe faɛl me alo ne nàƒo:
cloudflared tunnel list
Proxy ƒe nɔnɔme: Ɖe eŋu (alikeke ƒe alilikpo)
Be tunnel la nanɔ dɔ wɔm le eɖokui si ne system la dze egɔme la, ɖoe abe system ƒe service ene:
sudo cloudflared service install
Emagbe la, ɖe service la ŋu eye nàdze edɔ:
sudo systemctl enable cloudflared
sudo systemctl start cloudflared
Kpɔ eƒe nɔnɔme:
sudo systemctl status cloudflared
Ele be nàkpɔ mesaj aɖe abe Active: active (running) ene, kple kpeɖeŋu be btcpay.example.com le internet dzi.
Ne wòle BTCPay Server ɖom zi gbãtɔ la, ɖo wò domain hafi nàƒo setup script la:
export BTCPAY_HOST="btcpay.example.com"
Esia na be woazã domain si sɔ ne wowɔ Nginx ƒe ɖoɖo kple SSL certificatewo.
Ne woɖo BTCPay Server xoxo eye wòle tunnel la tsɔm kpe ɖe eŋu ko la:
cd ~/BTCPayServer/btcpayserver-docker
. ./btcpay-setup.sh -i
Setup la awɔ configwo gake eye wòatsɔ domain yeye la awɔ dɔ. Fifia la, ele be nàte ŋu akpɔ wò server le:
https://btcpay.example.com
Le wò BTCPay Server instance la ɖoɖo nyuie megbe la, àhiã be nàwɔ ɖoɖo gɔmedzedze aɖewo to admin ƒe web interface dzi.
Nyagblɔɖi si tso dɔme la na fiafiã bliboa le English - afisia la, míato afɔ siwo hia ŋutɔ me eye míatsɔ mɔ vevi atɔ ɖo Zcash plugin la ŋu.
Yi wò instance gbɔ le:
Plugins -> Browse Plugins
Le ɖoɖo la megbe la, zi Restart Server be interface la nagbugbɔ ava kple plugin siwo le dɔ wɔm.
Le plugin la ɖoɖo megbe la, Zcash ƒe akpa yeye aɖe ava le settings ƒe menu me.
Zcash -> Settings
Format ƒe kpɔɖeŋu:
uview184syv9wftwngkay8d...
Key siawo ɖoa alɔ̃ na address ƒe trɔtrɔ le eɖokui si, si fia be:
Àte ŋu akpɔ compatibility ƒe list didi wu le ZecHub -> Wallets.
Ne wòɖe fieldwo katã me vɔ la, zi Save.
Míedo na wò - wò Zcash gakotoku fifia la, woɖe eŋu kple BTCPay Server.
Mina míawɔ kpɔɖeŋu:
Invoices -> Create New
Ne nu siawo katã dze agbagba la - wòle klalo be nàtsɔ ZEC fexexewo akpe ɖe wò website ŋu kple API alo CMS ƒe pluginwo.
Ne woɖe wò Zcash gakotoku ŋu kple BTCPay Server vɔ la, àte ŋu aɖe fexexe ƒe system la akpe ɖe wò website ŋu.
Mɔ geɖewo li be nàwɔe - tso API ƒe mɔ tẽe dzi va se ɖe plugin siwo wode ɖo na CMS ƒe platform siwo amewo zã ŋutɔ.
API Ƒe Kadodo
Enyo na website alo system si wò ŋutɔ wɔ, alo siwo me CMS mele o.
Ena mɔ be nànɔ control blibo wɔm le invoice ƒe wɔwɔ, fexexe ƒe ŋkuléle, kple nyadzɔdzɔwo dzi - katã le wò ŋutɔ ƒe interface kple logic me.
Ehia programming ƒe nyanya gɔmedzedze aɖe, eyata enyo be wò mɔ̃ ƒe ɖoɖoŋlɔla [developer] nawɔ dɔ sia.
CMS Ƒe Pluginwo
Woli na platformwo abe WooCommerce, PrestaShop, kple bubuwo.
Plugin siawo nana be nàxɔ fexexe le minuti aɖewo me - code ŋlɔŋlɔ mehia o.
Fexexe Ƒe Button Alo Iframe
Mɔ bɔbɔe kekeake.
Esɔ na landing pagewo, website ŋutɔ ƒe tɔwo, alo site ɖe sia ɖe si dzi wòdi be yàtsɔ donation ƒe link alo checkout ƒe widget aɖe akpe ko.
Ne èzã platform si wò ŋutɔ wɔ (alo CMS aɖeke mele o) la, API nye mɔ nyuitɔ. Ena mɔ be nàwɔ nu bliboa ale si wòdi: àte ŋu awɔ invoicewo, akpɔ woƒe nɔnɔme ɖa, axɔ nyadzɔdzɔwo, eye nàwɔ control blibo le zazãla ƒe nɔnɔme ŋu.
Afɔ si gbɔna: wɔ API key na wò store eye nàdze Greenfield API ƒe zazã gɔme be nàtu wò kadodo.
Be nàɖe BTCPay Server akpe ɖe wò website alo app ŋu la, àhiã be nàwɔ API key.
Ge ɖe BTCPay Server me eye nàʋu zazãla ƒe menu (le ƒeƒe dzi ƒe gome)
Yi API Keys
Zi Create a new API key
Ɖe ŋkɔ na wò key
Le Permissions ƒe akpa me, ɖe esiawo ŋu:
Can create invoiceCan view invoiceCan modify store settings - ne èhia store ƒe nudzikpɔkpɔ ƒe level koZi Generate. Wò API key ŋutɔ ava le afi ma - kplɔe eye nàdzrae le teƒe dedie.
Endpoint:
POST /api/v1/stores/{storeId}/invoices
Authorization: token {apiKey}
Content-Type: application/json
Request ƒe ŋutilã:
{
"amount": 5,
"currency": "ZEC",
"checkout": {
"speedPolicy": "HighSpeed",
"paymentMethods": ["Zcash"]
}
}
Ŋuɖoɖo:
Àxɔ JSON ƒe nuɖoɖo aɖe si me esiawo le:
invoiceIdKpɔ nyagblɔɖi bliboa: Greenfield API – Wɔ Invoice
Be nàxɔ nyadzɔdzɔwo le ɣeyiɣi ma ke me ne invoice ƒe nɔnɔme trɔ (le kpɔɖeŋu me, ne woxɔ fexexe):
POST ƒe biabiawo tso BTCPay Server gbɔWoɖe webhook ƒe payloadwo kple retry ƒe logic fia le official webhook documentation me.
BTCPay Server tše pluginwo ɖo na content management system (CMS) siwo amewo zã ŋutɔ.
Kadodo si xɔ mɔ nyuie eye amewo zã ŋutɔ wu nye WordPress + WooCommerce, si nana be nàxɔ ZEC fexexewo code ŋlɔŋlɔ mele o.
BTCPay Server tše plugin aɖe ɖo le dɔme na WooCommerce.
Afɔ siwo nàto me be nàɖe wo ŋu:
WooCommerce -> Settings -> Payments
Àkpɔ CMS ƒe kadodo ƒe mɔ bubuwo hã le akpa ma ke me le BTCPay ƒe docs me.
Ne mèzã CMS o eye mèdi be yàwɔ dɔ kple APIwo o la, mɔ bɔbɔe kekeake be nàxɔ ZEC fexexewo nye be nàɖe fexexe ƒe link alo widget aɖe ɖe wò website ŋu tẽ.
Mɔ sia sɔ na:
https://btcpay.example.com/i/abc123
<a href="https://btcpay.example.com/i/abc123" target="_blank">
Pay with ZEC
</a>
Be nàfia invoice la tẽ le wò site dzi la, zã iframe:
<iframe src="https://btcpay.example.com/i/abc123" width="600" height="350" frameborder="0"></iframe>
Mɔfiafia sia nɔ didi - gake eƒe nya vevieawo ko wòbia tso ale si woatsɔe ade Zcash ƒe fexexe [payments]wo kple BTCPay Server ŋu.
BTCPay Server ƒe interface la ƒe dɔwɔwɔ geɖe wu ale si míefia le afisia. Dzidzɔ le eme be UI la le gbe vovovowo me (Russiatɔ hã le eme), eye esia wɔe be wòate ŋu adi le eŋu eye nàwɔ dodokpɔ ɖe eŋu bɔbɔe.
BTCPay nye dɔwɔnu [tools] si trɔtrɔ geɖe le eme. Àte ŋu:
Wotu BTCPay abe open-source ƒe alternative na centralized fexexe ƒe hehewo ene. Ne èle didim be nàxɔ ZEC ƒe fexexe ɣaɣla [privacy] si me amedzro aɖeke mele o la, platform sia dze be nàna wò ŋkuléle.
Míado gbe na wò be nàkpɔ dzidzedze le BTCPay ecosystem la didi me kple le wò fexexewo wɔwɔ be woanye wò tɔ vavã me.
Ne èƒo asi kple SSH vɔ la, trɔ wò system packagewo yeyee eye nàɖo akpawo siwo hiã:
sudo apt update && sudo apt upgrade -y
sudo apt install git curl docker.io docker-compose-plugin -y
sudo systemctl enable docker
Le Ubuntu 22.04 kple version yeye wu dzi la,
docker-composesi tso APT me la va xoxo. Package si wode asi lae nyedocker-compose-plugin, si naadocker composecommand la (de ŋku edzi be teƒe mele wo dome ɖe dash teƒe).
Wò server ƒe nɔnɔme dzraɖo azɔ be woaɖo BTCPay Server.