> For the complete documentation index, see [llms.txt](https://helpdocumentation.gitbook.io/user-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocumentation.gitbook.io/user-documentation/ai-store/configure-payment-methods-in-e-commerce-store.md).

# Configure Payment Methods in E-Commerce Store

#### Step 1: Open Payment Methods

1. Go to **Ecom Store** from the left-hand menu.
2. Click on **Payment Methods**.
3. You will see all available payment methods displayed as individual cards.

#### Step 2: Configure Custom Payment Gateway

1. Find **Custom Payment Gateway**.
2. Click **Setup**.
3. Enter the **Display Name** that customers will see during checkout.
4. Enter the **API Key** provided by your payment gateway.
5. Enter the **API Secret**.
6. Review the credentials and click **Connect**.
7. Once the connection is successful, the payment gateway will be available for checkout.

#### Step 3: Configure Razorpay

1. Find **Razorpay** and click **Setup**.
2. Enter the **Display Name**.
3. Enter the **API Key** provided by Razorpay.
4. Enter the **API Secret**.
5. Enter the **Webhook Secret** configured for your Razorpay integration.
6. Review all the credentials.
7. Click **Connect**.
8. Once successfully connected, Razorpay can be enabled as a payment option for customers.

> **Note:** API Secret and Webhook Secret are sensitive credentials. Keep them secure and do not share them publicly.

#### Step 4: Enable Cash on Delivery

1. Find **Cash on Delivery (COD)**.
2. Use the toggle available on the payment method card.
3. Enable the toggle to allow customers to pay when their order is delivered.
4. Disable it if you do not want to offer COD.

#### Step 5: Manage Payment Methods

* Use the **Active/Inactive** status to control whether a payment method is available at checkout.
* You can disable a payment method without removing its configuration.
* For online payment gateways, you can update the credentials whenever required.

{% embed url="<https://youtu.be/pKpwdZHMEHU>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpdocumentation.gitbook.io/user-documentation/ai-store/configure-payment-methods-in-e-commerce-store.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
