# Workflows for Razorpay

### Payment Capture Alerts

To send the payment notifications automatically when a payment is captured, you will have to create a workflow under the Razorpay Integration with Gallabox. Let's delve into that.&#x20;

1. Go to **Integration** on your Gallabox dashboard and from My Integration Section , choose the connection under the Razorpay Integration.&#x20;

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

2. Click on Use button beside **Payment Captured Workflow**, and choose a **Message Template** that you want to send to your customers when they make a payment to your business. Map the right **variables** for the selected message template and add the payload for the button if you would like to trigger a bot on button reply.&#x20;

<figure><img src="/files/6X1jMfo7dJZW5Jcs1G4V" alt=""><figcaption></figcaption></figure>

3. Add the Action like updating the contact tag with the Tag like `payment made` to update the contact detail and click on **Submit.**

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

***Great! Now you are good to go with the template.** Whenever you receive a payment, a message will be shared with the customers.*&#x20;

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

### Similarly you can create Workflows for Payment Failed and Refund Status Alerts.&#x20;

### Remove Razorpay Integration

If you want to delete the Razorpay Integration due to some reasons, follow the 2 step process listed below.&#x20;

1. Go to **Integration** on your Gallabox dashboard. Click on the **Integrated Razorpay Application.**

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

2. Click on the 3 dots besides Connected and you will find a delete option. When you click on Delete, the integration will be deleted and cannot be recovered.&#x20;

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

***Congratulations! You have successfully deleted the integration.***

### Disable the Workflows

If you want to disable the Razorpay workflow due to some reasons, just switch off the toggle beside the workflow.&#x20;

If the Toggle is ON, as shown in the picture below it means the workflow is working.&#x20;

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

If the Toggle is OFF, as shown in the picture below it means the workflow is disabled.&#x20;

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


---

# 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.gallabox.com/integration/payment-gateways/razorpay/workflows-for-razorpay.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.
