> For the complete documentation index, see [llms.txt](https://docs.gallabox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gallabox.com/bots/bot-connectors/send-payment-links-via-whatsapp-chatbot-using-razorpay-integration.md).

# Send payment links via WhatsApp chatbot using Razorpay integration

> **Who can use this Card?**
>
> * Gallabox Users having permission to either build and deploy bots or manage bots.
> * Available on all Paid Plans.

## Overview

Embark on a seamless payment integration with Razorpay through our comprehensive guide. Learn how to effortlessly create payment links within your chat-flow, enhancing the user experience and streamlining transactions.

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

## Connect Razorpay

1. Under the connections, click on Razor Pay to start with the connection.

<figure><img src="/files/z50t6bEZa7t8Q6noGw54" alt=""><figcaption><p>Connection in Gallabox</p></figcaption></figure>

2. Once you click on **Razorpay Connector,** you will have see the **Action** i.e. **Creating Payment Link.** Click on the Actions and you will be asked to either create a *New Connection* or Select from an *existing connection*.\
   \
   If you are adding a new connection, type in the connection name and then click on Create New Connection.

<figure><img src="/files/qTle133l4WQvm1J8wEr8" alt=""><figcaption><p>Create Payment Link</p></figcaption></figure>

3. It will prompt you to login to your Razorpay account. Sign in to your Razorpay account and the connection will be created.

<figure><img src="/files/5GB02yY4tuVFrSnPRKiy" alt=""><figcaption><p>Creating New Connection</p></figcaption></figure>

4. You can see the created connection under **Select Existing Connection**, click on **Choose** button beside the connection you created.

<figure><img src="/files/HOZhX45O940ndOKpCKCJ" alt=""><figcaption><p>Selecting existing connection</p></figcaption></figure>

## Using the Razorpay Connector

### **Create Payment Link**

1\. The moment you click on Connect, you will be taken to the Action - **Create Payment Link.**

<figure><img src="/files/8YQAXQdgudrXB8p2h2sW" alt=""><figcaption><p>Create Payment Link</p></figcaption></figure>

-> **Amount**: Mention the amount for which you need to generate the payment link for. You can also use variable in which you have stored the amount

-> **Currency**: Select the currency between INR or Dollar for your payment.

-> **Optional** **Field**: In this, you have the option to accept the partial payments. If you don't want to, kindly skip this field.

-> **Variable to store Payment Link**: You can create or select a variable you want to store the payment link in.

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

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

A sample flow is given below:

<figure><img src="/files/NNsvzptT3HKGlQ4rsI96" alt=""><figcaption><p>Razorpay Card</p></figcaption></figure>

You will have two conditions - success and failure condition. The success condition is denoted by green color circle and the failure condition is denoted by red circle.

You can extend the chat-flow by connecting the conditions to a send message card to update the users about the payment status.

{% hint style="info" %}
Make sure to add the right variables as values for all the fields.
{% endhint %}

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