Skip to content

Releases

1.1.6

Choose a tag to compare

@github-actions github-actions released this 14 Aug 12:04
e3dfe57

Maintenance release. The callback now recognises the TEST order statuses, which were previously rejected.

1.1.5

Choose a tag to compare

@github-actions github-actions released this 13 Aug 16:26
14b119b

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.

1.1.4

Choose a tag to compare

@github-actions github-actions released this 13 Aug 14:54
51951f6

Maintenance release. Updates guzzlehttp/guzzle to 7.15.3.

1.1.3

Choose a tag to compare

@github-actions github-actions released this 13 Aug 13:49
a7530ce

Maintenance release.

Order status is set solely by the callback controller, which verifies that a request originates from SpectroCoin before writing. The cancel landing page is presentation-only.

Adds invariant tests covering that separation; the test directory is excluded from the packaged release.

1.1.2

Choose a tag to compare

@github-actions github-actions released this 31 Jul 17:23
6dd80be

Maintenance pass over the payment callback controller.

  • Confirm the order was placed through this extension. The field holding the method differs between OpenCart releases (payment_method['code'] vs payment_code), so both are read and only a positive mismatch is treated as an error.
  • Check the settlement currency and amount reported for the order against the order total, converted the same way the order request builds receiveAmount (round(total * currency value, 2)); only an underpayment is rejected, with a rounding tolerance.
  • A payload that carries no settlement amount is logged and passes through unchanged.

install.json version left at 2.0 - it does not track the release tag.

Needs a store smoke test on both callback formats before release, particularly the payment-method field on the OpenCart version we target. Merging this fires the release workflow.

1.1.1

Choose a tag to compare

@dj-bankera dj-bankera released this 24 Jul 16:27
8cf4e85

Security maintenance release.

  • Update guzzlehttp/guzzle 7.9.2 → 7.15.1
  • Update guzzlehttp/psr7 2.7.0 → 2.13.0

Resolves the open Dependabot advisories (moderate). Updates composer.lock and vendored sources so the shipped extension is patched. Dependency-only change.

1.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Jul 08:19
aa5bd90

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

Choose a tag to compare

@github-actions github-actions released this 17 Feb 11:09
92967dc

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 extension. The previous private key and merchant ID functionality have been deprecated.

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: Instead of using outdated addOrderHistory for changing the order status, we now use the new addHistory method.

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.

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 Enhanced the style of the admin's payment settings window to match the design of SpectroCoin.com, providing a more cohesive user experience.

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

Added Settings field sanitization.

Added Settings field validation. In this case we minimized possible error count during checkout, SpectroCoin won't appear in checkout until settings validation is passed.

Added "spectrocoin_" prefix to functiton names.

Added "SpectroCoin_" prefix to class names.

Added Validation and Sanitization when request payload is created.

Added Validation and Sanitization when callback is received.

Added Components class "SpectroCoin_FormattingUtil" changed to "SpectroCoin_Utilities".

Added Appropriate error logging to OpenCart admin.

Added API error form.

Optimised: Removed the The whole $_REQUEST stack processing. Now only needed callback keys is being processed.