# 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.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F8s2vJT8Y9CmjzPHWmRnt%2FRazorpay_Connector.gif?alt=media&#x26;token=e06d4abd-40d2-4beb-ae6d-829cd6d49256" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FIkDlXWOqsp3UbhSS1f43%2FAction_Razorpay.gif?alt=media&#x26;token=88011117-3deb-40de-a48a-460c053971a9" 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.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F03qJjUEbNfvMfteBdQBU%2FSign-in-prompted.gif?alt=media&#x26;token=dbca890c-547e-4151-8096-c71451c23849" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FFKi22ylIEgAZchqTGlAB%2FRazorPay%20Connector1.1.png?alt=media&#x26;token=125dade3-69b1-4781-a66c-0ab9e9403337" alt=""><figcaption><p>Selecting existing connection</p></figcaption></figure>

## Using the Razorpay Connector

### **Create Payment Link**

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

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FwJj1DC0CEvV9cLBIlzxn%2FSelect%20Connection%20-%20Razorpay.gif?alt=media&#x26;token=d094e7e3-e078-48b5-913a-6bbb69869aa6" 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&#x20;

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

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

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

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FLQpm5JWyJFYIhTCY8R3K%2FCreate_Payment_Link%20for%20Razorpay.gif?alt=media&#x26;token=30041d45-4a46-4705-b401-f728e24e2901" 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.&#x20;

A sample flow is given below:

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FAOkQmrT3GZU9emLNfMrW%2Fsample.png?alt=media&#x26;token=89678dfd-8b28-406b-8175-3317c4161d87" 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.&#x20;

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.&#x20;
{% 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**.
