> For the complete documentation index, see [llms.txt](https://docs.rocketfuel.inc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rocketfuel.inc/plug-ins-and-sdks/magento.md).

# Magento

## How to install Rocketfuel Module for Magento

**Pre-requisite:**\
1\. A Magento store\
2\. A verified merchant account on Rocketfuel.\
3\. Composer installed on server

**STEPS TO INSTALL MAGENTO MODULE IN YOUR STORE**

**Step 1:**\
Run `composer require rkfl/module-rocketfuel-payment-magento2` in the root directory of your store.

This will install the module in the vendor folder of your server.

**Step 2:**\
Run `php bin/magento module:enable RKFL_Rocketfuel` to enable the module.

Then run\
`php bin/magento setup:upgrade` to ensure the module is properly installed.

### **STEPS TO SETUP MERCHANT DETAILS**

After successfully installing the module, the next phase is to set up the merchant details.

**Step 1:**\
Visit your store's admin dashboard - (usually at https\://{your\_store\_url}/admin).\
On Admin Dashboard, Click on Stores

In Stores, select Sales

![](/files/yOus9XQ9IIjgcoxzbe82)

**Step 2:**\
Click on Payments Methods

![Once you click Payment Methods, you should be able to see Rocketfuel Payment Gateway, listed as one of the available payment gateways.](/files/fYhk5Zh2cTcJ1fpePvk2)

Click the down arrow on the extreme right side of ' Rocketfuel Payment Gateway ' to fill the details.

To find the Merchant details to be filled in here, follow the instructions given below along with the screenshot

### **HOW TO RETRIEVE MERCHANT DETAILS**

The Email and Password refers to the email/password you use in signing into your merchant portal on <https://merchant.rocketfuel.inc/sign-in>.

The environment refers to the type of details you are using. You should choose production for real transactions and select sandbox when you are testing.

To retrieve Public Key, visit <https://merchant.rocketfuel.inc/settings> and copy the string highlighted in the screenshot below.

![](/files/qZEJkeJGJ0JzxNlurKsY)

Next, click on "Save Config" to save the details to your store Database.

![](/files/zNitzq92srEYIN9zBoZC)
