Skip to main content
On this page

WooCommerce install guide · v0.1.0

Accept DigiByte in WooCommerce

A drop-in WordPress plugin that adds DigiByte (DGB) as a payment option at WooCommerce checkout. Hosted-checkout flow, HMAC-signed webhooks with replay protection, fiat-priced orders converted to DGB at the live rate, and an auto-redirect back to your thank-you page once payment confirms. Non-custodial — payments land directly in your wallet. ~10 minutes from "I want to accept DGB" to a verified test order.

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

  1. In WordPress admin go to Plugins → Add New → Upload Plugin.
  2. Choose the ZIP and click Install Now.
  3. Click Activate Plugin.
WordPress admin Plugins page with Upload Plugin selected
WP admin — Plugins → Add New → Upload Plugin.
The plugin loads but the gateway is automatically hidden at checkout until step 4 — no half-configured "broken" state for buyers to stumble into.

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)

  1. Sign in here on pay.dgbwallet.app via Digi-ID — passwordless, sign in with any DigiByte wallet.
  2. Create a store with your DigiByte address (or xpub for per-session derivation — recommended for buyer privacy).
  3. Under API keys, click Create. Copy the key — it starts with dgp_… and is shown only once.
  4. 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.

DigiPay plugin settings page in WooCommerce admin with API key and webhook secret fields
DigiPay plugin settings. The webhook URL to register on the dashboard side is shown verbatim — no guessing.
Setting What to choose
TitleWhat buyers see at checkout. Default DigiByte (DGB).
DescriptionOne-line explainer under the title at checkout.
API base URLDefault https://pay.dgbwallet.app. Override for self-hosted.
API keyThe dgp_… key from step 3.
Webhook secretFrom DigiPay dashboard → Webhook.
Currency modeFiat (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 expiryLeave blank for the DigiPay default (1800s / 30 min).
Debug loggingOn 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.

WooCommerce block-based checkout showing DigiByte (DGB) as a payment option
Block-based WC checkout — DigiByte (DGB) selected.
Missing? The plugin auto-hides itself when the API key, webhook secret, or a supported store currency is missing. Re-check the settings page — the gateway will reappear once everything's filled in.

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:

DigiPay hosted checkout page showing a QR code, the receive address, and an expiry countdown
Hosted checkout — fresh-derived BIP84 address, QR, and a 30-min price-locked countdown.

Pay the invoice from any DigiByte wallet you control. Once the chain confirms, the page flips to:

Payment confirmed state with Return to merchant button and 5-second auto-redirect countdown
Confirmed — Return to merchant button + 5-second auto-redirect.

(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:

WooCommerce thank-you page showing order completed
WooCommerce 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:

WooCommerce order admin showing Completed status, payment via DigiByte (DGB), and the txid
WC order admin — Completed, payment via DigiByte (DGB), txid recorded.

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

Customer flow ↗
What the buyer sees end-to-end
Other integrations
Express, Flask, ASP.NET mini-stores + SDKs
An unhandled error has occurred. Reload 🗙

Reconnecting… Still reconnecting… Connection lost Session paused Couldn't resume

The live connection dropped. Nothing is lost; this page picks up where it left off.

Trying again in seconds. Check your internet connection.

We couldn't reach DigiPay. Payments are still watched on the server; try again or reload the page.

This page was paused to save resources. Resume to carry on.

The session couldn't be resumed. Reload the page to carry on.