Skip to content

v3.0.10

Latest

Choose a tag to compare

@jules-paystack jules-paystack released this 17 Jul 16:17
· 24 commits to master since this release
dc15f8a

Release 3.0.10 — verified end-to-end on Magento 2.4.9 / PHP 8.5 with Content-Security-Policy enforced.

Fixed

  • Checkout page hung on the loading spinner under enforced CSP. The module's PHP CSP PolicyCollector replaced Magento's entire Content-Security-Policy, dropping 'self' from script-src and blocking Magento's own JavaScript on the checkout page (CSP is enforced by default on checkout/payment pages since 2.4.7). Replaced with the standard, additive etc/csp_whitelist.xml mechanism.
  • Payment verification failed on PHP 8.5 even when the payment succeeded. Gateway/PaystackApiClient.php called curl_close(), deprecated in PHP 8.5 (a no-op since PHP 8.0); Magento escalated the deprecation to an exception that fired after the charge was confirmed. Removed all curl_close() calls.
  • Admin order creation on Adobe Commerce (EE). The payment method now implements MethodInterface directly instead of extending AbstractMethod, and getInfoInstance() matches the expected contract, with a defence-in-depth admin-area guard — preventing EE-only interceptors from crashing admin pages.

Added

  • PHPUnit unit-test suite (Test/Unit/**, phpunit.xml) covering the payment model, controllers, gateway client, observers, config provider, and plugins.
  • Storefront guest-checkout MFTF coverage and an admin-config MFTF page object.
  • CHANGELOG.md documenting 3.0.5–3.0.10.

Full changelog: see CHANGELOG.md.