PHPackages                             spectrocointest/drupal-merchant-test - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. spectrocointest/drupal-merchant-test

ActiveDrupal-module[Payment Processing](/categories/payments)

spectrocointest/drupal-merchant-test
====================================

SpectroCoin cryptocurrency payment gateway for Drupal

1.1.0(9mo ago)019GPL-3.0+PHPCI passing

Since Feb 27Pushed 9mo agoCompare

[ Source](https://github.com/SteinCode/Drupal-Bitcoin-Payment-Gateway-Module)[ Packagist](https://packagist.org/packages/spectrocointest/drupal-merchant-test)[ RSS](/packages/spectrocointest-drupal-merchant-test/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

SpectroCoin Drupal Commerce Crypto Payment Module
=================================================

[](#spectrocoin-drupal-commerce-crypto-payment-module)

[![Drupal 9 supported](https://camo.githubusercontent.com/d0e54e650e13a576844e1e88293298748d5b9dd014a6737664d91656480c9b51/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f44727570616c2d392e782d626c75653f6c6f676f3d64727570616c267374796c653d666c6174)](https://camo.githubusercontent.com/d0e54e650e13a576844e1e88293298748d5b9dd014a6737664d91656480c9b51/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f44727570616c2d392e782d626c75653f6c6f676f3d64727570616c267374796c653d666c6174)[![Drupal 10 supported](https://camo.githubusercontent.com/6f1d90bfe89a2b0657984aa5e8deb50e19ac406fa8bad506b2798b0dde37a5bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f44727570616c2d31302e782d626c75653f6c6f676f3d64727570616c267374796c653d666c6174)](https://camo.githubusercontent.com/6f1d90bfe89a2b0657984aa5e8deb50e19ac406fa8bad506b2798b0dde37a5bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f44727570616c2d31302e782d626c75653f6c6f676f3d64727570616c267374796c653d666c6174)[![Drupal 11 supported](https://camo.githubusercontent.com/f34b85aca3a7af5f2a4f767ccc7ef2d68146c968e40852d70018dd9b08140b68/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f44727570616c2d31312e782d626c75653f6c6f676f3d64727570616c267374796c653d666c6174)](https://camo.githubusercontent.com/f34b85aca3a7af5f2a4f767ccc7ef2d68146c968e40852d70018dd9b08140b68/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f44727570616c2d31312e782d626c75653f6c6f676f3d64727570616c267374796c653d666c6174)

Integrate cryptocurrency payments seamlessly into your Drupal Commerce store with the [SpectroCoin Crypto Payment Module](https://spectrocoin.com/en/plugins/accept-bitcoin-Drupal.html). This module facilitates the acceptance of a variety of cryptocurrencies, enhancing payment options for your customers. Easily configure and implement secure transactions for a streamlined payment process on your Drupal website. Visit SpectroCoin Crypto Payment Module for Drupal to get started.

Installation
------------

[](#installation)

[Drupal Commerce](https://www.drupal.org/project/commerce) module has to be installed and enabled. If not yet installed follow [this guide](https://docs.drupalcommerce.org/v2/installation/#requirements).

### Via composer (recommended)

[](#via-composer-recommended)

1. Access your server or local terminal and navigate to Drupal project root directory (where *composer.json* is located).
2. Run command:

```
composer require spectrocoin/drupal-merchant

```

### By uploading module files via FTP

[](#by-uploading-module-files-via-ftp)

1. Download latest release from github.
2. Using FTP or file editor from Drupal root directory navigate to\_/modules/contrib\_ and extract modules files. Ensure that the module directory name is "commerce\_spectrocoin".
3. Unzip and place SpectroCoin module files.

### Via drupal dashboard (Applicable only for Drupal versions 10 and lower)

[](#via-drupal-dashboard-applicable-only-for-drupal-versions-10-and-lower)

1. Download latest release from github.
2. From Drupal admin dashboard navigate to **Extend**-&gt;**Add new module** -&gt; upload module zip file.

Enabling module
---------------

[](#enabling-module)

1. After the installation, from Drupal admin dashboard navigate to **Commerce** -&gt; **Configuration** -&gt; **Payment gateways** -&gt; **Add payment gateway**.
2. In **Plugin** section select **SpectroCoin(Redirect to SpectroCoin)**.

Setting up
----------

[](#setting-up)

1. **[Sign up](https://auth.spectrocoin.com/signup)** for a SpectroCoin Account.
2. **[Log in](https://auth.spectrocoin.com/login)** to your SpectroCoin account.
3. On the dashboard, locate the **[Business](https://spectrocoin.com/en/merchants/projects)** tab and click on it.
4. Click on **[New project](https://spectrocoin.com/en/merchants/projects/new)**.
5. Fill in the project details and select desired settings (settings can be changed).
6. Click **"Submit"**.
7. Copy and paste the "Project id".
8. Click on the user icon in the top right and navigate to **[Settings](https://test.spectrocoin.com/en/settings/)**. Then click on **[API](https://test.spectrocoin.com/en/settings/api)** and choose **[Create New API](https://test.spectrocoin.com/en/settings/api/create)**.
9. Add "API name", in scope groups select **"View merchant preorders"**, **"Create merchant preorders"**, **"View merchant orders"**, **"Create merchant orders"**, **"Cancel merchant orders"** and click **"Create API"**.
10. Copy and store "Client id" and "Client secret". Save the settings.

Test order creation on localhost
--------------------------------

[](#test-order-creation-on-localhost)

We gently suggest trying out the plugin in a server environment, as it will not be capable of receiving callbacks from SpectroCoin if it will be hosted on localhost. To successfully create an order on localhost for testing purposes, **change these 3 lines in *CreateOrderRequest.php***:

```
$this->callbackUrl = isset($data['callbackUrl']) ? Utils::sanitizeUrl($data['callbackUrl']) : null;,
$this->successUrl = isset($data['successUrl']) ? Utils::sanitizeUrl($data['successUrl']) : null;,
$this->failureUrl = isset($data['failureUrl']) ? Utils::sanitizeUrl($data['failureUrl']) : null;

```

**To**

```
$this->callbackUrl = "https://localhost.com/";,
$this->successUrl = "https://localhost.com/";,
$this->failureUrl = "https://localhost.com/";

```

Don't forget to change it back when migrating website to public.

Testing Callbacks
-----------------

[](#testing-callbacks)

Order callbacks in the SpectroCoin plugin allow your WordPress site to automatically process order status changes sent from SpectroCoin. These callbacks notify your server when an order’s status transitions to PAID, EXPIRED, or FAILED. Understanding and testing this functionality ensures your store handles payments accurately and updates order statuses accordingly.

1. Go to your SpectroCoin project settings and enable **Test Mode**.
2. Simulate a payment status:
    - **PAID**: Sends a callback to mark the order as **Completed** in WordPress.
    - **EXPIRED**: Sends a callback to mark the order as **Failed** in WordPress.
3. Ensure your `callbackUrl` is publicly accessible (local servers like `localhost` will not work).
4. Check the **Order History** in SpectroCoin for callback details. If a callback fails, use the **Retry** button to resend it.
5. Verify that:
    - The **order status** in WordPress has been updated accordingly.
    - The **callback status** in the SpectroCoin dashboard is `200 OK`.

Changelog
---------

[](#changelog)

### 1.1.0 (16/07/2025):

[](#110-16072025)

*Added* support for new JSON and old URL-encoded form data callbacks format. New callbacks will be automatically enabled with new SpectroCoin merchant projects created. With old projects, old callback format will be used. In the future versions old callback format will be removed.

### 1.0.0 (27/02/2025):

[](#100-27022025)

This major update introduces several improvements, including enhanced security, updated coding standards, and a streamlined integration process. **Important:** Users must generate new API credentials (Client ID and Client Secret) in their SpectroCoin account settings to continue using the plugin. The previous private key and merchant ID functionality have been deprecated.

*Updated* Order callback and payment setting logic. Fixed routing to success page.

*Updated* Order creation API endpoint has been updated for enhanced performance and security.

*Removed* Private key functionality and merchant ID requirement have been removed to streamline integration.

*Added* OAuth functionality introduced for authentication, requiring Client ID and Client Secret for secure API access.

*Added* API error logging and message displaying in order creation process.

*Migrated* Since HTTPful is no longer maintained, we migrated to GuzzleHttp. In this case /vendor directory was added which contains GuzzleHttp dependencies.

*Reworked* SpectroCoin callback handling was reworked. Added appropriate callback routing for success, fail and callback.

*Updated* Class and some method names have been updated based on PSR-12 standards.

*Updated* Composer class autoloading has been implemented.

*Added* *Config.php* file has been added to store plugin configuration.

*Added* *Utils.php* file has been added to store utility functions.

*Added* *GenericError.php* file has been added to handle generic errors.

*Added* Strict types have been added to all classes.

Information
-----------

[](#information)

This client has been developed by SpectroCoin.com If you need any further support regarding our services you can contact us via:

E-mail:
Skype: [spectrocoin\_merchant](https://join.skype.com/invite/iyXHU7o08KkW)
[Web](https://spectrocoin.com)
[X (formerly Twitter)](https://twitter.com/spectrocoin)
[Facebook](https://www.facebook.com/spectrocoin/)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance58

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~138 days

Total

2

Last Release

297d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca0fe2b690f316a207124dfc612787cc0460f8b3cdafe81020fb27ad36e55290?d=identicon)[spectrocoin\_merchant](/maintainers/spectrocoin_merchant)

---

Top Contributors

[![SteinCode](https://avatars.githubusercontent.com/u/94236278?v=4)](https://github.com/SteinCode "SteinCode (107 commits)")[![jdojff](https://avatars.githubusercontent.com/u/8099887?v=4)](https://github.com/jdojff "jdojff (7 commits)")[![ktamasauskas](https://avatars.githubusercontent.com/u/23361466?v=4)](https://github.com/ktamasauskas "ktamasauskas (6 commits)")[![devops-primary](https://avatars.githubusercontent.com/u/9993519?v=4)](https://github.com/devops-primary "devops-primary (3 commits)")[![andrijaitisTom](https://avatars.githubusercontent.com/u/73620305?v=4)](https://github.com/andrijaitisTom "andrijaitisTom (1 commits)")

---

Tags

drupalpaymentgatewaybitcoinbtcmerchantaltcoindashxemspectrocoin

### Embed Badge

![Health badge](/badges/spectrocointest-drupal-merchant-test/health.svg)

```
[![Health](https://phpackages.com/badges/spectrocointest-drupal-merchant-test/health.svg)](https://phpackages.com/packages/spectrocointest-drupal-merchant-test)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[coingate/coingate-php

CoinGate library for PHP

56459.2k1](/packages/coingate-coingate-php)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[omnipay/bitpay

BitPay driver for the Omnipay payment processing library

1383.2k1](/packages/omnipay-bitpay)[coingate/omnipay-coingate

CoinGate driver for the Omnipay payment processing library

1037.0k1](/packages/coingate-omnipay-coingate)[plisio/plisio-api-php

155.8k](/packages/plisio-plisio-api-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
