# Send payment links via WhatsApp chatbot using PhonePe

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

## Overview

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 PhonePe.

## Connect PhonePe Account <a href="#creating-the-connection-for-razorpay" id="creating-the-connection-for-razorpay"></a>

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

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FsxdoMUVN1yQIEZ7ZyZ1J%2FPhonePe%20Connector.gif?alt=media&#x26;token=d9487831-5a63-403a-b85f-f9fd14b5a40c" alt=""><figcaption></figcaption></figure>

2. Once you click on **PhonePe Connector,** you will have the **Action** i.e. **Create Payment Link.** Click on the Action 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%2FvLC3BNKrRWJIBVWJEVsS%2FAction%20-%20Phonepe.gif?alt=media&#x26;token=8bc4171a-d9ee-4db7-8301-a26b4b72b277" alt=""><figcaption></figcaption></figure>

3. To "**Add New Connection**", you will have to enter details like Merchant Id, Salt Key, and Salt Index. Once you enter the details, click on "**Create Connection**" to create a new PhonePe connection.&#x20;

{% hint style="info" %}
To get the **Merchant ID**, kindly reach out to PhonePe Team. **Salt Keys** will be shared along with the Merchant ID details.
{% endhint %}

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FLSt8OZcHkc5XwfVXCbPb%2FPhonePe-connector.png?alt=media&#x26;token=171e6751-0c61-4420-a654-0d00d6b62b8a" alt=""><figcaption></figcaption></figure>

## Using the PhonePe Connector <a href="#using-the-action-create-payment-link" id="using-the-action-create-payment-link"></a>

### **Create Payment Link** <a href="#using-the-action-create-payment-link" id="using-the-action-create-payment-link"></a>

1. The moment you click on **Create Connection**, you will be taken to the Action - **Create Payment Link.** You have to add the variables for Amount and the Payment Link and click on Save

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2Fm3WqQmxF5wV0avzangJb%2FPhonePe%20Action%20Variables.gif?alt=media&#x26;token=4a2cd850-6f03-473c-8df6-70ccebcee23b" alt=""><figcaption></figcaption></figure>

2. The PhonePe connector is ready to be used in the bot-flow. You can add the success and failure conditions as shown in the below GIF:&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FbFjk7sO6F4KAEII8VTtQ%2FPhonePe%20Action%20Conditions.gif?alt=media&#x26;token=4a8cc5c1-8bdd-45f1-9b57-a8eaeeb191f1" alt=""><figcaption></figcaption></figure>

With the PhonePe connector, effortlessly generate payment links for customers within the chat-flow. Follow the simple steps to ensure a smooth and efficient payment experience for users. Let's simplify the payment process with PhonePe!
