Installation — Amazon Pay for Magento 2 documentation

[Pages:3]Installation -- Amazon Pay for Magento 2 documentation

Docs ? Installation

...

Installation

Starting from Magento version 2.3.0, the extension is available via Composer in Packagist or Magento Marketplace as amzn/amazon-pay-magento-2-module .

For Magento versions 2.2.6 up to 2.2.11 (EOL), the Legacy extension (EOL) is already preinstalled and the new extension for those versions has also reached EOL. The new extension for those versions is available here and, once installed, will appear in the Configuration panel as an alternative (V2) to the Legacy (V1) checkout experience, as shown in the following image:

For Magento versions below 2.2.6 (EOL), the Legacy version of our extension (EOL) is available at Amazon Pay and Amazon Sign-in for Magento 2 (Legacy) documentation.

Pre-installation steps

For Magento versions from 2.2.4 up to 2.4.x, our Legacy extension (EOL) is probably already preinstalled.

! Warning

Please settle pending transactions processed with any version of Legacy Amazon Pay extension (EOL) extension prior to proceeding with the installation. Refund operation on past transactions will always be possible with newer versions. In case of issues, you can settle pending transactions in Seller Central and then mark them as settled offline in Magento Orders page.

Create a backup of your shop before proceeding to install this new Amazon Pay extension. Before installing Amazon Pay, please disable any previously installed or preinstalled Amazon Pay extension:

bin/magento module:disable Amazon_Core Amazon_Login Amazon_Payment

Then remove all directories and their files from the following paths:

1 of 3

app/code/Amazon/PayV2 vendor/amzn/amazon-pay-and-login-with-amazon-core-module

11/03/2021, 20:26

Installation -- Amazon Pay for Magento 2 documentation

vendor/amzn/amazon-pay-module vendor/amzn/login-with-amazon-module

...

Composer Install Method

! Note

The composer require command below will always install the most current, non-breaking, Amazon Pay extension for you, when you run an update. To fix it to a specifix version, please replace the version behind the colon with the preferred version.

Remove the app/code/Amazon folder if already present in your Magento installation. Sign in to your server via SSH. cd into you Magento installation directory. Install the extension via Composer. The right command is dependent on your Magento 2 version:

Magento 2.1.0 - 2.2.5: Not supported by this extension. Please take a look at our Legacy extension here. Magento 2.2.6 - 2.2.11 (EOL):

- composer require amzn/amazon-payments-magento-2-plugin:dev-V2checkout-1.2.x php bin/magento module:enable Amazon_PayV2 --clear-static-content

Magento 2.3.0 and above: Purchase our free module from Magento Marketplace and then run:

composer require amzn/amazon-pay-magento-2-module:5.* php bin/magento module:enable Amazon_Pay --clear-static-content

Run Magento database scripts:

php bin/magento setup:upgrade

Follow any advice the upgrade routine provides Compile code and dependency injection:

php bin/magento setup:di:compile

Deploy static view files (production mode only):

php bin/magento setup:static-content:deploy xx_XX yy_YY

where xx_XX, yy_YY, ... are the locales you are aiming to support Check permissions on directories and files and set them correctly if needed

At this point the module is installed, and ready to configured! You can proceed to Configuration.

Magento Marketplace Install Method

Our extension can be downloaded from Magento Marketplace:

It can then be installed following these steps:

2 of 3

Disable the in-core Legacy Magento modules in case they are still active:

bin/magento module:disable Amazon_Core Amazon_Login Amazon_Payment

11/03/2021, 20:26

Installation --EAxmtraazcotntPhaey cfoornMteangetnstoof2tdhoecu.zmipenfitalteiotno app/code/Amahztotpns/:/P/aamy z,ny.goiuthusbh.oiou/aldmanzoown-psaeyemaenfitsle-magento-2-plugin/insta... app/code/Amazon/Pay/registration.php if the directory nesting is correct Install dependencies and enable the module. Then run the normal Magento commands for a module installation: Download the Amazon Pay API SDK(PHP) package and extract the Amazon/Pay/API directory as app/code/Amazon/Pay/API/ Download the Amazon SNS Message Validator for PHP package and extract the src directory as app/code/Aws/Sns/ Run bin/magento module:enable Amazon_Pay --clear-static-content Run bin/magento setup:upgrade Run bin/magento setup:di:compile Run bin/magento setup:static-content:deploy

At this point the module is installed, and ready to configured! You can proceed to Configuration.

! Note Please also have a look at the official Magento documentation for command line configuration:

Un-install Method

If there is a need to disable the module, you can disable Amazon Pay in the extension settings. This will remove all customer facing parts.

To completely disable the module, please run:

php bin/magento module:disable Amazon_Pay

To completely uninstall the module using Composer, please run:

composer remove amzn/amazon-pay-magento-2-module composer remove amzn/amazon-payments-magento-2-plugin

3 of 3

11/03/2021, 20:26

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download