Install the Pagolight Modules via Composer

The recommended method for installing HeidiPay or Pagolight modules and their dependencies

We recommend this as the default method of installation because Composer will ensure that you have all of the latest files and their dependencies. Copying, pasting, and unzipping files is open to error.

General

Pagolight is hosted in a private composer repository. To download the extension, you need to set up composer repository with the correct repo URL. There are two steps you need to take.

Step 1: Adding the repository to your project

Add the repository by running the following command(s) replacing the text "<TOKEN_FROM_HEIDIPAY>" with the token provided to you by our support team.

For Pagolight merchants (Pagolight users cannot automatically also use Pagolight Pro. You will need another token to access Pagolight-Pro)

composer config repositories.pagolight composer https://token:<TOKEN_FROM_HEIDIPAY>@heidi-pay.repo.packagist.com/pagolight-merchant

For Pagolight Pro merchants (Pagolight Pro users can also use Pagolight)

composer config repositories.pagolight-pro composer https://token:<TOKEN_FROM_HEIDIPAY>@heidi-pay.repo.packagist.com/pagolight-pro-mercha

Step two: Installing the extension

If you followed previous steps, you are eligible to install HeidiPay modules.

Each module is installed by running:

composer require <name>

Where refers to one of the following:

`heidipay/pagolight` <------ (Buy Now, Pay Later - 0% interest)
`heidipay/pagolight-pro` <-- (Credit - Payments with interest)

After installation, run magento setup:upgrade and any native build commands your installation requires.