- Go to the file : vendor/magento/module-checkout/Model/PaymentInformationManagement.php
vendor/magento/module-checkout/Model/GuestPaymentInformationManagement.php - Change function savePaymentInformationAndPlaceOrder() from
/** * {@inheritDoc} */ public function savePaymentInformationAndPlaceOrder( $cartId, MagentoQuoteApiDataPaymentInterface $paymentMethod, MagentoQuoteApiDataAddressInterface $billingAddress = null ) { $this->savePaymentInformation($cartId, $paymentMethod, $billingAddress); try { $orderId = $this->cartManagement->placeOrder($cartId); } catch (Exception $e) { throw new CouldNotSaveException( __('An error occurred on the server. Please try to place the order again.'), $e ); } return $orderId; }
To
/** * {@inheritDoc} */ public function savePaymentInformationAndPlaceOrder( $cartId, MagentoQuoteApiDataPaymentInterface $paymentMethod, MagentoQuoteApiDataAddressInterface $billingAddress = null ) { $this->savePaymentInformation($cartId, $paymentMethod, $billingAddress); try { $orderId = $this->cartManagement->placeOrder($cartId); } catch (Exception $e) { throw new CouldNotSaveException( $e ); } return $orderId; }
Check log and see result !
Thank for reading this post, Hope it helps.