This pull request introduces several changes to enhance the Paytrail payment integration and improve security and code clarity. The most important changes include adding a new constant for the Paytrail payment method, updating the beforeSavePaymentInformation method to validate admin actions, upgrading the Paytrail SDK version, and adding new ACL and CSP configurations.
This pull request introduces several changes to enhance the Paytrail payment integration and improve security and code clarity. The most important changes include adding a new constant for the Paytrail payment method, updating the
beforeSavePaymentInformation
method to validate admin actions, upgrading the Paytrail SDK version, and adding new ACL and CSP configurations.Enhancements to Paytrail Integration:
Plugin/Magento/Checkout/Model/PaymentInformationManagementPlugin.php
: Added a new constantPAYTRAIL
for the Paytrail payment method code and updated thebeforeSavePaymentInformation
method to validate that admin users are not authorized to use this payment method. [1] [2]Dependency Updates:
composer.json
: Upgraded the Paytrail PHP SDK to version>=2.7.3
.Security Configurations:
etc/acl.xml
: Added new ACL configuration for Paytrail recurring payments to ensure proper access control.etc/csp_whitelist.xml
: Added new CSP whitelist entries for*.paymenthighway.io
and*.mobilepay.fi
to allow secure connections to these hosts.