Hello,
I am having a strange problem.I create a order using "payment-information" Rest API, order placed successfully but getting null response everytime (No order id resonse from this API).After calling this API I checked order creted from backend and also customer got a order mail from server.
I checked no error response in error log file.Please help me.
Thanks
Solved! Go to Solution.
Hello @rajkumar_ghosh
try to remove the vendor folder and do composer install from command, it will install all files again
Hope it will help you.
Hello @rajkumar_ghosh
vendor\magento\module-checkout\Model\PaymentInformationManagement.php
check line no 83
try { $orderId = $this->cartManagement->placeOrder($cartId); } catch (\Magento\Framework\Exception\LocalizedException $e) { throw new CouldNotSaveException( __($e->getMessage()), $e ); } catch (\Exception $e) { $this->getLogger()->critical($e); throw new CouldNotSaveException( __('An error occurred on the server. Please try to place the order again.'), $e ); }
check is that going into the catch
if works then mark as a solution.
hello sunil,
Thanks for reply, I check error log file there are no error found and not getting any api response no catch response also. Please check this below screenshot.
Hi Sunil,
I do this ,Please check this below code.
try { $orderId = $this->cartManagement->placeOrder($cartId); echo $orderId; exit; } catch (\Magento\Framework\Exception\LocalizedException $e) { throw new CouldNotSaveException( __($e->getMessage()), $e ); } catch (\Exception $e) { $this->getLogger()->critical($e); throw new CouldNotSaveException( __('An error occurred on the server. Please try to place the order again.'), $e ); }
But nothing response found from payment-information API call.
Hello @rajkumar_ghosh
try to remove the vendor folder and do composer install from command, it will install all files again
Hope it will help you.