> For the complete documentation index, see [llms.txt](https://docs.ownchat.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ownchat.app/bot/connections/razorpay-create-payment-link.md).

# Razorpay - Create Payment Link

The **Create Payment Link** action allows chatbot builders to generate secure payment links using **Razorpay integration** directly inside Ownchat workflows.

This connection action helps businesses automate payment collection by dynamically creating payment URLs based on order details, customer information, or API responses.

The walkthrough demonstrates configuring Razorpay connections, setting payment amounts and currency, adding order notes, storing payment responses, and publishing the workflow.

### When to Use Create Payment Link &#x20;

Use the **Create Payment Link** action when your chatbot needs to generate payment links for customer transactions.

### Common Use Cases &#x20;

* Order payment collection
* Booking confirmation payments
* Subscription payments
* Invoice payments
* Advance payment requests
* E-commerce checkout workflows

#### Example Interaction &#x20;

Bot: 💳 Please complete your payment using the secure payment link below.

The chatbot dynamically creates a Razorpay payment link and sends it to the customer.

### Prerequisites &#x20;

Before configuring the Create Payment Link action:

* Razorpay integration must already be connected in Ownchat.
* Order or customer data should be available through variables or API responses.

The walkthrough specifically mentions:

To create a payment link in Razorpay, you need to connect the app first and proceed.

### How to Add Create Payment Link &#x20;

Follow these steps to add the **Create Payment Link** action to your bot workflow.

1. Open **Bot Builder**
2. Click the **Add Node** button
3. Open the **Connections** tab
4. Select **Razorpay**
5. Click **Create Payment Link**
6. Configure the payment settings
7. Configure response variables
8. Click **"Create."**
9. Click **Publish** to deploy the workflow

The walkthrough demonstrates selecting the Create Payment Link action from the Razorpay integration menu.

### Accessing the Connections Section &#x20;

To access the Create Payment Link action:

1. Click **Add Node**
2. Open the action selection panel
3. Click the **Connections** tab<br>

{% embed url="<https://app.supademo.com/demo/cmpc5o04c0001wq0jpwwvcril?utm_source=link>" %}

4. Select **Razorpay**

The walkthrough demonstrates opening the Razorpay integration options from the Connections tab.

### Selecting Create Payment Link &#x20;

Inside the Razorpay dropdown:

1. Locate **Create Payment Link**<br>

{% embed url="<https://app.supademo.com/demo/cmpc5p2x70cr2xa0joyrhww6f?utm_source=link>" %}

2. Click the action to open the configuration panel

The walkthrough specifically notes:

The Create Payment Link action is available to create the payment link.

### Create Payment Link Configuration &#x20;

When configuring the **Create Payment Link** action, several fields must be completed.

#### Action Name &#x20;

The **Action Name** identifies the payment workflow inside the bot builder.

This name is visible only within the workflow editor.<br>

{% embed url="<https://app.supademo.com/demo/cmpc5q77e02pjv70j10kfkapr?utm_source=link>" %}

**Example** &#x20;

Create Premium Plan Payment\
Generate Booking Payment Link\
Order Payment Request

The walkthrough demonstrates renaming the default value to:

Payment link

before saving the configuration.

### Select Connection &#x20;

The **Select Connection** field allows you to choose the Razorpay account integration.

To configure:

1. Open the **Select Connection** dropdown<br>

{% embed url="<https://app.supademo.com/demo/cmpc5r9ug0crgxa0julakluhf?utm_source=link>" %}

2. Choose the connected Razorpay account

The walkthrough specifically selects:

Ownchat Account

from the available Razorpay connections.<br>

{% embed url="<https://app.supademo.com/demo/cmpc5s6dp02pnv70j8pyf6mvu?utm_source=link>" %}

### Amount &#x20;

The **Amount** field defines the payment amount for the generated payment link.<br>

{% embed url="<https://app.supademo.com/demo/cmpc5t2rn0cc4z70juqegdeui?utm_source=link>" %}

Example &#x20;

10000

The walkthrough demonstrates entering the payment amount manually.

You can also insert variables dynamically using the **Add Variable** option.

### Currency &#x20;

The **Currency** field specifies the currency used for the payment request.<br>

{% embed url="<https://app.supademo.com/demo/cmpc5u0co02puv70j11gsbiid?utm_source=link>" %}

Available options shown in the walkthrough include:

* Indian Rupee (INR)
* US Dollar (USD)

The walkthrough specifically selects:

Indian Rupee

as the payment currency.

### Advanced Options &#x20;

The **Advanced Options** toggle allows additional payment configuration settings.<br>

{% embed url="<https://app.supademo.com/demo/cmpc5v2ba0ccjz70j9sa90spj?utm_source=link>" %}

When enabled, additional fields become available such as:

* Reference ID
* Description
* Additional Notes

The walkthrough specifically notes:

You can enable the advanced options if needed; otherwise, you can disable them.

### Reference ID &#x20;

The **Reference ID** field allows a unique identifier to be attached to the payment request.

**Example** &#x20;

ORDER\_1001

This helps track payments and associate them with specific orders.

#### Description &#x20;

The **Description** field contains additional payment details or transaction information.

**Example** &#x20;

Payment for customer order confirmation

This description may appear inside the payment request details.

### Additional Notes &#x20;

The **Additional Notes** section allows metadata to be attached to the payment request.

This is commonly used for:

* Order IDs
* Customer references
* Internal tracking details

### Note Key &#x20;

The Note Key field defines the metadata label.<br>

{% embed url="<https://app.supademo.com/demo/cmpc5y92v0cs9xa0jxit2yl4e?utm_source=link>" %}

**Example** &#x20;

Order Id

The walkthrough specifically demonstrates using **Order Id** as the note key.

### Note Value &#x20;

The **Note Value** field defines the value associated with the note key.

The walkthrough demonstrates:

1. Clicking **Add Variable**
2. Selecting the variable:

id

which was previously stored using an API action.<br>

{% embed url="<https://app.supademo.com/demo/cmpc5zuj50cshxa0j6i5ctcxp?utm_source=link>" %}

The walkthrough then appends:

.data

to access the required value from the API response structure.<br>

{% embed url="<https://app.supademo.com/demo/cmpc6zr900cwoxa0jl1bv6y3t?utm_source=link>" %}

Final example:

{{variables.id.data}}

### Store Response in the Variable &#x20;

The **Store Response in the Variable** field defines where the payment response should be saved.

To configure:

1. Select an existing variable\
   or
2. Create a new variable

The walkthrough demonstrates creating:

payment\_create

as the response storage variable.

### Creating a New Variable &#x20;

If the variable does not exist:

1. Click **Create New Variable**
2. Enter the variable name
3. Save the variable configuration

**Example**&#x20;

payment\_create

The walkthrough demonstrates creating the payment response variable before finalizing the workflow.<br>

{% embed url="<https://app.supademo.com/demo/cmpc70sd30ciaz70jumaoix60?utm_source=link>" %}

Creating the Create Payment Link Action &#x20;

After configuring all payment settings:

1. Review the connection and payment details
2. Click the **Create** button<br>

{% embed url="<https://app.supademo.com/demo/cmpc72e9p0cwqxa0jr3rs3eus?utm_source=link>" %}

The Create Payment Link node will now appear in the workflow canvas.

### Workflow Behavior &#x20;

Once triggered, the **Create Payment Link** action:

* Connects with Razorpay
* Generates secure payment links dynamically
* Supports variable-based order references
* Stores payment response data
* Automates payment collection workflows

The walkthrough demonstrates generating a Razorpay payment link using API-generated order IDs.

### Example Workflow &#x20;

#### Example Chatbot Workflow &#x20;

Create Order via API\
&#x20;       ↓\
Generate Razorpay Payment Link\
&#x20;       ↓\
Store Payment Response\
&#x20;       ↓\
Send Payment Link to Customer

#### Example Interaction &#x20;

Bot: 💳 Your payment link is ready.\
\
Amount: ₹10,000\
Click below to complete payment securely.

The chatbot dynamically creates and shares the Razorpay payment link with the customer.

### Publishing the Bot Changes &#x20;

After configuring the Create Payment Link workflow:

1. Review all payment settings
2. Click the **Publish** button
3. Deploy the updated workflow to production<br>

{% embed url="<https://app.supademo.com/demo/cmpc73ht402tkv70jfpfu11hg?utm_source=link>" %}

The walkthrough concludes by publishing the configured payment workflow successfully.

### Best Practices &#x20;

Follow these recommendations when using **Create Payment Link**.

### Connect Razorpay before configuration &#x20;

Ensure the Razorpay integration is properly authorized.

### Use dynamic order references &#x20;

Store order IDs from API responses for accurate payment tracking.

### Use proper currencies &#x20;

Select the correct currency for customer transactions.

### Store payment responses safely &#x20;

Save payment response data in variables for future workflows.

### Test payment workflows before publishing &#x20;

Verify that payment links are generated successfully.

### Summary &#x20;

The **Create Payment Link** action allows chatbot builders to generate **secure Razorpay payment links dynamically inside chatbot workflows.**

With **Create Payment Link**, you can:

* Generate payment links automatically
* Connect chatbot workflows with Razorpay
* Use dynamic order IDs and variables
* Store payment response data
* Automate customer payment collection workflows

This connection action helps businesses create **seamless payment automation and integrated transaction workflows within Ownchat**

<br>
