cancel
Showing results for 
Search instead for 
Did you mean: 

An error occurred on the server. Please try to place the order again

An error occurred on the server. Please try to place the order again

Hello everyone,

Please have a look below things:
Payment Method: AUthorized .net

Magento: 2.3.2

Payment Mode: Production (in the admin section)

Enter card details:
Card No.:  4111111111111111

Month: 02 
Year:2022

CVV: 123

After filling the required filed on the checkout page and click place order button then getting an error "An error occurred on the server. Please try to place the order again".

This is showing a wrong error message, The message should be "This transaction has been declined".

 

Thanks!
Sujeet Gupta

 

3 REPLIES 3

Re: An error occurred on the server. Please try to place the order again

Hello @suj_eet 

 

For the sandbox environment, the Test Mode should be disabled (this test mode might be used only for production credentials). Also, do you use Authorize.net on the local environment? If yes, it will not work, Authorize.net requires a "online" environment

 

Check this once

https://support.magento.com/hc/en-us/articles/360000570793-Error-placing-order-with-Authorize-net-Sa...

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: An error occurred on the server. Please try to place the order again

Hello,
Thanks for the reply,

As you have shared a URL.
The URL is configured for Authorized .Net Direct Post Payment Method and I am talking about the Authorized .Net Payment method.

 

Please read the instruction very carefully then answer.

 

Thanks!

 

Re: An error occurred on the server. Please try to place the order again

Hello,

 

vendor/magento/module-checkout/Model/GuestPaymentInformationManagement.php
vendor/magento/module-checkout/Model/PaymentInformationManagement.php

 

and make sure log is added
https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Checkout/Model/PaymentInformat...

 

if log code there then check log file for error of place order.

 

If works then mark as solution


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer