-1

I can't place an order due to this error in one step checkout so please check the console error about the Paypal response

enter image description here

0

You have the issue at the order submit URL payment-information , in order to debug the error check Magento var/log and var/report folder.

You have to debug the error at Magento\Checkout\Model\PaymentInformationManagement::savePaymentInformationAndPlaceOrder.

And here

catch (\Exception $e) {
        throw new CouldNotSaveException(
            __('An error occurred on the server. Please try to place the order again.'),
            $e
        )

Change to

catch (\Exception $e) {
        throw new CouldNotSaveException(
            __($e->getMessage()),
            $e
        )

Then on network tab at the browser, you can your original error message.

You can use Max pronko module for getting the error.

https://www.maxpronko.com/how-to-show-payment-errors-on-the-checkout-payment-page-in-magento-2/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.