Skip to content

Amazon Pay does not create order in Backend while payment on Amazon Pay is received. #1107

@JustADude-86

Description

@JustADude-86

What I expected

This error is random (does not happen all the time, randomly).
I would expect that when the customer selects the payment Amazon Pay as the payment method the order would show up in the admin panel and the payment is "confirmed" and Order-ID is transferred to Amazon Pay.

What happened instead

Customers get some sort of error. From the log they get (different error per customer):

  • [2022-02-02 13:22:40] amazonClientLogger.ERROR: Magento\Framework\Exception\LocalizedException: Einige Adressen können aufgrund der Konfigurationen für bestimmte Länder nicht verwendet werden. in /var/www/vhosts/xxx/vendor/magento/module-quote/Model/QuoteValidator.php
  • [2022-01-20 14:20:28] amazonClientLogger.ERROR: Magento\Framework\Exception\LocalizedException: Bitte überprüfen Sie die Versandadressinformationen. "firstname" ist erforderlich. Bitte eingeben und erneut versuchen. "lastname" ist erforderlich. Bitte eingeben und erneut versuchen. "street" ist erforderlich. Bitte eingeben und erneut versuchen. "city" ist erforderlich. Bitte eingeben und erneut versuchen. "telephone" ist erforderlich. Bitte eingeben und erneut versuchen. "postcode" ist erforderlich. Bitte eingeben und erneut versuchen. in /var/www/vhosts/xxx/vendor/magento/module-quote/Model/QuoteValidator.php:107
  • [2022-02-02 13:22:40] amazonClientLogger.ERROR: Magento\Framework\Exception\LocalizedException: Einige Adressen können aufgrund der Konfigurationen für bestimmte Länder nicht verwendet werden. in /var/www/vhosts/sapigroup.de/sandstrahlen.biz/vendor/magento/module-quote/Model/QuoteValidator.php:107
    -[2022-01-20 14:20:28] amazonClientLogger.ERROR: Magento\Framework\Exception\LocalizedException: Bitte überprüfen Sie die Versandadressinformationen. "firstname" ist erforderlich. Bitte eingeben und erneut versuchen. "lastname" ist erforderlich. Bitte eingeben und erneut versuchen. "street" ist erforderlich. Bitte eingeben und erneut versuchen. "city" ist erforderlich. Bitte eingeben und erneut versuchen. "telephone" ist erforderlich. Bitte eingeben und erneut versuchen. "postcode" ist erforderlich. Bitte eingeben und erneut versuchen. in /var/www/vhosts/xxx/vendor/magento/module-quote/Model/QuoteValidator.php:107
    ... and similar.

But because 99% of the customers don't report the error, but just choose Paypal or other payment methods this cant be investigated further.
The payment is passed thru Amazon and payment is seen on the Amazon Pay dashboard but the order is never created and orderID is not passed from the shop to Amazon (because there is no order).
For example on the error suppost to be because of (Einige Adressen können aufgrund der Konfigurationen für bestimmte Länder nicht verwendet werden.), but the customer address was from DE and our shop is in DE and DE is allowed so this error should not appear.

Steps to reproduce the issue

The problem is that I could not reproduce the issue.
I tried with my own Amazon account and the issue never shows for me, also for some people work and for some not.
For example, we had yesterday (2.2.2022) 3 orders with Amazon Pay, two had one of these errors and the third one was passed thru successfully and order was generated, so I really can't pinpoint what exactly is happening here but there is one or two order that
has this issue.
I tried to purchase with Express Pay (button) and the Payment method selection during the checkout process and for me all worked perfectly.

Other notes

This happened also on the previous version (Magento 2.3 and the previous version of the Amazon Pay module) a couple of times so that is why we had the plugin disabled.

The log was wiped by mistake one week ago by one of our team members si this log is only a week old.
Here is also a screenshot from January and February where you can see that some orders were ok... others were not (totally bizarre)
AmazonPayment_no_order_sometimes

Your setup

  • Magento version: 2.4.3-p1
  • Magento checkout: Amasty One Step Checkout Pro
  • Magento payments: Amazon, Paypal, Klarna, Pickup, Banktransfer
  • Magento setup: Custom Theme, Original non-edited core
  • Amazon Pay Extension Version: 5.9.1
  • Magento Edition: Community
  • JavaScript Console: Cant be accessed (usually occurs on the customer side)
  • Shop URL: https://sandstrahlen.biz/

Any help would be appreciated 👍

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions