# Install the Digital River Extension

## Install using Composer

Use [Composer ](https://getcomposer.org/)to install the Digital River Extension for Magento.

1. Run the appropriate Composer commands in the root of Magento:
   * For Magento Open Source only, run the following Composer command: \ <mark style="background-color:yellow;">`composer require digitalriver/module-drpay:3.1.1`</mark>
   * For Adobe Commerce only, run the following Composer commands:\ <mark style="background-color:yellow;">`composer require digitalriver/module-drpay:3.1.1`</mark>\ <mark style="background-color:yellow;">`composer require digitalriver/module-drpay-commerce:3.1.1`</mark>
2. Update Magento to run the install and update scripts in the command line in the root of Magento by issuing the following command:\
   `bin/magento setup:upgrade`
3. Flush the Magento cache by running the following command: \
   `bin/magento cache:flush`
4. Sign in to Magento.

{% hint style="info" %}
**Note:** Adobe Commerce and Magento Open Source v. 2.4.3 users cannot install the Digital River extension using Composer. Please contact your Digital River representative for guidance on how to install the extension correctly.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/adobe-commerce-extension/adobe-commerce-extension-3.1.0/install-the-magento-extension.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
