Magento-2 compatibility patch#58
Merged
gertrude-paystack merged 4 commits intomasterfrom Nov 25, 2025
Merged
Conversation
Contributor
gertrude-paystack
commented
Nov 22, 2025
- Updated from Paystack v1 to v2
- Added RequireJS configuration for external script loading
- Fixed PHP 8.3 compatibility issues
- Improved payment verification for inline mode
- Update CSP configuration
- Upgrade from Paystack v1 to v2 JavaScript API * Update to https://js.paystack.co/v2/inline.js * Migrate from PaystackPop.setup() to new PaystackPop().newTransaction() * Update callbacks: callback→onSuccess, onClose→onCancel - Add RequireJS configuration for external script loading * Create view/frontend/requirejs-config.js to load Paystack v2 CDN script * Add 'paystack' as RequireJS dependency in payment renderer - Fix PHP 8.3 compatibility * Update vendor/yabacon/paystack-php Router.php: get_class() → get_class($this) * Fix protected property access in Controller/Payment/Setup.php - Improve payment verification for inline mode * Update Model/PaymentManagement.php to return consistent response format * Handle double-encoded JSON responses in verification callback * Add proper error handling with try-catch for JSON parsing - Update CSP configuration * Add Paystack domains to csp_whitelist.xml (js.paystack.co, api.paystack.co) * Add plugin-tracker.paystackintegrations.com for analytics * Remove insecure csp_mode.xml file - Use modern jQuery methods * Replace deprecated .success() with .done() * Add .fail() handler for AJAX error handling Both integration modes (inline popup and standard redirect) now fully functional with v2 API.
Update yabacon/paystack-php to version v2.2.0
updated version from 2.4.1 to 2.5.0
Update module version to 2.0.0
lukman-paystack
approved these changes
Nov 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.