Razorpay
The Razorpay piece in ZBrain Flow lets you integrate payment functionality into your workflows using Razorpay’s API. You can create payment links or make custom API calls to Razorpay endpoints, helping automate payment collections, manage transactions, and streamline billing actions without leaving your automation setup.
How to use Razorpay in ZBrain Flow
Select Razorpay as your connection
Click the ‘+’ button in your Flow and search for Razorpay.
Select Razorpay and then choose the action you want to use. ZBrain Flow provides two options:
Custom API call – Make a direct call to any Razorpay API endpoint.
Create payment link – Automatically generate and share a payment link.
How to create a Razorpay connection in ZBrain Flow
Before using any Razorpay action in ZBrain Flow—whether it's creating a payment link or a custom API call—you must first create a connection with your Razorpay account. Here’s how to do it:
In the ‘Connection’ dropdown of any Razorpay action, click on ‘create connection’.
A small window will appear prompting you to enter the following connection details:
Enter a name in the ‘Connection Name’ field (e.g., Razorpay-Test).
Paste your Razorpay’s ‘Key ID’.
Enter the corresponding ‘Key Secret’.
Click ‘Save’ to finish creating the connection.
How to get your key ID and key secret
Log in to your Razorpay Dashboard using your account credentials.
Choose the mode for which you want to create the connection: test or live.
Go to Settings > API Keys > Generate Key to create a new key for the selected mode.
Once generated, you’ll see a Key ID and Key Secret in a pop-up window. Copy both—this is the only time you’ll be able to view the Key Secret.
How to use Razorpay custom API call in ZBrain Flow
Before you begin, make sure you’ve already created a Razorpay connection. If not, follow the connection setup instructions shared earlier.
Configuration steps:
In the ‘URL’ field, enter the full Razorpay API endpoint you want to call. The base URL is typically
https://api.razorpay.com/v1/
.Choose the appropriate HTTP method (GET, POST, PUT, DELETE, etc.) from the ‘Method’ dropdown.
In the ‘Headers’ section, add any custom headers if required. Note: Authorization headers are automatically added from the connection, so you don’t need to include them manually.
Add any ‘Query Parameters’ if the endpoint requires them.
In the ‘Body’ section, enter the payload if your method is POST or PUT.
Enable the ‘No Error on Failure’ toggle if you want the flow to continue even when the API call fails.
Set the ‘Timeout (in seconds)’ if needed, which defines how long the system should wait for a response before failing the request.
Once configured, the custom API call will execute as part of your automation flow, allowing direct control over Razorpay’s API endpoints.
How to use the Razorpay create payment link action in ZBrain Flow
Before starting, ensure you’ve created a Razorpay connection. If not, follow the connection creation steps already shared above.
Configuration steps:
Enter the payment amount in the ‘Amount’ field.
Specify the currency in the ‘Currency’ field.
You can optionally fill in the ‘Reference ID’ to track the transaction later. Use the ‘Description’ field to provide a note or purpose for the payment link.
In the ‘Customer Name’ field, add the payer’s full name. Enter the customer’s mobile number in the ‘Customer Contact’ field. To send an SMS notification, enable the ‘Notify via SMS’ toggle.
Optionally, add the customer’s email address in the ‘Customer Email’ field. To send the payment link over email, enable the ‘Notify via Email’ toggle.
You can pass additional metadata using the ‘Notes’ field.
To get updates after the payment is completed, enter your endpoint in the ‘Callback URL’ field and the appropriate method in the ‘Callback Method’ field.
Once configured, the action will generate a Razorpay payment link and optionally notify the customer based on the provided contact details.
Last updated