2017 © Pedro Peláez
 

magento2-module magento-2-payment-messages

Payment Messages module for Magento 2.x

image

pronko/magento-2-payment-messages

Payment Messages module for Magento 2.x

  • Friday, February 2, 2018
  • by mcspronko
  • Repository
  • 3 Watchers
  • 3 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Payment Messages for Magento 2.x

Codacy Badge, (*1)

This module allows to pass error messages from Payment Service Providers to a Checkout Payments page., (*2)

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., (*3)

Both plugins pass the Magento\Framework\Exception\LocalizedException exceptions assuming it as messages which are allowed to be shown for a customer., (*4)

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., (*5)

Specific Payment Methods

You may also limit messages to specific payment modules., (*6)

Add the following declaration into the di.xml file of your payment module:, (*7)

    <type name="Pronko\PaymentMessages\Model\MethodList">
        <arguments>
            <argument name="methodCodes" xsi:type="array">
                <item name="payment_code_example" xsi:type="string">payment_code_example</item>
            </argument>
        </arguments>
    </type>

The Versions

02/02 2018

dev-master

9999999-dev

Payment Messages module for Magento 2.x

  Sources   Download

MIT

The Requires

  • magento/module-checkout 100.0.*|100.1.*|100.2.*
  • magento/module-quote 100.0.*|100.1.*|100.2.*
  • psr/log 1.0.*
  • magento/framework 100.0.*|100.1.*|101.0.*

 

10/09 2017

1.0.0

1.0.0.0

Payment Messages module for Magento 2.x

  Sources   Download

MIT

The Requires

  • magento/framework 100.0.*|100.1.*|100.2.*
  • magento/module-checkout 100.0.*|100.1.*|100.2.*
  • magento/module-quote 100.0.*|100.1.*|100.2.*
  • psr/log 1.0.*