Juspay Payment Status Connector

1. Feature Overview

Once a Juspay payment link is generated using the Juspay Payment Link Generation connector, you can track the status of these payment links using the Juspay Payment Status Connector.


  • This connector only generates payment links, which can be used by existing leads in your LeadSquared account.
  • This connector DOES NOT capture and create new leads in your LeadSquared account.
  • It DOES NOT generate payment links. It only captures the payment status.

Juspay Payment LeadSquared connector


2. Prerequisites

  • You must be the Administrator of your LeadSquared account.
  • You must have an active Juspay account.
  • This is a paid feature. To enable it, reach out to your account manager, or write to support@leadsquared.com.


3. How it Works

  1. Install and configure the Juspay Payment Status connector
    As part of the connector configuration, two custom activities are automatically created – Check Juspay payment status (uses the Order ID to check the payment status) and Juspay payment status (this fetches the order and payment information from your Juspay account). When the connector is enabled, a webhook URL is generated. Copy this URL.
  2. Create an automation
    Use the New Activity on Lead Trigger, and select the Check Juspay payment status activity as the automation event trigger. Add a Webhook action to this automation, paste the connector’s webhook URL to this automation action, and publish the automation. This automation is used to generate the Juspay payment link.
  3. Post the activity
    Once the automation is published, post the Check Juspay payment status activity on the lead.

Once the Check Juspay payment status activity is posted, based on the automation you’ve set up, the Juspay Payment Status activity is automatically posted on the lead. This activity contains the order and payment details.


4. Install the Connector

  1. Navigate to Apps>Apps Marketplace.
  2. Search for Juspay Payment Status, and click Install.
    • Alternatively, you can find the connector on the left panel, under Payment Gateway.
  3. Once installed, hover your cursor over , and click Configure.


5. Configure the Connector

Once you’ve installed the connector, on the Configure Juspay Payment Status pop-up, configure the connector access for the non-Admin users in your account. Only those users for whom access is granted can view and access the connector (under the Apps main menu).

  1. Select if you want to grant Connector Access that’s Based on Role or Advanced (User Level).
    • Based on Role – From the Specify Roles dropdown, select the LeadSquared user roles that can use the connector.
    • Advanced (User Level) – From the Advanced (User Level) dropdown, select a user boolean field. Based on the value entered in the selected boolean field, the user can access the connector (e.g., for the user Sam, if the “Is Employee” boolean user field contains the value “Yes”, then this user can access the connector).
  2. Once you’re done, click Save Details. To continue the configuration, refer to the below sections.
Note: By default, all Admin users will have access to the connector.

Juspay Payment LeadSquared connector


6. Admin Configurations

To continue the connector configuration, navigate to Apps>Juspay Payment Status.

Juspay Payment LeadSquared connector

6.1 Basic Details

Enter the following details –

Juspay Payment LeadSquared connector

Your Juspay-merchant unique key. To obtain this, please contact your Juspay account manager.
Lead SourceEnter the lead source through which the leads were captured (e.g., Juspay, email campaign, etc.). This detail will be displayed on the Lead Details page, under Lead Source.
Default Country CodeIf the lead’s mobile number is captured without a country code, then the default country code that’s selected from the dropdown will be added to the lead’s mobile number.
Select Time ZoneThe time zone of your Juspay account.
Lead Capture Search By CriteriaTo avoid creating duplicate leads, you must select one unique lead field (e.g., email Id, mobile number, PAN number, etc.) as the search key.

To know how to mark a LeadSquared lead field as unique, please refer to How to Make a Custom Field Unique.

Lead Capture Secondary Search By CriteriaIf lead identification and capture through the primary Search By Criteria fails, it will be re-attempted using the secondary Search By Criteria.
Select User to Notify on FailureIf there is an error in fetching leads, the selected user will receive a failure message via email. You can select a user from the list of all the users available in your LeadSquared account.

To know more about the type of errors, please refer to Error Notifications.

Enable NotificationTo ensure notification emails are sent to the selected user when there’s a failed query, enable the Checkbox checkbox.

Once you’re done entering all the details, click Save & Next.


6.2 Mapping

Once you’re done with the basic settings, click Entity Options. By default, all the Juspay fields are mapped to the corresponding LeadSquared lead fields. You’ll have to complete two steps here –

  1. Enable Activity Creation* – Alongside Juspay payment status and Check Juspay payment status, click the Create Activity button.
  2. Edit Mapping – Alongside each action (Activity Entity, Payment Link Creation, and Lead/Contact Entity) click the Edit Mapping button to verify if the field mapping is accurate. Once verified, click Save & Close. This step is mandatory.
    If required, on the Edit Mapping pop-up, you can edit the field mapping –
  • To edit the Juspay mapping field name, click  , and under Mapping Key, edit the field name.
  • To change the LeadSquared lead field to which the Juspay field is mapped, click  , and from the Lead Field dropdown, select the new lead field.
  • To mark a unique lead field as the search key, click unique icon.
  • To disable an existing field mapping, alongside the field, disable the slider Zoom.
  • To map an additional field, click the Add Custom button, and add the new mapping field details.
  • To edit the Payment Link Creation API details, click  , and make the required changes.
  • If you want to capture any additional API response as part of the activity that’s posted on the lead, alongside Activity Entity, click Edit Mapping, and add the response on the Default Mapping for Activity pop-up.

Once you’re done, click Save & Next.


  • *Ensure you complete the Enable Activity Creation steps first, and only then complete the Edit Mapping steps.
  • On the Default Mapping for Activity screen, ensure the default activity is set to Juspay Payment Status.
  • You must mandatorily verify the mapping for Lead/Contact Entity, Payment Link Creation and Activity Entity, and click Save & Close for each action type (including alongside Lead/Contact Entity), in order to complete the Mapping.
  • Since this connector is capturing the payment details as an activity, the Sync Behaviour is by default set to Do Nothing. It is recommended you don’t change this to any other setting.

Juspay Payment LeadSquared connector


6.3 Webhook URL

After you provide basic details and finish field mapping, a custom webhook URL is generated. Copy this webhook URL, and use it to create an automation that will generate the payment links.

Juspay Payment LeadSquared connector


7. Create an Automation

Use the Webhook URL from the previous step to create an automation that generates the Juspay payment links.

  1. Navigate to Workflow>Automation, and click Create Automation, and select any Activity trigger. We’ve selected the New Activity on Lead trigger.
  2. On the Automation starts when an activity is added pop-up –
    • From the Select an activity dropdown, select the Check Juspay Payment Status activity.
    • Disable the checkbox alongside Run only once per lead. This is to ensure that if required, multiple payment links can be generated for the same lead.
    • Once you’re done, click Save.
  3. Click Add Automation, and under Custom, click Webhook.
  4. On the Webhook pop-up, enter the following details –
    • Name – Enter a relevant name for the webhook. We’re calling it “Check Juspay Payment Status”.
    • URL – Select the method as https://, and paste the connector’s webhook URL that was generated in the previous step. Before you paste the URL, ensure you remove “https://” from the URL.
    • Content Type – Select application/json.
    • Save Response – You can select either Yes or No.
    • Custom Headers – You can skip this step.
    • Notify on Failure – Select which user you want to notify if the webhook fails.
    • Retry Count – The number of times you want to retry when the webhook fails.
  5. Once you’re done, click Save, and then click Publish.
Note: To know more about the Webhook action, refer to User Automation Actions – Webhook.

Juspay Payment LeadSquared connector


8. Post an Activity

Once the webhook is configured in an automation, you can start posting the Check Juspay Payment Status activity on leads, which will in turn automatically post the Juspay Payment Link activity.

Note: This section is to help Sales Users check the payment status.
  1. Navigate to Leads>Manage Leads, and click on any lead.
  2. On the Lead Details page, click the Activity button. On the Add Notable Activity pop-up, enter the Order ID.
  3. Once you’re done, click Add. The Check Juspay Payment Status is posted on the lead.
  4. You’ll see the Check Juspay Payment Status activity has been posted on the lead (by the automation you set up). If you don’t see this, please refresh your page. This activity contains the payment status of the selected Order ID.

Juspay Payment LeadSquared connector


9. View Logs

Here, you can view logs of all the sync jobs that have taken place.

  1. Navigate to Apps>Check Juspay payment status, and click More Options, and then click View Logs.
  2. You can filter the logs by selecting a date range (Today, Last 7 Days, This Month, and Last Month), by selecting the Job Status (“All”, “Success” and “Failure”), and by selecting the Sync Status (All, Error, and Success).
  3. You can view the sync status of the following events –
    • New Events – List of all the new payment activities posted in your account.
    • Errors – The list of unsuccessful payment activities that have not been captured due to mapping errors (e.g., when a boolean field is mapped to an integer field, etc.).
  4. To view the Sync Response details, under Request ID/Sync Job ID, click the Id.
    • Under the right panel, you can view the response status, the API URL, the request, and the response.
    • The responses that are successful will contain the details of the leads that have been pushed by Juspay.
    • To view the lead capture response under Sync API Response, Leads Updated and Errors in Leads, click Information.


  • For a response that contains an error, the reason for the error is listed in the response. Once you fix it, you can click the Retry button to perform the sync again.
  • The current Lead/Activity Sync Behaviour will reflect in the Logs screen. This will help identify the sync that’s used (Capture or Update) for the selected Request/Sync Job Id.

Juspay Payment LeadSquared connector


Any Questions?

Did you find this article helpful? Please let us know any feedback you may have in the comments section below. We’d love to hear from you and help you out!

Was this Helpful?

Notify of
Inline Feedbacks
View all comments