Install the Affirm extension on Adobe Commerce

Learn how to install and upgrade the Affirm Adobe Commerce extension.

Overview

This guide describes how to integrate Affirm into your Adobe Commerce platform and offer Affirm as a payment option to your customers.

Install the extension

You have two options for installing the Adobe Commerce Affirm extension. Both options also upgrade the extension using the exact same steps described below.

Install using Composer

  1. Retrieve your Magento authentication keys.
  2. In the Magento 2 root directory, enter the following commands using the command line:
composer require affirm/magento2
composer update
php bin/magento setup:upgrade
php bin/magento setup:di:compile
  1. Clear the Adobe Commerce cache to use the default Magento 2 Affirm configuration. For Magento 2.2 and lower an Affirm Module version 2.1.5 will be used.

Install using Command Line

  1. Download the extension
  2. If it doesn't exist, create the directory Magento2_root/app/code/Astound/Affirm/.
  3. Unzip the extension and move all the files to Magento2_root/app/code/Astound/Affirm/.
  4. In the Magento 2 root directory, run the following command to verify that Astound_Affirm exists in List of disabled modules:
php bin/magento module:status
  1. In the Adobe Commerce root directory, run the following commands:
php bin/magento module:enable Astound_Affirm
php bin/magento setup:upgrade
  1. Clear the Adobe Commerce cache to use the default Affirm configuration.