Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

SpectroCoin Bitcoin Merchant plugin for Magento 2

This is SpectroCoin Bitcoin Payment Extension for Magento 2. This extenstion allows to easily accept bitcoins (and other cryptocurrencies such as DASH) at your Magento 2 website.

To succesfully use this plugin, you have to have a SpectroCoin Bitcoin wallet. You can get it here. Also you have to create a merchant project to get Merchant and Project IDs, to do so create a new merchant project here.


This plugin can be installed different ways:

  • Copy files and directories to your server
  • /spectrocoin/ folder from repository should be moved to /app/code/Spectrocoin/Merchant folder in magento.

Copying files and directories to your server manually

Connect to your server by ssh:

$ ssh user:password@server

Go to the magento web-root:

cd /var/www

Create directories for the extension:

mkdir -p app/code/Spectrocoin/Merchant

Clone plugin:

git clone ./app/code/Spectrocoin/Merchant

Run magento:

composer require nategood/httpful (this dependency has to be installed manually)

bin/magento module:enable Spectrocoin_Merchant --clear-static-content

bin/magento setup:upgrade

bin/magento setup:di:compile

Install files via composer

Go to the magento web-root. Enter following command: composer require spectrocoin/magento2merchant

Enter following commands to enable plugin: php bin/magento module:enable Spectrocoin_Merchant --clear-static-content

php bin/magento setup:upgrade

bin/magento setup:di:compile

Go to the plugin file directory and install dependencies:

cd app/code/Spectrocoin/Merchant

composer install


  1. Generate private and public keys

    1. Automatically

    Go to SpectroCoin -> Project list click on your project, then select "Edit Project and then click "Generate" (next to Public key field), as a result you will get an automatically generated private key, download and save it. The matching Public key will be generated automatically and added to your project.

    1. Manually

    Private key:

    # generate a 2048-bit RSA private key
    openssl genrsa -out "C:\private" 2048

    Public key: ```shell # output public key portion in PEM format openssl rsa -in "C:\private" -pubout -outform PEM -out "C:\public" ```
  2. Login in admin panel of your Magento 2 web-shop

  3. Navigate to "Stores -> Configuration -> Sales -> Payment methods"

  4. Click on "Bitcoin via Spectrocoin" and fill the form enter your Merchant ID, Project ID and private key.


This plugin has been developed by If you need any further support regarding our services you can contact us via:
Phone: +442037697306
Skype: spectrocoin_merchant
Twitter: @spectrocoin
Facebook: SpectroCoin