PAYONE-GmbH / magento-2

PAYONE Payment Extension for Magento 2
28 stars 59 forks source link

Show speaking error messages if fields are not filled out correctly #150

Closed fischamhaken closed 4 years ago

fischamhaken commented 6 years ago

Hi together,

with M2.1.7 and Payone Extension 1.3.5 I have following issue: If csutomer steps through checkout and fills in incoorect address values, the following message appears: "An error occured on the server. Please try to place the order again" In Payone API protocol I can see the problem, i.e. customer has filled field "Company" with "-". Then Payone send back custom error message:

customermessage Ungültiger Firmenname. Bitte überprüfen Sie die Angaben.

1303 Parameter {company} faulty or missing

Unfortunately, this is not displayed to the customer, but it should be done so.

Greetings, Stefan checkout

fjbender commented 6 years ago

In theory, we already pass on the customer message: https://github.com/PAYONE-GmbH/magento-2/blob/master/Model/Methods/PayoneMethod.php#L119

I suppose the error message is generic due to a missing translation?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.