[dynamic_help_sidebar root="leads"]

Opportunity Configurations

1. Feature Overview

Opportunities in LeadSquared represent potential deals. Through opportunity management, you can track various aspects of deals in progress. This article will help you understand how to create forms for multiple opportunity types, configure opportunity types, and add opportunities to your leads. To know more about opportunities, refer to Opportunity Management – Feature Guide.

 

2. Prerequisites

You must be the Administrator of your LeadSquared account to access this feature.

 

3. Manage Opportunity Types

Manage all your opportunities here, and create different fields, forms, stages and statuses for each opportunity type. Hover your cursor alongside the settings icon (under the Actions column) to edit, delete or clone an opportunity type.

LeadSquared Opportunity Management

 

4. Create New Opportunity Types

Opportunity types are templates you can create for the various products your business offers. Once an opportunity type is created, users can add leads to opportunities, and track these to completion. Examples of  opportunity types for a bank are –

  • Home loan
  • Vehicle loan
  • Health insurance
  • Credit cards
  • Fixed Deposit

You can add and configure multiple opportunity types for your organization.

  1. From the main menu, navigate to My Profile>Settings>Opportunities.
  2. Under the Opportunity Types tab, click Create.
  3. Under Create Opportunity Type, you’ll have three tabs – Basic Details, Field Configuration and Form Configuration.

Opportunities

 4.1 Basic Details

These are the basic details that are required to create an opportunity. The fields are –

Field Name Description
Name The name for your opportunity (Car Loan, Course, etc.). This field is mandatory.
Plural Name The plural name for your opportunity (Car Loans, Courses, etc.). This field is mandatory.
Description A description to help your team understand the Opportunity better.
Allow Delete To give non-Admin users permission to delete the Opportunity, check the Checkbox checkbox.
Audit Opportunity Changes To keep a log of all the changes and updates made to the Opportunity, check the Checkbox checkbox.
Restrict Operations on Closed Opportunities To prevent non-Admin users from making updates, or posting activities/tasks to a closed opportunity, check the Checkbox checkbox.

Note:

  • You must follow the above steps to update an existing opportunity.
  • To Restrict Operations on Closed Opportunities, enable the Enables restricting Operations on Closed Opportunities (Won/Lost) Organization Setting.

Once you’re done, click Next.

LeadSquared Opportunity Management

4.2 Field Configuration

Add custom fields that have to be filled out by your users while managing opportunities.

Status Configuration

You can track the current status of the opportunity in the sales funnel through Status Configuration. To configure it, click on the Settings icon icon.

  • The three statuses available by default are “Open“, “Won” and “Lost“. You cannot delete or edit these options, and you also cannot add any other status as an option.
  • Create a list of reasons for changes in each status, under Status – Reason. You can list down multiple reasons for each status. Users can select a reason from the list every time they update an opportunity status. This will help all the stakeholders track the opportunity to completion. To configure Status – Reasons
    • Add reasons for status change –
      1. Select the status for which you want to add reasons, and click the Add button found at the bottom of the page.
      2. Add reasons that are indicative of status change.
      3. Once you’ve added a reason, click the icon to save it.
      4. Repeat the same process to add multiple reasons.
    • The number in a bracket next to the status indicates the number of reasons listed for that particular status.
    • To edit an existing reason, click the Edit icon.
    • To delete an existing reason, click the delete icon.
    • To change the order of the reasons listed, use the Up Arrow and Down Arrow arrows.
  • To enable user comments while changing the opportunity status, check Checkbox Enable Comments checkbox.*
  • To set a default status for new opportunities, from the Default Status dropdown, select the status.
  • To set a default stage for new opportunities, from the Default Stage dropdown, select the stage.
  • Once you’re done, click Save.

Note:

  • * When comments are enabled, it becomes mandatory for users to enter comments when changing the status of the opportunity (across both the UI and APIs).
  • To set a Default Status and Default Stage for new opportunities, enable the Enable Default Status And Stage Organization Setting.

LeadSquared Opportunities

Field Configuration

  • A default number of fields are pre-selected. These fields are mandatory.
  • You can use the Add Field button at the bottom of the page to select multiple custom fields, depending on your requirement.
  • Under Mandatory, tick the checkboxes for mandatory fields that your users must populate.
  • To delete a field that you’ve added, click the delete icon against the field.
  • Once you are done, click Next.

Opportunity

You can also configure opportunity dropdown fields to automatically add new dropdown values sent through APIs, opportunity imports and the Update Opportunity card in Automation. To do this –

  1. Click on the icon against a dropdown field.
  2. On the Enter Dropdown Options pop-up, click the Checkbox checkbox against Allow Auto Update.
  3. Once you’re done, click Save.

Note: The Allow Auto Update feature is not support updating the field through dynamic form rules.

Field Data Types

The following data types are available by default, which can be used to configure custom opportunity fields –

  • Number
  • String
  • DateTime
  • Dropdown
  • User

LeadSquared Opportunity Management

You can also use the following additional data types to configure custom opportunity fields. To enable these data types on your account, refer to Advanced Configurations.

  • Phone – This data type stores phone numbers.
  • Email – This data type stores email Ids.
  • Date – This data type stores dates (and not time).
  • Geolocation – This data type stores geographic locations. Any location (MG Road, Indira Nagar, etc.) entered in this field can be previewed on the Opportunity Details page.

LeadSquared Opportunity Management

  • AutoID – A unique ID is automatically generated for each opportunity. This Id can be used to bulk update, import, retrieve, and delete opportunities through the Opportunity Management APIs.

LeadSquared Opportunity Management

4.3 Form Configuration

Create forms to enable your users to capture opportunity details. To know more, refer to

In this section, you can edit two types of forms – the default form and the left panel form.

Default Form

  • Under Select Form to Edit, choose “Create”.
  • There are four mandatory fields – “Created On”, “Opportunity Name”, “Owner” and “Status”. These fields cannot be deleted.
  • You can add other custom fields, through drag and drop from the list of available fields on the right side of your page.
  • You can add multiple sections to the form. To do this, scroll to the bottom of the page and click Add Section.

Opportunity

To access the form, from the main menu, navigate to Leads>Manage Opportunities, and click the Add Opportunity button, available on the right side of the screen.

Opportunity

Left Panel Form

  • Under Select Form to Edit, choose “Left Panel”.
  • Select a colour for the tab by clicking the Opportunity dropdown.
    • Along with the VCard, this colour will be visible on the Activities History tab on the Lead Details page, to help users identify all activities associated with the opportunity.
  • The two mandatory fields are First Name and Last Name.
  • You can remove existing fields by clicking the icon.
  • You can drag and drop fields from Available Fields, on the right side of the screen. You can only add fields that are available for the Opportunity.
  • Under Available Fields, you can search from your list of Lead Fields. To do this, choose Lead Fields from the dropdown.
  • Once you’re done, click Save.

Note:

Opportunity

To access the form, from the main menu, navigate to Leads>Manage Opportunities, and click on a lead on whom the Opportunity was created. On the Lead Details page, you can find the Left Panel. To edit the opportunity, hover your cursor on the top right corner of the VCard, and click the Edit icon.

Opportunity

To know how to manage opportunities, and perform multiple actions on them, such as updates, exports and reset filters, refer to Opportunity Management.

 

5. FAQs

Unable to Edit or Perform Activities on Opportunities

  • Issue: I’m unable to update opportunities or perform activities on them, even though I have the necessary permissions via permission templates.
  • Possible Causes:
    • Closed Opportunity: The issue may arise if the opportunity is in a Closed status (Won or Lost), and operations are disabled on closed opportunities.
    • Advanced Configuration Settings:
      • If the Advanced Configuration setting for restricting updates on closed opportunities is enabled, users will be unable to update or post activities/tasks on closed opportunities.
  • Solution:
    • Disable the Restrict operations on closed opportunities advanced configuration setting.

LeadSquared Opportunity Management

    • Disable the Restrict Operations on Closed Opportunities setting in the opportunity type configuration

LeadSquared Opportunity Management

 

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!

How to Add a Payment Gateway to a Form (Paytm, Stripe, Razorpay, etc.)

1. Feature Overview

You can integrate a payment gateway directly into your forms to process transactions from leads. We currently support the following payment gateways –

If you’re new to the forms feature, see How to Create a Form.

 

2. Prerequisites

  • You must be an administrator user of your LeadSquared account to access the forms feature.
  • You must have an account with a supported payment gateway provider.
  • Your form must contain First Name and Email Address fields. It is good practice to make these fields mandatory.

 

3. Adding a Payment Field to a Form

While creating a form, on the left pane click Special Fields, then drag and drop the Payment field into your form.

adding a payment field

3.1 Setting Field Properties

Now click the Payment field in your form and choose a provider from the drop-down.

payment fields in forms

Based on the payment provider you select, you’ll have to enter the corresponding field properties that appear.

Note:

  • Users can pass custom parameters to send additional data to all payment providers. An example of this would be to pass additional information, to enable your finance team to carry our reconciliation easily.
  • When a payment field is used in a Form, a webhook must be enabled (on payment gateways that support webhooks) to publish that Form.
3.1.1 RazorPay

RazorPay LeadSquared Integration

Field Property Description
Key The API keys associated with your payment provider account.
Secret
Webhook Enabled It is mandatory to configure a webhook in your RazorPay account to improve the payment experience for your customers. Configuring a webhook ensures payment status updates are posted back to LeadSquared more reliably (in case of session timeouts,  network issues, etc.). To learn more, contact your account manager.
Once you configure the webhook in your RazorPay account, toggle this setting to activate the webhook.
Webhook Secret Enter your RazorPay account webhook secret key.
Show Button in Footer When enabled, the Pay button will show up on the bottom right side of the form.

When the Pay button is placed in any form step beside the last step, leads tend to make the payment and close the form immediately. When the setting is enabled, leads will automatically be taken to the next step after they’ve made the payment, which ensures they’ll complete the rest of the steps before submitting it.

In cases when the Pay button is placed in the form’s last step, it ensures leads can complete the payment and submit the form in one go. To know more, reach out to your account manager.

We support hosted check-out for Razorpay. So instead of using the default LeadSquared pop-up, you can redirect users to a checkout process in a new tab.

RazorPay

3.1.2 PayUMoney

PayU LeadSquared Integration

Field Property Description
Key The API keys associated with your payment provider account.
Salt
Transaction ID Generator Let’s you generate a transaction ID using a particular convention.
Webhook Enabled It is mandatory to configure a webhook in your PayUMoney account to improve the payment experience for your customers. Configuring a webhook ensures payment status updates are posted back to LeadSquared more reliably (in case of session timeouts,  network issues, etc.). To learn more, contact your account manager.
Once you configure the webhook in your PayUMoney account, toggle this setting to activate the webhook.
Show Button in Footer When enabled, the Pay button will show up on the bottom right side of the form.

When the Pay button is placed in any form step besides the last step, leads tend to make the payment and close the form immediately. When the setting is enabled, leads will automatically be taken to the next step after they’ve made the payment, which ensures they’ll complete the rest of the steps before submitting it.

In cases when the Pay button is placed in the form’s last step, it ensures leads can complete the payment and submit the form in one go. To know more, reach out to your account manager.

3.1.3 PayUBiz

PayUBiz LeadSquared Integration

Field Property Description
Key The API keys associated with your payment provider account.
Salt
Test Mode
Allows you to test payments on a staging environment.
Webhook Enabled  It is mandatory to configure a webhook in your PayUBiz account to improve the payment experience for your customers. Configuring a webhook ensures payment status updates are posted back to LeadSquared more reliably (in case of session timeouts,  network issues, etc.). To learn more, contact your account manager.
Once you configure the webhook in your PayUBiz account, toggle this setting to activate the webhook.
Show Button in Footer When enabled, the Pay button will show up on the bottom right side of the form.

When the Pay button is placed in any form step beside the last step, leads tend to make the payment and close the form immediately. When the setting is enabled, leads will automatically be taken to the next step after they’ve made the payment, which ensures they’ll complete the rest of the steps before submitting it.

In cases when the Pay button is placed in the form’s last step, it ensures leads can complete the payment and submit the form in one go. To know more, reach out to your account manager.

3.1.4 PayTM

Paytm LeadSquared Integration

Field Property Description
Merchant ID The Merchant Id associated with your PayTM account.
Merchant Key The Merchant Key associated with your PayTM account.
Industry Type Id
Industry ID (MCC) which the Tenant has registered with Paytm
Website URL of the tenant registered with PayTM.
Test Mode
Allows you to test payments on a staging environment.
Show Button in Footer When enabled, the Pay button will show up on the bottom right side of the form.

When the Pay button is placed in any form step beside the last step, leads tend to make the payment and close the form immediately. When the setting is enabled, leads will automatically be taken to the next step after they’ve made the payment, which ensures they’ll complete the rest of the steps before submitting it.

In cases when the Pay button is placed in the form’s last step, it ensures leads can complete the payment and submit the form in one go. To know more, reach out to your account manager.

3.1.5 Authorize.Net

Authorize.Net LeadSquared Integration

Field Property Description
API Login Id The API Login Id and Transaction Key associated with your Authorize.Net account. Login to your Authorize.Net merchant account and check under ‘Settings’.
Transaction Key
Public Client Token The public client token generated for the transaction. For more information, see Authorize.Net API Docs.
Test Mode Allows you to test payments on a staging environment.
Show Button in Footer When enabled, the Pay button will show up on the bottom right side of the form.

When the Pay button is placed in any form step beside the last step, leads tend to make the payment and close the form immediately. When the setting is enabled, leads will automatically be taken to the next step after they’ve made the payment, which ensures they’ll complete the rest of the steps before submitting it.

In cases when the Pay button is placed in the form’s last step, it ensures leads can complete the payment and submit the form in one go. To know more, reach out to your account manager.

3.1.6 PayFast

Payfast LeadSquared Integration

Field Property Description
Merchant Id The Merchant Id, Salt Passphrase and Merchant Key associated with your PayFast account are available on your PayFast Dashboard.
Salt Passphrase
Merchant Key
Test Mode Allows you to test payments on a staging environment.
Show Button in Footer When enabled, the Pay button will show up on the bottom right side of the form.

When the Pay button is placed in any form step beside the last step, leads tend to make the payment and close the form immediately. When the setting is enabled, leads will automatically be taken to the next step after they’ve made the payment, which ensures they’ll complete the rest of the steps before submitting it.

In cases when the Pay button is placed in the form’s last step, it ensures leads can complete the payment and submit the form in one go. To know more, reach out to your account manager.

3.1.7 Easebuzz

Easebuzz LeadSquared Integration

Field Property Description
Key The API keys associated with your Easebuzz account.
Secret
Test Mode Allows you to test payments on a staging environment.
Webhook Enabled  It is mandatory to configure a webhook in your EaseBuzz account to improve the payment experience for your customers. Configuring a webhook ensures payment status updates are posted back to LeadSquared more reliably (in case of session timeouts,  network issues, etc.). To learn more, contact your account manager.
Once you configure the webhook in your Easebuzz account, toggle this setting to activate the webhook.
Show Button in Footer When enabled, the Pay button will show up on the bottom right side of the form.

When the Pay button is placed in any form step beside the last step, leads tend to make the payment and close the form immediately. When the setting is enabled, leads will automatically be taken to the next step after they’ve made the payment, which ensures they’ll complete the rest of the steps before submitting it.

In cases when the Pay button is placed in the form’s last step, it ensures leads can complete the payment and submit the form in one go. To know more, reach out to your account manager.

3.1.8 Stripe

Stripe LeadSquared Integration.1

Field Property Description
Publishable Key The API and Secret Key associated with your Stripe account. To know how to obtain it, please refer to Locate API keys in the Stripe Dashboard.
Secret Key
Show Button in Footer When enabled, the Pay button will show up on the bottom right side of the form.

When the Pay button is placed in any form step beside the last step, leads tend to make the payment and close the form immediately. When the setting is enabled, leads will automatically be taken to the next step after they’ve made the payment, which ensures they’ll complete the rest of the steps before submitting it.

In cases when the Pay button is placed in the form’s last step, it ensures leads can complete the payment and submit the form in one go. To know more, reach out to your account manager.

3.2 Setting Product Properties

After setting the field properties, click Product Properties on the right pane.

product properties

Field Property Description
Product Information Details on the product.
Currency Choose between Indian Rupee (INR), US Dollar (USD), European Euro (EUR) and Singapore Dollar (SGD).
Set Amount Via You may either enter an exact amount or set the amount via API.

  • If you select Fixed, you must enter the amount in the field below.
  • If you select API, you must enter the API URL.
Currency Unit The currency unit you’d like to utilize. For example, Rupee or Paise, Dollars or Cents, etc.

In addition to the field and product properties, you can use the validation properties to make the payment field mandatory and/or hide the field by default (the field will only appear if there is an explicit ‘Show’ form rule associated with it).

3.3 Setting the Payment Value and Currency Dynamically via Rules

You can set the value of the payment and *currency dynamically using form rules. As a prerequisite, you must write a LeadSquared Lapp, or use Mavis DB or API, from where you can fetch the payment and currency values.

*Note: Only Razorpay and Stripe currently support dynamically setting the currency.

Here’s an example of a simple JSON you can use to dynamically set payment and currency values –

{
"Amount": 500,
"Currency": "GBP"
}
  1. After adding the payment field to your form, navigate to the Rules tab.
  2. Create a rule with the conditions and actions as per your requirements.

In this example, we’re setting the value of the payment through API depending on the insurance product being purchased. Be sure to enter the API URL and enter the correct response key to map the payment (and/or currency) parameters, to set the value of the chosen field.

setting payment value dynamically

Once you’re done you can Save and Exit. For more information on forms, see How to Create a Form.

 

4. Demo

Once you’ve published your form and created a process, you’ll be ready to receive payments through your selected payment provider.

Show Button in Footer is Disabled

Paytm payment in forms

Show Button in Footer is Enabled

Payment Preview

Payment Page

Paytm payment page

 

5. Async Payment Processing

You can process payments asynchronously to ensure that payment activities are posted to LeadSquared even if end-users are experiencing internet issues.

Note: This feature is currently supported only for RazorPay.
  1. Navigate to Settings>Additional Settings.
  2. Click Slider to Enable Async Processing.

 Async Payment Processing Form Settings

Enabling Webhooks

It is mandatory to generate a webhook and configure it in the payment provider’s account (if it supports webhooks) to ensure that payment events are more reliably delivered to LeadSquared. This helps avoid issues where the payment provider doesn’t pass on the event data to the LeadSquared endpoint due to internet issues, end-user intervention, etc.

Webhooks can be configured for the following providers –

  • RazorPay
  • PayUBiz
  • PayUMoney
  • EaseBuzz
  • Paytm

To set up a webhook for any of the listed payment providers, contact your account manager or support@leadsquared.com. Alternatively, you may set it up using this guide for Async API Webhook URL Generation Method.

Once the webhook is configured in the payment provider’s account, ensure that the enabled webhook is enabled in the LeadSquared payment form –

LeadSquared Forms

 

Any Questions?

If you have any doubts related to this article, please contact us at support@leadsquared.com or leave us a comment below.