# 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)


---

# 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.rocketfuel.inc/plug-ins-and-sdks/magento.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.
