Install Extension

How Can I Download and Install the Adobe Commerce Extension?

1. Download the Afterpay Extension

Download the Afterpay extension from the GitHub repository and unzip it.

2a. Install Extension

There are 2 ways to install the extension. If you use Composer see 2b.

📘

Install Directory

You can install Adobe Commerce in any directory on your server. For the purposes of this guide, pay/After refers to the root directory where Adobe Commerce is installed.

  • Create directory Afterpay/Afterpay' in [ADOBE-COMMERCE]/app/code
  • Copy the files to the 'Afterpay/Afterpay' folder
  • Open the Command Line Interface (CLI) and run the commands below:
CommandDescription
php bin/magento module:enable Afterpay_AfterpayEnable Afterpay extension
php bin/magento setup:upgradeAdobe Commerce setup upgrade
php bin/magento setup:di:compileAdobe Commerce dependencies injection compile
php bin/magento setup:static-content:deployAdobe Commerce static content deployment

2b. Install Extension using Composer

  • Open Command Line Interface and navigate to the Adobe Commerce directory on your server
  • In CLI, run the below command to install Afterpay module:
    composer require afterpay-global/module-afterpay
  • At the Composer request, enter your Adobe Commerce marketplace credentials (public key - username, private key - password)
  • Make sure that Composer finished the installation without errors
  • In CLI, run the Adobe Commerce setup upgrade:
    php bin/magento setup:upgrade
  • In CLI, run the Adobe Commerce Dependencies Injection Compile:
    php bin/magento setup:di:compile
  • In CLI, run the Adobe Commerce Static Content deployment:
    php bin/magento setup:static-content:deploy

3. Flush the Adobe Commerce System Cache

Login to Magento Admin and go to System → Cache Management. Then select Flush Cache Storage