cancel
Showing results for 
Search instead for 
Did you mean: 

redirect method payment magento 2 problem

redirect method payment magento 2 problem

I create the module payment. 

When the purchase order is finished the payment module should redirect to the process payment  page  but instead it generates this error

Fatal error: Call to a member function getMethodInstance() on null in /var/www/html/magento/medishop/vendor/magento/module-payment/Observer/SalesOrderBeforeSaveObserver.php on line 24

please help me