# Razorpay Workflows

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FYBgj1p5bPfKSGTLFkiRd%2Fimage.png?alt=media&#x26;token=39bec781-3dc0-4288-bfb6-d177d71c4862" alt=""><figcaption></figcaption></figure>

## **Payment Capture Alerts**&#x20;

To automatically send payment notifications when a payment is captured, follow these steps in your Razorpay integration with BizMagnets:

1. Go to **Integration** on your BizMagnets dashboard, navigate to **My Integration**, and select the desired connection under Razorpay Integration.
2. Click **Use** next to **Payment Captured Workflow** and select a message template to send to customers upon payment.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FsW23kwdEJpc6wWcDIRjd%2FScreenshot%202024-11-08%20144219.png?alt=media&#x26;token=d0be84e7-9dcd-41dd-92e5-713435261622" alt=""><figcaption></figcaption></figure>

3. Map the necessary variables for the chosen template. If you’d like to trigger a bot reply, add a payload to the button.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2F1VPi0REWmi4lZRqk8ThE%2FScreenshot%202024-11-08%20144242.png?alt=media&#x26;token=178baa80-3b53-46f5-8ee0-45a403fcae65" alt=""><figcaption></figcaption></figure>

4. Add an action, such as updating the contact tag with a “payment made” label, and click **Submit**.

This setup ensures that every time a payment is received, an automated message is shared with your customers.

{% hint style="info" %}
Similarly, you can create workflows in BizMagnets to notify customers when a payment fails or when a refund is processed. Simply follow the same steps as outlined for payment capture alerts, selecting the appropriate workflow for each scenario.
{% endhint %}

## **Removing Razorpay Integration**

If you need to remove the Razorpay integration, follow these steps:

1. Go to **Integration** on your BizMagnets dashboard and select the **Razorpay Application**.
2. Click on the three dots next to **Connected**, then choose **Delete**. Note that deleting the integration is permanent and cannot be undone.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FfJh84gbzJqqLoMSoC4yh%2FScreenshot%202024-11-08%20144537.png?alt=media&#x26;token=f6c700bd-f5d8-48a7-9b35-756d40479e36" alt=""><figcaption></figcaption></figure>

## **Disabling Razorpay Workflows**

To temporarily disable a Razorpay workflow, toggle the switch next to the workflow.

* **ON** indicates the workflow is active, as shown in the image below.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FKcOQmmxhZeIUGqQeG4SS%2FScreenshot%202024-11-08%20144702.png?alt=media&#x26;token=075cd087-37b5-4b9a-a2fd-fe534c1972af" alt=""><figcaption></figcaption></figure>

* **OFF** indicates the workflow is disabled.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2Fr5c0CRQupGp7FIFZJmhQ%2FScreenshot%202024-11-08%20144643.png?alt=media&#x26;token=28aad7f3-6955-49c2-9721-6cb9878f1428" alt=""><figcaption></figcaption></figure>
