Skip to content

v3.0.0

Choose a tag to compare

@lukman-paystack lukman-paystack released this 19 Feb 11:58
· 12 commits to master since this release
9b26f96

Resolves #60 — Removes the unmaintained yabacon/paystack-php SDK (broken on PHP 8.3+) and replaces it with a lightweight Gateway/PaystackApiClient that uses curl directly.

Changes

  • Custom API client (Gateway/PaystackApiClient.php) — Handles transaction initialization, verification, webhook signature validation, and plugin tracker logging via curl.
  • Backward-compatible CSP — Replaced csp_whitelist.xml with a PHP-based CspPolicyCollector that works across all Magento 2.4.x versions (the XML schema changed in 2.4.8).
  • PHP 8.2+ fix — Added missing $store property declaration in ConfigProvider to resolve dynamic property deprecation.
  • Payment verification fix — Fixed strict type comparison (===) for quoteId that caused order status to remain "pending" after successful payment.
  • Email error handling — Wrapped orderSender->send() in try-catch so email delivery failures no longer break the payment verification flow.
  • Docker dev environment (dev/) — One-command setup with Magento 2.4.8-p3, OpenSearch, five test products with images, and pre-configured Paystack test mode.
  • Version bump to 3.0.0