Skip to main content
You are here:
Print

Dash support is included in the Professional plan of the Cryptocurrency Product for WooCommerce. Dash ships inside the plugin, so there is no separate Dash add-on to buy or install: one plugin, one licence, and a Dash product is created the same way as any other product in your shop.

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

Step 1. The Dash wallet

Open Settings -> Cryptocurrency Product. All four coins share one settings screen, and each coin keeps its own tab: Bitcoin | Dash | Dogecoin | Litecoin | Rate sources | Receipts | Standard. Open the Dash tab. The rows below belong to Dash alone; the Bitcoin, Dogecoin and Litecoin tabs hold the same rows for their own wallets.

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

The tab carries six rows:

  • Dash wallet address — read-only. The plugin derives it from the private key below, so you can always see which wallet the shop pays from without ever seeing the key. Send Dash to this address to be able to sell it; small and medium sized chunks give you many outputs to sell from.
  • Dash wallet private key — a password field, always empty on the screen, whatever the shop has stored. Fill it in to set or replace the key; leave it empty to keep the current one.
  • Confirmations — how many Dash 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. One token serves Bitcoin, Dash, Dogecoin and Litecoin.
  • Dash wallet meta key — the user meta key another plugin writes the wallet address to, used to pre-fill the checkout field.
  • Disable Dash wallet field? — removes the Dash address field from the checkout, for a shop that always pays out to its own wallet.

The private key is the one thing on this screen that must not leak. It is kept encrypted and never sent to the browser, and the password field is rendered empty on purpose so a key never lands 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 Dash 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. Then open the Cryptocurrency tab, choose Dash (DASH) in The cryptocurrency, and set the rows that appear: Minimum amount protects you from spam purchases, Step is the increment and decrement a buyer may order, and Tx fee (Dash) chooses between Low, Medium and 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 the Dash product shows the same rows with the coin name. Dash has no Use testnet (Dash) switch, and not by accident: the explorer the plugin uses has no Dash test chain, so a switch would change nothing. Every Dash product therefore sells and receives on the Dash mainnet.

Step 3. The rate source

The Dash price can follow an exchange rate instead of a fixed one. Pick 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 choose whether Base price display shows the fiat price next to the Dash amount on the product page.

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

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

Categories: