Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 success page error

Magento 2.3 success page error


I am using magento 2.3. For payment option am using external page. once payment option done, it redirect to success page but instead of that it prompt error which is


Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Paypal\Model\Adminhtml\Express::isOrderAuthorizationAllowed() must be an instance of Magento\Sales\Model\Order\Payment, null given, called in C:\wamp64\www\Magento\vendor\magento\module-paypal\Plugin\OrderCanInvoice.php on line 43 and defined in C:\wamp64\www\Magento\vendor\magento\module-paypal\Model\Adminhtml\Express.php:172 Stack trace: #0 C:\wamp64\www\Magento\vendor\magento\module-paypal\Plugin\OrderCanInvoice.php(43): Magento\Paypal\Model\Adminhtml\Express->isOrderAuthorizationAllowed(NULL) #1 C:\wamp64\www\Magento\vendor\magento\framework\Interception\Interceptor.php(146): Magento\Paypal\Plugin\OrderCanInvoice->afterCanInvoice(Object(Magento\Sales\Model\Order\Interceptor), false) #2 C:\wamp64\www\Magento\vendor\magento\framework\Interception\Interceptor.php(153): Magento\Sales\Model\Order\Interceptor->Magento\Framework\Interception\{closure}() #3 C:\wamp64\www\Magento\generated\code\Magento\Sales\Model\Order\Interceptor.php(169): Magento\Sales\Model\Orde in C:\wamp64\www\Magento\vendor\magento\module-paypal\Model\Adminhtml\Express.php on line 172


It would be appreciated if some one give solution. am new to this magento.

Thanks in advance.


Re: Magento 2.3 success page error

Hello @jaffer_hussain 


Which version you are using, Please upgrade your Magento version to 2.2.5 or upgraded version. Magento resolved above issues on 2.2.5 version.

Manish Mittal

Re: Magento 2.3 success page error

Dear Manish,


I am using Version 2.3. 

Re: Magento 2.3 success page error

Hello @jaffer_hussain 


If you did not make any customizations then please run below commands:

rm -rf generated/code/* var/di
php bin/magento setup:di:compile
php bin/magento setup:upgrdae
php bin/magento cache:flush
chmod -R 0777 var/ pub/ generated/
Manish Mittal

Re: Magento 2.3 success page error

Hi manish,


Thanks for your response!!

But no luck. still getting the same error.

I am running in the windows using wamp. 

I tried all the below commands.







and tried this method as well but no luck.