mobilpay / Magento

MAGENTO implementation - CARD Processing @mobilPay
11 stars 15 forks source link

Error when a payment is rejected or cancelled #10

Closed razvanmitre closed 3 years ago

razvanmitre commented 6 years ago

In Mobilpay/Credit/Controller/Cc/Success.php I saw that _messageManager is not assigned anywhere, shouldn't it be in the constructor?

I am using Magento 2.1.9

Fatal error: Uncaught Error: Call to a member function addError() on null in /srv/www/app/code/Mobilpay/Credit/Controller/Cc/Success.php:35 Stack trace: #0 /srv/www/vendor/magento/framework/App/Action/Action.php(102): Mobilpay\Credit\Controller\Cc\Success->execute() #1 /srv/www/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #2 /srv/www/vendor/magento/framework/Interception/Chain/Chain.php(70): Mobilpay\Credit\Controller\Cc\Success\Interceptor->___callParent('dispatch', Array) #3 /srv/www/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Mobilpay\Credit...', 'dispatch', Object(Mobilpay\Credit\Controller\Cc\Success\Interceptor), Array, 'contextPlugin') #4 /srv/www/vendor/magento/module-store/App/Action/Plugin/Context.php(106): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http)) in /srv/www/app/code/Mobilpay/Credit/Controller/Cc/Success.php on line 35