Magento 2.2.3 Authorize.Net Direct Post
When a transaction is denied, for whatever reason, Magento shows a generic message
An error occurred on the server. Please try to place the order again.
at the top of the page.
Autorize.Net is returning an informative denial message in the x_response_reason_text
return field.
Is there a reason that message is not displayed to the customer?
Is there a way to show that message to the customer?
As it stands, if the customer were to make a mistake typing in their credit card information and submit the transaction, Authorize.Net would return "The credit card number is invalid." in the x_response_reason_text
field. If that message were to be displayed to the customer, they would be able to correct their card number and resubmit the transaction. As it stands, the customer would most likely assume there is an error on the server.