Download the PHP package pronko/magento-2-payment-messages without Composer
On this page you can find all versions of the php package pronko/magento-2-payment-messages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pronko/magento-2-payment-messages
More information about pronko/magento-2-payment-messages
Files in pronko/magento-2-payment-messages
Package magento-2-payment-messages
Short Description Payment Messages module for Magento 2.x
License MIT
Informations about the package magento-2-payment-messages
Payment Messages for Magento 2.x
This module allows to pass error messages from Payment Service Providers to a Checkout Payments page.
Implementation
The Pronko_PaymentMessages module consists of 2 plugins for Magento_Checkout module.
The Pronko\PaymentMessages\Plugin\GuestPaymentInformationManagement
class intercepts the Magento\Checkout\Model\GuestPaymentInformationManagement::savePaymentInformationAndPlaceOrder
method.
The Pronko\PaymentMessages\Plugin\PaymentInformationManagement
class intercepts the Magento\Checkout\Model\PaymentInformationManagement::savePaymentInformationAndPlaceOrder
method.
Both plugins pass the Magento\Framework\Exception\LocalizedException
exceptions assuming it as messages which are allowed to be shown for a customer.
Note: There are payment integrations which throw exceptions which should not be shown to a customer. It is recommended to check payment integration on staging environment to avoid any security information leak via error messages.
Specific Payment Methods
You may also limit messages to specific payment modules.
Add the following declaration into the di.xml file of your payment module:
All versions of magento-2-payment-messages with dependencies
magento/module-checkout Version 100.0.*|100.1.*|100.2.*
magento/module-quote Version 100.0.*|100.1.*|100.2.*
psr/log Version 1.0.*