> ## Documentation Index
> Fetch the complete documentation index at: https://docs-next.gallabox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflows for Razorpay

> Stay informed with Razorpay's Alerts. Create workflows through Razorpay Integration to automatically notify customers when payments are captured, failed, or refunded.

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

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

<Frame>
  <video src="https://mintcdn.com/gallabox/uG1_eXMWKizfNJ6h/images/connected-razorpay-integration.mp4?fit=max&auto=format&n=uG1_eXMWKizfNJ6h&q=85&s=82756a5386b7bfea783c7e1b69c01e7d" autoPlay loop muted playsInline controls className="w-full aspect-video" data-path="images/connected-razorpay-integration.mp4" />
</Frame>

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.

<Frame>
  <video src="https://mintcdn.com/gallabox/zlyXiaXI2I0eCp1u/images/send-whatsapp-template-payment-captured-razorpay.mp4?fit=max&auto=format&n=zlyXiaXI2I0eCp1u&q=85&s=6ebc4fbe85dd9feafb6bf60b17a4b777" autoPlay loop muted playsInline controls className="w-full aspect-video" data-path="images/send-whatsapp-template-payment-captured-razorpay.mp4" />
</Frame>

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

<Frame>
  <video src="https://mintcdn.com/gallabox/uG1_eXMWKizfNJ6h/images/action-for-payment-captured-razorpay.mp4?fit=max&auto=format&n=uG1_eXMWKizfNJ6h&q=85&s=01c00869a065790d33dd2ebcf4233214" autoPlay loop muted playsInline controls className="w-full aspect-video" data-path="images/action-for-payment-captured-razorpay.mp4" />
</Frame>

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

<Frame>
  <img src="https://mintcdn.com/gallabox/zlyXiaXI2I0eCp1u/images/razorpay-gallabox-logs.png?fit=max&auto=format&n=zlyXiaXI2I0eCp1u&q=85&s=79b60d40e89dd0e0526002a04322d175" alt="" width="1917" height="573" data-path="images/razorpay-gallabox-logs.png" />
</Frame>

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

### Remove Razorpay Integration

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

1. Go to **Integration** on your Gallabox dashboard. Click on the **Integrated Razorpay Application.**
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.

<Frame>
  <video src="https://mintcdn.com/gallabox/zlyXiaXI2I0eCp1u/images/rp10.mp4?fit=max&auto=format&n=zlyXiaXI2I0eCp1u&q=85&s=b50d9bbd63ad1d66fbb4031916961d46" autoPlay loop muted playsInline controls className="w-full aspect-video" data-path="images/rp10.mp4" />
</Frame>

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

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

<Frame>
  <img src="https://mintcdn.com/gallabox/zlyXiaXI2I0eCp1u/images/razorpay-toggle-on.png?fit=max&auto=format&n=zlyXiaXI2I0eCp1u&q=85&s=95b3fc9581f65f220e66153ab23a5694" alt="" width="1830" height="120" data-path="images/razorpay-toggle-on.png" />
</Frame>

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

<Frame>
  <img src="https://mintcdn.com/gallabox/zlyXiaXI2I0eCp1u/images/razorpay-toggle-off.png?fit=max&auto=format&n=zlyXiaXI2I0eCp1u&q=85&s=03e6db870b04e6a85ab3841a02e60586" alt="" width="1827" height="105" data-path="images/razorpay-toggle-off.png" />
</Frame>
