monero-integrations / monerowp

Monero WooCommerce Plugin for Wordpress
MIT License
105 stars 74 forks source link
monero monero-gateway monero-integrations monero-plugin monero-wallet wallet-rpc woocommerce wordpress wordpress-admin-panel

Monero Gateway for WooCommerce

Features

Requirements

Installing the plugin

Automatic Method

In the "Add Plugins" section of the WordPress admin UI, search for "monero" and click the Install Now button next to "Monero WooCommerce Extension" by mosu-forge, SerHack. This will enable auto-updates, but only for official releases, so if you need to work from git master or your local fork, please use the manual method below.

Manual Method

Option 1: Use your wallet address and viewkey

This is the easiest way to start accepting Monero on your website. You'll need:

Then simply select the viewkey option in the settings page and paste your address and viewkey. You're all set!

Note on privacy: when you validate transactions with your private viewkey, your viewkey is sent to (but not stored on) xmrchain.net over HTTPS. This could potentially allow an attacker to see your incoming, but not outgoing, transactions if they were to get his hands on your viewkey. Even if this were to happen, your funds would still be safe and it would be impossible for somebody to steal your money. For maximum privacy use your own monero-wallet-rpc instance.

Option 2: Using monero-wallet-rpc

The most secure way to accept Monero on your website. You'll need:

After downloading (or compiling) the Monero binaries on your server, install the systemd unit files or run monerod and monero-wallet-rpc with screen or tmux. You can skip running monerod by using a remote node with monero-wallet-rpc by adding --daemon-address node.moneroworld.com:18089 to the monero-wallet-rpc.service file.

Note on security: using this option, while the most secure, requires you to run the Monero wallet RPC program on your server. Best practice for this is to use a view-only wallet since otherwise your server would be running a hot-wallet and a security breach could allow hackers to empty your funds.

Configuration

Shortcodes

This plugin makes available two shortcodes that you can use in your theme.

Live price shortcode

This will display the price of Monero in the selected currency. If no currency is provided, the store's default currency will be used.

[monero-price]
[monero-price currency="BTC"]
[monero-price currency="USD"]
[monero-price currency="CAD"]
[monero-price currency="EUR"]
[monero-price currency="GBP"]

Will display:

1 XMR = 123.68000 USD
1 XMR = 0.01827000 BTC
1 XMR = 123.68000 USD
1 XMR = 168.43000 CAD
1 XMR = 105.54000 EUR
1 XMR = 94.84000 GBP

Monero accepted here badge

This will display a badge showing that you accept Monero-currency.

[monero-accepted-here]

Monero Accepted Here

Donations

monero-integrations: 44krVcL6TPkANjpFwS2GWvg1kJhTrN7y9heVeQiDJ3rP8iGbCd5GeA4f3c2NKYHC1R4mCgnW7dsUUUae2m9GiNBGT4T8s2X

ryo-currency: 4A6BQp7do5MTxpCguq1kAS27yMLpbHcf89Ha2a8Shayt2vXkCr6QRpAXr1gLYRV5esfzoK3vLJTm5bDWk5gKmNrT6s6xZep