Repository navigation
Releases: SpectroCoin/WHMCS-Bitcoin-Payment-Gateway-Plugin
Release list
2.1.6
2.1.5
Maintenance release. API calls now identify the plugin and its version. Renames the standalone check scripts so they are no longer picked up by PHPUnit's test discovery.
2.1.4
Maintenance release. The packaged plugin now includes its runtime dependencies.
2.1.3
2.1.2
Maintenance pass over the payment callback handler.
- Check the settlement currency and amount reported for the order against the invoice total and the client currency before the payment is recorded; only an underpayment is rejected, with a rounding tolerance.
- A payload that carries no settlement amount is logged and passes through unchanged.
- Stop reusing the
$datavariable for the invoice row - it still held the decoded JSON payload.
Invoice ownership and replay protection were already covered by checkCbInvoiceID() and checkCbTransID(), so nothing was added there.
Note for review: this file uses the legacy mysql_* helpers (mysql_fetch_array, mysql_fetch_assoc), as does spectrocoin/order.php. That predates this branch and relies on WHMCS's own shims; worth confirming it still holds on the WHMCS and PHP versions we support, because the PAID branch would fail there.
No code version field in this plugin, so nothing to bump. Needs a smoke test on both callback formats before release. Merging this fires the release workflow.
2.1.1
2.1.0
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.
2.0.0
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 Module. The previous private key and merchant ID functionality have been deprecated.
Updated SCMerchantClient was reworked to adhere to better coding standards.
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.
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.
Added Error logging using WHMCS in-build logActivity() function.
Added documentation with parameters and return variables before every function
Added validation and sanitization when request payload is created and also received.
Added validation and sanitization when callback is received.
Added Expired/Failed orders handling as "Cancelled" invoice status.
Changed success and failure URL's to clientarea.php?action=invoices'.
WHMCS-Bitcoin-Payment-Gateway-Plugin v1.1
In this version, we changed private key location. Now you should upload it directly to Plugin settings through admin dashboard and private key will be saved in your database.
WHMCS-Bitcoin-Payment-Gateway-Plugin v1.0
Update README.md