WooCommerce install guide · v0.1.0
Accept DigiByte in WooCommerce
Before you start
- A WooCommerce store running on WordPress 6.0+, WooCommerce 7.0+, PHP 7.4+.
- Your store's public URL — the webhook needs to be reachable from DigiPay's network. Use ngrok or similar for local testing.
- A DigiByte address or BIP84 xpub where DGB payments will land. If you don't have one, install DigiByte Wallet first.
- Outbound HTTPS — the plugin fetches DGB prices from CoinGecko for fiat-priced orders.
1. Get the plugin ZIP
Download digipay-for-woocommerce-0.1.0.zip
from the GitHub releases page.
Building from source is also fine — clone the repo and run the bundled scripts/build-woocommerce-zip.sh.
2. Upload + activate the plugin
- In WordPress admin go to Plugins → Add New → Upload Plugin.
- Choose the ZIP and click Install Now.
- Click Activate Plugin.
3. Register a DigiPay merchant account
The plugin talks to a DigiPay backend, so you need an account there too. Two paths:
Hosted DigiPay (recommended)
- Sign in here on
pay.dgbwallet.appvia Digi-ID — passwordless, sign in with any DigiByte wallet. - Create a store with your DigiByte address (or xpub for per-session derivation — recommended for buyer privacy).
- Under API keys, click Create. Copy the key — it starts with
dgp_…and is shown only once. - Under Webhook, paste your store's webhook URL. The plugin's settings page shows the exact URL — it looks like
https://yourshop.example/?wc-api=digipay_webhook. Save and copy the generated webhook secret.
Self-hosted DigiPay
Same flow against your own deployment. In step 4, set the plugin's API base URL to your self-hosted Pay.Api endpoint instead of the default.
4. Configure the plugin
Go to WooCommerce → Settings → Payments → DigiPay (DigiByte). Paste in the API key and webhook secret from step 3, tick Enable DigiPay (DigiByte), save.
| Setting | What to choose |
|---|---|
| Title | What buyers see at checkout. Default DigiByte (DGB). |
| Description | One-line explainer under the title at checkout. |
| API base URL | Default https://pay.dgbwallet.app. Override for self-hosted. |
| API key | The dgp_… key from step 3. |
| Webhook secret | From DigiPay dashboard → Webhook. |
| Currency mode | Fiat (recommended) if your store is priced in USD/EUR/GBP/PHP/JPY — DigiPay converts at the live rate. DGB if your store currency is DigiByte itself. |
| Session expiry | Leave blank for the DigiPay default (1800s / 30 min). |
| Debug logging | On while setting up; off in production. Logs to WooCommerce → Status → Logs → digipay. |
5. Verify the gateway shows at checkout
Add any product to your cart and go to checkout. Under Payment options you should see DigiByte (DGB) with the official DigiByte coin mark.
6. Place a test order
Click Place Order. The plugin posts to DigiPay's API (with an idempotency key derived from the WC order id, so a double-clicked Place Order can never create two invoices) and redirects you to the hosted checkout:
Pay the invoice from any DigiByte wallet you control. Once the chain confirms, the page flips to:
(The checkout follows the shopper's light or dark setting. It also accepts ?theme=light|dark on the checkout address to match a shop's theme; a later plugin version can pass it.)
The buyer's browser auto-redirects (or they click) back to your WC thank-you page:
/checkout/order-received/{id}/?key=…).
7. Confirm the order completed
In WP admin go to WooCommerce → Orders and open your test order:
You should see:
- Status: Completed (or Processing while waiting on confirmations)
- The DigiByte txid recorded as the order's payment transaction id
- Payment via DigiByte (DGB) with the txid in the order header
- Order notes containing the DigiPay session id and webhook events as they fire
Troubleshooting
DigiByte doesn't show as a payment option at checkout.
Most likely the API key, webhook secret, or store currency is missing. The plugin auto-hides itself in those cases. Open WC → Settings → Payments → DigiPay and confirm all required fields are filled in.
"Could not start a DigiPay payment: amount (DGB) must be > 0".
The plugin couldn't fetch the DGB price from CoinGecko. Confirm outbound HTTPS is allowed from your WordPress host, and that your store currency is one of USD, EUR, GBP, PHP, JPY. Switch to DGB currency mode if your store is priced in DigiByte itself.
Order stays in Pending payment after the buyer paid.
The webhook isn't reaching your store. Check the DigiPay dashboard → Stores → Webhook deliveries log for the response code. Localhost webhook URLs only work in dev — production needs a publicly reachable URL.
Webhook delivered but order status didn't change.
Turn on Debug logging in the plugin settings and tail WooCommerce → Status → Logs → digipay-…. The most common cause is a webhook secret mismatch (HMAC verification fails with 401) or a stale-replay rejection (delivery timestamp older than 5 min).