-
Notifications
You must be signed in to change notification settings - Fork 161
Description
Hi,
I'm installing the plugin for Magento 2.24.
I've set up the api key etc.
When I try to place a test order, at the checkout I choose the Viva payment method and then click the place order button and the following exception happens:
url: mydomain/vivapayments/checkout/start
1 exception(s):
Exception #0 (Exception): Notice: Trying to get property of non-object in mydomain/app/code/Ced/VivaPayments/Model/PaymentMethod.php on line 202
Exception #0 (Exception): Notice: Trying to get property of non-object in mydomain/app/code/Ced/VivaPayments/Model/PaymentMethod.php on line 202
#0 mydomain/app/code/Ced/VivaPayments/Model/PaymentMethod.php(202): Magento\Framework\App\ErrorHandler->handler(8, 'Trying to get p...', '/home/cbdology/...', 202, Array)
#1 mydomain/app/code/Ced/VivaPayments/Controller/Checkout/Start.php(40): Ced\VivaPayments\Model\PaymentMethod->getPostHTML(Object(Magento\Sales\Model\Order\Interceptor))
#2 mydomain/vendor/magento/framework/App/Action/Action.php(107): Ced\VivaPayments\Controller\Checkout\Start->execute()
#3 mydomain/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#4 mydomain/vendor/magento/framework/Interception/Interceptor.php(138): Ced\VivaPayments\Controller\Checkout\Start\Interceptor->___callParent('dispatch', Array)
#5 mydomain/vendor/magento/framework/Interception/Interceptor.php(153): Ced\VivaPayments\Controller\Checkout\Start\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#6 mydomain/generated/code/Ced/VivaPayments/Controller/Checkout/Start/Interceptor.php(26): Ced\VivaPayments\Controller\Checkout\Start\Interceptor->___callPlugins('dispatch', Array, Array)
#7 mydomain/vendor/magento/framework/App/FrontController.php(55): Ced\VivaPayments\Controller\Checkout\Start\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#8 mydomain/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#9 mydomain/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#10 mydomain/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#11 mydomain/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#12 mydomain/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#13 mydomain/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#14 mydomain/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#15 mydomain/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)
#16 mydomain/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#17 mydomain/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http->launch()
#18 mydomain/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#19 {main}
Any help much appricated.
Cheers