# WooCommerce

How to install Rocketfuel Gateway Plugin on Woocommerce

**Pre-requisite:**\
\
1\. WooCommerce installed on your WordPress website\
2\. A verified merchant account on Rocketfuel.

### **STEPS TO INSTALL WOOCOMMERCE PLUGIN**

**Step 1:**\
Visit your admin dashboard and click on Plugins then 'Add New'

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FgyKmlCe4rQNB46WVhmWe%2Fimage.png?alt=media\&token=bcb4c82b-fa61-4353-99c0-23b2154f902b)

**Step 2:**\
Type in "Rocketfuel Payment" in the search box and click on "Install now" on the plugin with Rocketfuel Logo.

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FSdKuJ44qE2KoaBBVs6Lr%2Fimage.png?alt=media\&token=b7e6f9a5-6b71-4141-ae2f-6edc3fd89800)

Afterwards, click on "Activate"

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FUpU4rDFfCOErwbbU4wzH%2Fimage.png?alt=media\&token=160623de-c475-4d2d-a2d0-45ae52fa2b15)

After successfully installing and activating the plugin, proceed to set up the merchant details on woocommerce.

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

\
**Step 1:**\
Click on WooCommerce menu, then click on settings.

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FF9jsimNBbWvEIBnTPp2b%2Fimage.png?alt=media\&token=5fffb9f3-b263-4f63-994a-80976740d897)

Next click on payment.

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FdetCsPtDo3rPXuRw8GaH%2Fimage.png?alt=media\&token=9dae2dd0-e1fc-4796-b14b-16ab39643c53)

**Step 2:**

Once you reach the Payments settings, enable the toggle button, as shown below in the screenshot.

Click ‘Manage’

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2Fau8nHPPOH4MlazrsXPhD%2Fimage.png?alt=media\&token=b69b05d2-b306-422e-8661-34b9d24f1ece)

**Step 3:**\
On clicking ‘Manage’, it will take you to the next page, where you can fill your Merchant details.

<figure><img src="https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2F0bvQJ5lX15Iufr16hlfl%2Fimage.png?alt=media&#x26;token=667bf4a9-a95d-4670-9e69-3e73c05e8324" alt=""><figcaption></figcaption></figure>

**Step 4:**\
Merchant can go to store settings > Button Text and change the button to say anything - Pay with Bank, Pay with Crypto and Bank, etc.

<figure><img src="https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FcG4vjpfYAKDpgpMj6NVU%2Fimage.png?alt=media&#x26;token=3a0738f4-8fd1-4273-abbb-059f11d241e9" alt=""><figcaption></figcaption></figure>

### STEPS TO GET MERCHANT DETAILS

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FHF38TgJxiJWtWWXAIWsL%2Fimage.png?alt=media\&token=c578e7c2-23f2-4af7-91e2-4a7bc682f966)

Please refer to the instructions given below:\
**Step 1:**

Navigate to your Rocketfuel merchant account and click on settings (<https://merchant.rocketfuel.inc/settings>). You will see Merchant ID and Public Key on the page. Copy and Paste in the ‘Payments’ page. Also, fill in the Client Id and Client Secret for your merchant account into the appropriate field. You can generate a new public key, If you do not have any setup for you.

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2F9reNiKNyuPbrEyZ1p2xc%2Fimage.png?alt=media\&token=871575c3-4b13-4ef8-83cf-46921b787bb9)

The ‘Callback URL’ will be auto generated. Copy the URL, to be used as per the instructions given below.

Click ‘Save Changes’.

**Step 2:**

The Callback URL, you copied, has to be saved in the Rocketfuel Merchant Account.

To do this, navigate to [https://Merchant.rocketfuel.inc/settings](https://merchant.rocketfuel.inc/settings) and click on edit, as shown in the screenshot below:

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FI4uNzE6qqNiO3RuqIDmb%2Fimage.png?alt=media\&token=792e179f-f447-4d26-a3a9-a5643e96637c)

**Step 3:**

Add the Callback URL on the screen you see once you click ’Edit'.

Click ‘Save’.

![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FAx9GVOMtGuCGPbAHeYdx%2Fimage.png?alt=media\&token=ec7b2a23-8b14-417a-bbef-08ec3b9a15e8)

### **Features**

**1. Order Status for Completed Payment:**

This gives you control over the order status set by the plugin when payment is confirmed.

<figure><img src="https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2Fyv3odXeiFVgh2f0QIqMM%2Fimage.png?alt=media&#x26;token=934aaadc-6819-4cdf-95fb-08a4ac2a7911" alt=""><figcaption></figcaption></figure>

**2. Working Environment:**

You can set the working environment endpoint using this selection

<figure><img src="https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FCjnRFezejYCkIemQKbK4%2Fimage.png?alt=media&#x26;token=b12f9581-57ef-4317-9185-4a90c71a224e" alt=""><figcaption></figcaption></figure>

**3. Plugin Details:**

You can get the merchant Id from your portal at <https://merchant.rocketfuel.inc/settings>

**a. Merchant ID** - This can be found at the top left of the settings page

<figure><img src="https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FeBPBwFBhSSKQdY0vn5Fa%2Fimage.png?alt=media&#x26;token=44a533bd-9bef-43ea-add2-3da5908e3135" alt=""><figcaption></figcaption></figure>

**b. Client Id and Client Secret** - To obtain these keys, scroll down on the settings page till you see **"Integration Keys".** Click on create and you can copy the Client secret and Client Id  and add it to the plugin configuration page

<img src="https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FHchPkqNMYewAZ6b4qzzq%2Fimage.png?alt=media&#x26;token=25be074b-06cd-43e4-9760-fca21dc6148c" alt="" data-size="original">\
**c. Public key** - Copy the public key on the settings page by clicking on the copy icon\
![](https://1226631082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp9w5RKLdYBhhpcmcvEp%2Fuploads%2FBlaM9y65Du0r30qHXgMr%2Fimage.png?alt=media\&token=1f814e5c-131a-4e5f-81de-5ab63050e789)


---

# 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/woocommerce.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.
