# 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FOjEfgQFlkdfuAbPyanHK%2FConnected%20Razorpay%20Integration.gif?alt=media&#x26;token=6c43b255-3e52-4efd-8fb4-8f2ef3480de8" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FuKOxY5e7awFADI6i4F07%2FSend%20WhatsApp%20Template%20-%20Payment%20Captured%20-%20Razorpay.gif?alt=media&#x26;token=099c3985-2800-4cf5-a636-15afa2f89f96" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FaQVyeUE3nymNTZpqy8fb%2FAction%20for%20Payment%20Captured%20-%20Razorpay.gif?alt=media&#x26;token=fd313375-426f-4681-a4cc-7c8b9078447b" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FnLznHFe83ljz91nSRSdV%2FRazorpay%20Gallabox%20logs.png?alt=media&#x26;token=8a02c8c2-5103-493f-adfc-69c52c75ba69" 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="broken-reference" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FrJwTvJD9EJgjcs5HhqAh%2Frp10.gif?alt=media&#x26;token=1ebd3d69-4ff7-4cb8-8fef-bc1cf4a9afc9" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FRzPO8ksSvbawJUEwAmIl%2FRazorpay_toggle_on.png?alt=media&#x26;token=45dae6d0-a1f2-4bb5-979c-bb0a6a560584" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FaHjxjl7ZedhYgxZDTgtE%2FRazorpay_toggle_off.png?alt=media&#x26;token=e152ca6d-f477-4814-ba91-ba883d18945f" alt=""><figcaption></figcaption></figure>
