v3.0.0
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.xmlwith a PHP-basedCspPolicyCollectorthat works across all Magento 2.4.x versions (the XML schema changed in 2.4.8). - PHP 8.2+ fix — Added missing
$storeproperty declaration inConfigProviderto resolve dynamic property deprecation. - Payment verification fix — Fixed strict type comparison (
===) forquoteIdthat 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