cancel
Showing results for 
Search instead for 
Did you mean: 

New Order online payment method Error

New Order online payment method Error

Hi,

 

I have installed Magento 2 C.E (V2.2) and integrated Cc-avenue payment gateway. The problem is when i check out with this payment option i get an error :

 

Fatal error: Uncaught Error: Call to a member function getMethodInstance() on null in public_html/vendor/magento/module-payment/Observer/SalesOrderBeforeSaveObserver.php:24 Stack trace: #0 /home/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Magento\Payment\Observer\SalesOrderBeforeSaveObserver->execute(Object(Magento\Framework\Event\Observer)) #1 /home/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Magento\Payment\Observer\SalesOrderBeforeSaveObserver), Object(Magento\Framework\Event\Observer)) #2 /home/public_html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #3 /home/public_html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('sal in /home/public_html/vendor/magento/module-payment/Observer/SalesOrderBeforeSaveObserver.php on line 24

 

 

Other offline payments orders are successful ordered.

1 REPLY

Re: New Order online payment method Error

Hi @Harshamagentos,

 

Did you installed the module using composer?

Is the module compatible with your Magento version?

Is a paid module/service or a module we can check, for example, on Github?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"