# 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

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2Fb571xSYSrCusmwtgQXRT%2Fimage.png?alt=media\&token=3559d3d6-b535-4bc2-950e-7976f871d069)

**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.](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FGEenmA5IQWVv2h7FM8fJ%2Fimage.png?alt=media\&token=80c952c5-8500-4f5a-8b7e-0fad0bad9b95)

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.

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FxQ3sWpb7VHdvzig88xGT%2Fimage.png?alt=media\&token=7f0294a2-3d06-47e2-b794-706c78a3e8d5)

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

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FrFvUujOoQbK8yUehLcgE%2Fimage.png?alt=media\&token=d1da0d4a-8b87-416c-9d85-16599c3d8960)
