Amazon\Core\Helper

Magento is in the process of removing previously bundled 3rd party modules like AmazonPay and already they encourage that e.g. AmazonPay is used through Amazons own module from marketplace.

For reference
https://devdocs.magento.com/guides/v2.4/release-notes/commerce-2-4-2.html

Stating:

“Amazon Pay. Amazon Pay has been deprecated in this release and will be removed in Magento 2.5.0. Magento 2.4.3 and higher will contain only updates for compatibility and fixes for major bugs.”

Your OneStepCheckout module uses this class “Amazon\Core\Helper” in version 1.1.1 and the will break compilation on a site without the bundled versions of the Amazon modules, but can you tell me if the current version of the module (1.1.3) has this dependency removed and if it can work on a site without the bundled Amazon?

Failed compilation reports:

In ClassReader.php line 51:
Impossible to process constructor argument Parameter #11 [ <required> Amazon\Core\Helper\Data $amazonHelper ] of Ubertheme\Checkout\Block\Checkout\LayoutProcessor class
In ClassReader.php line 71:
Class Amazon\Core\Helper\Data does not exist
 

3 answers

Profile photo of Mall Staff 180840.00 $tone December 1, 2021
Public

Hi there,

Failed compilation reports:…

The error report indicates the missing of the core module named “Amazon_Core’ that you haven’t installed yet.

but can you tell me if the current version of the module (1.1.3) has this dependency removed and if it can work on a site without the bundled Amazon?

What is the current version of your Magento instance? If it is CE 2.4.x you can install the core module named `Amazon_Core` I mentioned above to resolve the issue.

In case that you are using Magento CE 2.5-develop, you can remove the dependency you mentioned at your end.
We will provide updates including compatibility with new changes in upcoming stable version release of Magento CE.2.5.

Regards,
Mall.
 
 
 

#1
Profile photo of Kasper Brandt Hansen 260.00 $tone December 1, 2021
Public

The Magento version is 2.4.3
I’m aware that the cause of the problem is a reference to the missing ‘Amazon_Core’

We have removed the bundled Amazon modules because they are no longer maintained -- except for fixes of major bugs, and instead we have installed the modules for AmazonPay published by Amazon. 
It is not possible to have the Amazon modules from Marketplace installed at the same time as the Magento bundled modules as they will conflict.
So, what you are saying is, that it will not be possible to use the newer modules for AmazonPay until you remove the dependency for the old classes and you won’t do this until the stable release of Magento 2.5? 
Is that correct?

#2
Profile photo of Mall Staff 180840.00 $tone December 2, 2021
Public

Hi there,

We have removed the bundled Amazon modules because they are no longer maintained — except for fixes of major bugs, and instead we have installed the modules for AmazonPay published by Amazon. 
It is not possible to have the Amazon modules from Marketplace installed at the same time as the Magento bundled modules as they will conflict.

Yes, I see.

So, what you are saying is, that it will not be possible to use the newer modules for AmazonPay until you remove the dependency for the old classes and you won’t do this until the stable release of Magento 2.5? 
Is that correct?

In your case, we can help you to quickly remove the coding depending on the core module named `Amazon_Core`.
And then, you can continue with the latest version 1.2.7 of our module in your CE 2.4.3 without the compilation issue as you mentioned.
About the fixes for compatibility of our module with the 3rd-module named ‘AmazonPay’ (published by Amazon) you mentioned, I’m afraid that you must do this at your end because this is beyond of support cope for our module.
Hope you understand.

Regards,
Mall.
 
 

#3

Please login or Register to Submit Answer

Written By

Comments