Skip to main content
You are here:
Print

Dogecoin support is included in the Professional plan of the Cryptocurrency Product for WooCommerce. Dogecoin ships inside the plugin, so there is no separate Dogecoin add-on to buy or install. This tutorial sets up the shop wallet for Dogecoin and then creates a product that sells it.

This article describes version 4.1.1 of the Cryptocurrency Product for WooCommerce, which requires PHP 8.1 or later.

Step 1. The Dogecoin wallet

Open Settings -> Cryptocurrency Product. One settings screen serves all four coins, with a tab per coin: Bitcoin | Dash | Dogecoin | Litecoin | Rate sources | Receipts | Standard. Open the Dogecoin tab: its rows belong to Dogecoin alone, and the other coin tabs are untouched by anything you save here.

Dogecoin network settings: the coin tabs and the Dogecoin wallet rows

The tab carries six rows:

  • Dogecoin wallet address — read-only. The plugin derives it from the private key below, so the wallet the shop pays from is visible while the key itself is not. Send Dogecoin to this address to be able to sell it; small and medium sized chunks give you many outputs to sell from.
  • Dogecoin wallet private key — a password field, always empty on the screen whatever the shop has stored. Enter a key to set or replace it, leave the field empty to keep the current key.
  • Confirmations — how many Dogecoin confirmations an input needs before the shop spends it. Empty means the built-in default of 2.
  • Blockcypher.com API Token — the explorer token, shared by all four coins. Register on https://accounts.blockcypher.com to obtain it once for the whole shop.
  • Dogecoin wallet meta key — the user meta key another plugin writes the wallet address to, used to pre-fill the checkout field.
  • Disable Dogecoin wallet field? — removes the Dogecoin address field from the checkout.

The private key is the sensitive value on this screen. It is kept encrypted and never sent to the browser, and the password field is rendered empty on purpose so a stored key never appears in the HTML of a settings page.

Stored private keys are encrypted at rest once the administrator sets an Encryption key file path: the key file lives outside the site directory (create the directory with 0700 permissions and the key file with 0400, or 0600, owned by the user the web service runs as). There is no default path and nothing is created for you: until a path is set the plugin keeps the legacy unencrypted scheme and shows a red admin notice asking for a path.

Step 2. The Dogecoin product

Go to Products -> Add New, fill in Name and Description, and check the Cryptocurrency and Virtual checkboxes. Fill in Regular price with the price in the store currency. Open the Cryptocurrency tab, choose Dogecoin (DOGE) in The cryptocurrency, then fill the rows that appear: Minimum amount protects the shop from spam purchases, Step is the increment and decrement a buyer may order, and Tx fee (Dogecoin) picks Low, Medium or High — a low fee means long confirmation times, a high fee short ones.

Product settings shared by the UTXO coins: minimum amount, step, transaction fee level

This screen is shared by all four UTXO coins; the picture shows the Bitcoin fields, and a Dogecoin product shows the same rows with the coin name. There is no Use testnet (Dogecoin) switch, and the reason is plain: the explorer the plugin uses has no Dogecoin test chain, and a switch that changes nothing would only be trusted and set. Every Dogecoin product sells and receives on the Dogecoin mainnet.

Step 3. The rate source

A Dogecoin product can follow an exchange rate instead of a fixed price. Choose a provider in The dynamic price source — CoinMarketCap, CryptoCompare, CoinGecko or metals-api — then set The cryptocurrency, Input mode, Mark price up by % and Minimum price, and decide whether Base price display shows the fiat price next to the Dogecoin amount on the product page.

Product rate source row: dynamic price source, cryptocurrency, mark-up and minimum price

Press Publish and the shop has a Dogecoin product. A buyer orders it in the ordinary WooCommerce checkout, pays from a Dogecoin wallet, and the payment reaches the order by itself: the transaction hash is written into the order notes and the status moves from On hold to Processing.

Categories: