Getting started
To begin using the checkout starter kit, ensure that your Adobe Commerce installation meets the following prerequisites and then proceed with the installation and configuration.
Prerequisites
You must install or have access to the following prerequisites to develop with the Adobe Commerce checkout starter kit:
Adobe Commerce as a Cloud Service or Adobe Commerce version
2.4.5
or higher.Node.js version 22. If you have Node Version Manager (
nvm
) installed, you can run the following command to install and use the required version:Copied to your clipboardnvm install 22 && nvm useAccess to the Adobe Developer Console with an App Builder license. If you do not have access to the Adobe Developer Console or App Builder, refer to get access to App Builder.
If you intend to use the Admin UI SDK (version
3.0
and higher), you must also complete the Admin UI SDK installation process.
When completing the steps to install the Admin UI SDK, use the following command to get a version compatible with the checkout starter kit:
Copied to your clipboardcomposer require "magento/commerce-backend-sdk": ">=3.0"
Initial configuration
Use the following steps to configure your local environment:
Create a folder for your project and navigate to it.
Copied to your clipboardmkdir <your-project-name> && cd <your-project-name>Execute the following command to create an Adobe Developer Console project in your organization and using the Commerce checkout starter kit as a template:
Copied to your clipboardaio app init --repo adobe/commerce-checkout-starter-kit --github-pat $GITHUB_PATReplace
$GITHUB_PAT
with your GitHub personal access token. For more information, refer to managing your personal access tokens.You can create an app builder project, or select the existing one, while initializing the starter kit. The created project can be found in the Adobe Developer Console.
Copied to your clipboard? Select Org: <your-ims-org>? Select a Project, or press + to create new:? > do you wish to create a new Project? YesEnter Project details:? Name: <your-project-name>? Title: <your-project-title>? Description: <your-project-description>This creates a new project using App Builder as a template, including runtime environment with each workspace.
The starter kit requires you to add the following services in the console project:
- I/O Management API
- I/O Events
- Adobe I/O Events for Adobe Commerce
- SaaS only Adobe Commerce as a Cloud Service. When asked to select a product profile, choose Default - Cloud Manager. If this option is not displayed, make sure you have developer permissions to Adobe Commerce as a Cloud Service - Backend - Commerce Cloud Manager.
Execute the following command to add the services by selecting them from the list:
Copied to your clipboardaio app add serviceThe variable
AIO_ims_contexts_{credential}_scopes
will be automatically populated but may need to be updated with the scopes required for your project. The scopes depend on the services you selected in the previous step. If you included all the specified services, the set of scopes should look like this:- Copied to your clipboard["AdobeID","openid","read_organizations","additional_info.projectedProductContext","additional_info.roles","adobeio_api","read_client_secret","manage_client_secrets","event_receiver_api"]
- Copied to your clipboard["AdobeID","openid","read_organizations","additional_info.projectedProductContext","additional_info.roles","adobeio_api","read_client_secret","manage_client_secrets","event_receiver_api","profile","email","org.read","commerce.accs"]
Copy the environment variables from the
env.dist
to a local.env
file and enter the required values.
After completing the previous steps you can:
Install Commerce modules
Adobe Commerce as a Cloud Service is preconfigured with all the required modules for the checkout starter kit. Cloud Service users can proceed by configuring an App Builder project or configuring Commerce.
Before installing Commerce modules, ensure that you have the required credentials in auth.json
with access to the Adobe Commerce repository.
Install the Payment, Shipping, or Tax modules
To install the individual modules, refer to the following topics:
Install the Commerce Eventing module (Commerce 2.4.5 only)
The Commerce Eventing module is crucial for handling events within Adobe Commerce. The eventing module is installed automatically in Adobe Commerce version 2.4.6
and higher.
This starter kit requires the Commerce Eventing module version 1.12.1
or higher, which introduces support for multi-event-provider functionality. It allows multiple App Builder extensions to connect to the same Adobe Commerce instance using isolated event providers.
To view your installed version, run the following command:
Copied to your clipboardcomposer show magento/commerce-eventing
To install this module, run the following command using Composer:
Copied to your clipboardcomposer update magento/commerce-eventing --with-dependencies
For Adobe Commerce versions 2.4.5
, you must install the Adobe I/O Events for Adobe Commerce module manually. Follow the instructions provided in Adobe I/O Events installation.