Purchasing Power Tool

Purchasing Power Tool

LoanSense Embedded Tools give both developers and non-developers a configurable application layer for the tool. All LoanSense Embedded Tools are production quality responsive web applications.

To access our embedded tools and apis contact us info@myloansense.com to get an api key.

Purchasing Power Tool

Simple Embed Instructions

You can embed the purchasing power tool in your website or web application by simply copy and pasting the code snippet below. You will need to input your apiKey and your partnerCode that you receive from LoanSense.

<div id="loansense-widget"></div>
<script>
  (function (w, d) {
    if (w.LoanSenseWidget) {
      console.error("LoanSenseWidget already included");
      return;
    }
    var elt = d.createElement("script");
    elt.type = "text/javascript";
    elt.defer = true;
    elt.addEventListener("load", load);
    elt.src = "https://tools.myloansense.com/index.js";
    var b = d.getElementsByTagName("script")[0];
    b.parentNode.insertBefore(elt, b);
    function load() {
      w.LoanSenseWidget.init("{{API_KEY}}", {
        partnerCode: "{{PARTNER_CODE}}",
      });
      elt.removeEventListener("load", load);
    }
  })(window, document);
</script>

Advanced Embed Options

With No Heading

You can use removeHeader property and set it as true to remove the heading from the widget.

<div id="loansense-widget"></div>
<script>
  (function (w, d) {
    if (w.LoanSenseWidget) {
      console.error("LoanSenseWidget already included");
      return;
    }
    var elt = d.createElement("script");
    elt.type = "text/javascript";
    elt.defer = true;
    elt.addEventListener("load", load);
    elt.src = "https://tools.myloansense.com/index.js";
    var b = d.getElementsByTagName("script")[0];
    b.parentNode.insertBefore(elt, b);
    function load() {
      w.LoanSenseWidget.init("{{API_KEY}}", {
        partnerCode: "{{PARTNER_CODE}}",
        removeHeader: true,
      });
      elt.removeEventListener("load", load);
    }
  })(window, document);
</script>

With No Heading and a Transparent Background

<div id="loansense-widget"></div>
<script>
  (function (w, d) {
    if (w.LoanSenseWidget) {
      console.error("LoanSenseWidget already included");
      return;
    }
    var elt = d.createElement("script");
    elt.type = "text/javascript";
    elt.defer = true;
    elt.addEventListener("load", load);
    elt.src = "https://tools.myloansense.com/index.js";
    var b = d.getElementsByTagName("script")[0];
    b.parentNode.insertBefore(elt, b);
    function load() {
      w.LoanSenseWidget.init("{{API_KEY}}", {
        partnerCode: "{{PARNTER_CODE}}",
        removeHeader: true,
        background: "transparent",
      });
      elt.removeEventListener("load", load);
    }
  })(window, document);
</script>

All Options for Purchasing Power Tool

When initializing the LoanSense Widget by calling LoanSenseWidget.init(apiKey, options) you can pass any of these properties in the options object

PropertyTypeRequiredDescription
partnerCodeStringYesPartner Code provided by LoanSense
primaryColorStringNoPrimary color of the widget. Default is #2D9CDB
removeHeaderBoolNoRemoves the header from the widget. Default is false
backgroundStringNoHex color code to replace the background color of the widget
prefilledDataObjectNoPrefills the data in the widget. See Prefilled Data for more details.

Prefilled Data

All available properties for prefilled data are listed below. You can pass any of these properties in the prefilledData object

PropertyTypeDescription
defaultAnnualIncomeNumberYour client's annual income.
defaultStudentLoanbalanceNumberYour client's student loan balance.
defaultMinCredCardPaymentNumberYour client's min credit card payment.
defaultCarPaymentNumberYour client's car payment.
defaultOtherLoansNumberYour client's other loans.
defaultAverageStudentLoanRateFloatYour client's average student loan rate. Number should be less than 1 and greater than 0
defaultFamilySizeNumberYour client's family size.
defaultDTIFloatYour client's debt to income ratio. Number should be less than 1 and greater than 0
defaultLoanTermsNumberYour client's loan terms.
defaultMortgageInterestRateFloatYour client's mortgage interest rate. Number should be less than 1 and greater than 0
defaultDownPaymentPercentageFloatYour client's down payment percentage. Number should be less than 1 and greater than 0