# Send Payment Links via WhatsApp Chatbot Using Razorpay Integration

## **Overview**

Embark on a seamless payment integration with Razorpay through our detailed guide. Learn how to easily create payment links within your chat flow, improving user experience and streamlining transactions.

Using this connector, you can generate a payment link to be sent to customers via the send card in the chat flow. Let's explore the steps involved in creating a payment link using Razorpay.

## Setting Up Razorpay Integration

1. To begin, navigate to the Integrations section and click on Razorpay.

<figure><img src="/files/3X4iEekrdq3ACIM3J8lY" alt=""><figcaption></figcaption></figure>

2. Once you select the Razorpay Connector, you'll be prompted to either create a new connection or select an existing one. If you're adding a new connection, enter the connection name and click on "Create New Connection."

<figure><img src="/files/qVQBKm6lJgyt98rpCyw4" alt=""><figcaption></figcaption></figure>

3. You will then be prompted to log in to your Razorpay account. Sign in, and the connection will be created.

<figure><img src="/files/DlHkSjSW5rlgZGdfCs6m" alt=""><figcaption></figcaption></figure>

4. The created connection will appear under "Select Existing Connection." Click on the "Choose" button next to the connection you created.

## Using the Razorpay Connector to Create a Payment Link

1. Once you click on "Connect," you will be directed to the action "Create Payment Link."

* **Amount:** Specify the amount for which you need to generate the payment link. You can also use a variable where the amount is stored.
* **Currency:** Choose the currency for your payment, either INR or USD.
* **Accept Partial Payments (Optional):** You have the option to accept partial payments. If you do not wish to accept partial payments, you can skip this field.
* **Save Payment ID:** You can create or select a variable to store the payment ID for future reference.
* **Save response in the variable:** Create or select a variable where you want to store the generated payment link.

<figure><img src="/files/vHSsIpzNqYXbBB9b5RD3" alt=""><figcaption></figcaption></figure>

2. Once you have entered the above information, click on Save. The card will be created in the interface. Connect it with the Send Card to share the payment link with your users.

You can extend the chat flow by connecting the conditions to a Send Message card to update users about the payment status.

{% hint style="info" %}
Ensure you add the correct variables as values for all the fields.
{% endhint %}

With your Razorpay connector configured, generating payment links becomes effortless. Follow the steps outlined in this guide to set up the connection, create payment links, and manage success and failure conditions.


---

# 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.bizmagnets.ai/bot-flows/integrations/send-payment-links-via-whatsapp-chatbot-using-razorpay-integration.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.
