Commerce Mycelium Gear

Component ID

2773081

Component name

Commerce Mycelium Gear

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Integrate Bitcoin as a payment option in Drupal Commerce using Mycelium Gear.

Sponsored and maintained by UpgradeYa

Features

  • Complete checkout from your own site, or redirect to a more robust payment page hosted by Mycelium.
  • Supported devices: computer, tablet, or smartphone.
  • Pay by address, QR code, or tap-to-pay.
  • Checkout auto completes once transaction is verified on the blockchain.
  • For security, only IPN callbacks are used to complete orders to help prevent fraud.

Requirements

  • Drupal Commerce
  • cURL for PHP - the Commerce Mycelium Gear module will check for proper cURL installation and report an error if corrective action is required.

Setup

Create Mycelium Account

  1. Create an account with Mycelium Gear.
  2. Create a gateway.
    1. Set the "Callback url" field to http://[yourdomain.com]/mycelium/callback. For example http://example.com/mycelium/callback
    2. Set the "After payment redirect to" field to http://[yourdomain.com]/mycelium/checkout/complete. For example http://example.com/mycelium/checkout/complete
    3. Ensure the "Auto redirect" checkbox is checked.
    4. Ensure the "Active" checkbox is checked.
    5. Export and enter a BIP32 pubkey from your Electrum or Mycelium wallet. This is the Bitcoin wallet payments will be made to.
    6. Make sure when you create your gateway, you save the secret id.

Module Configuration

  1. After you download and enable the Commerce Mycelium Gear module, navigate to the store's payment methods to configure the module's settings.
  2. Set the Gateway Secret. This is provided by Mycelium the first time you create your gateway.
  3. Set the Gateway ID. This can be found in your Mycelium gateway settings.
  4. Select the checkout redirect mode. The hosted payment from Mycelium option is the recommended way to use this module. It provides the most security, uses the latest API code, and supports mobile devices.
  5. Enable the "Mycelium Gear - Bitcoin" payment method.