Partners widgets

Hire-purchase - vertical

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/hire-purchase/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest=&period="  width="200px" height="300px" frameborder="no" scrolling="no"></iframe><script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • price_based_interest - if value is 'true', then interest is calculated based initial price
  • info_url - to replace "Apply" with "Get info" link
  • period - period (in months, 3 months per step)

Hire-purchase - horizontal

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/hire-purchase/horizontal/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest=&period="  width="100%" height="100px" frameborder="no" scrolling="no"></iframe><script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • price_based_interest - if value is 'true', then interest is calculated based initial price
  • info_url - to replace "Apply" with "Get info" link
  • period - period (in months, 3 months per step)

Hire-purchase - compact

<iframe src="//partners.lhv.ee/en/widget/hire-purchase/compact/?code=XX-YYYYYYYYY&price=&period=&info_url=&price_based_interest="
    width="320px" height="100px" frameborder="no" scrolling="no"></iframe>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • price_based_interest - if value is 'true', then interest is calculated based initial price
  • info_url - to replace "Apply" with "Get info" link
  • period - period (in months, 3 months per step)

Hire-purchase - JavaScript

<script src="https://partners.lhv.ee/assets/scripts/calculator.min.js"></script>
<script>
    var loan = new LHV.hirePurchase()
    loan.price = 500
    loan.advance = 0
    loan.period = 3
    loan.interest = 10.9
    loan.priceBasedInterest = false

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monthly-payment').innerHTML = monthlyPayment.payment
    }
</script>

If You want to use Your own HTML and just our JS to calculate monthly payment:

  1. Link to calculator JS from https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Define new LHV.hirePurchase class and set its parameters. All parameters are optional. Values set in this example are default values (so You know what they are).

  3. Get monthly payment with function getMonthlyPayment(). Function returns object containing parameter payment. In case of error, this returns object containing parameter error. Returned object also contains all input (or default) parameters. You can give parameters directly to this function like getMonthlyPayment(500, 0, 4, 15.9, false)

Consumer loan - vertical

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/consumer-loan/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Consumer loan - horizontal

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/consumer-loan/horizontal/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="100%" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Consumer loan - compact

<iframe src="//partners.lhv.ee/en/widget/consumer-loan/compact/?code=XX-YYYYYYYYY&price=&period=&interest=&info_url="
    width="320px" height="100px" frameborder="no" scrolling="no"></iframe>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Consumer loan - JavaScript

<script src="https://partners.lhv.ee/assets/scripts/calculator.min.js"></script>
<script>
    var loan = new LHV.ApplianceLoan()
    loan.price = 1000
    loan.period = 60
    loan.interest = 15.9

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monthly-payment').innerHTML = monthlyPayment.payment
    }
</script>

If You want to use Your own HTML and just our JS to calculate monthly payment:

  1. Link to calculator JS from https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Define new LHV.ApplianceLoan class and set its parameters. All parameters are optional. Values set in this example are default values (so You know what they are).

  3. Get monthly payment with function getMonthlyPayment(). Function returns object containing parameter payment. In case of error, this returns object containing parameter error. Returned object also contains all input (or default) parameters. You can give parameters directly to this function like getMonthlyPayment(1000, 60, 15.9)

Appliance loan - vertical

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/appliance-loan/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Appliance loan - horizontal

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/appliance-loan/horizontal/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="100%" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Appliance loan - JavaScript

<script src="https://partners.lhv.ee/assets/scripts/calculator.min.js"></script>
<script>
    var loan = new LHV.consumerLoan()
    loan.price = 1000
    loan.period = 60
    loan.interest = 15.9

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monthly-payment').innerHTML = monthlyPayment.payment
    }
</script>

If You want to use Your own HTML and just our JS to calculate monthly payment:

  1. Link to calculator JS from https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Define new LHV.consumerLoan class and set its parameters. All parameters are optional. Values set in this example are default values (so You know what they are).

  3. Get monthly payment with function getMonthlyPayment(). Function returns object containing parameter payment. In case of error, this returns object containing parameter error. Returned object also contains all input (or default) parameters. You can give parameters directly to this function like getMonthlyPayment(1000, 60, 15.9)

Car loan - vertical

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/car-loan/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Car loan - horizontal

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/car-loan/horizontal/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="100%" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Car loan - JavaScript

<script src="https://partners.lhv.ee/assets/scripts/calculator.min.js"></script>
<script>
    var loan = new LHV.carLoan()
    loan.price = 3000
    loan.period = 72
    loan.interest = 9.9

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monthly-payment').innerHTML = monthlyPayment.payment
    }
</script>

If You want to use Your own HTML and just our JS to calculate monthly payment:

  1. Link to calculator JS from https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Define new LHV.carLoan class and set its parameters. All parameters are optional. Values set in this example are default values (so You know what they are).

  3. Get monthly payment with function getMonthlyPayment(). Function returns object containing parameter payment. In case of error, this returns object containing parameter error. Returned object also contains all input (or default) parameters. You can give parameters directly to this function like getMonthlyPayment(3000, 72, 9.9)

Home repair loan - vertical

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/home-repair-loan/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Home repair loan - horizontal

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/home-repair-loan/horizontal/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="100%" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Home repair loan - JavaScript

<script src="https://partners.lhv.ee/assets/scripts/calculator.min.js"></script>
<script>
    var loan = new LHV.homeRepairLoan()
    loan.price = 3000
    loan.period = 72
    loan.interest = 9.9

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monthly-payment').innerHTML = monthlyPayment.payment
    }
</script>

If You want to use Your own HTML and just our JS to calculate monthly payment:

  1. Link to calculator JS from https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Define new LHV.homeRepairLoan class and set its parameters. All parameters are optional. Values set in this example are default values (so You know what they are).

  3. Get monthly payment with function getMonthlyPayment(). Function returns object containing parameter payment. In case of error, this returns object containing parameter error. Returned object also contains all input (or default) parameters. You can give parameters directly to this function like getMonthlyPayment(3000, 72, 9.9)

Home furnishing loan - vertical

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/home-furnishing/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="200px" height="400px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 4000)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Home furnishing loan - horizontal

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/home-furnishing/horizontal/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="100%" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 4000)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Home furnishing loan - JavaScript

<script src="https://partners.lhv.ee/assets/scripts/calculator.min.js"></script>
<script>
    var loan = new LHV.homeFurnishing()
    loan.price = 1000
    loan.period = 60
    loan.interest = 15.9

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monthly-payment').innerHTML = monthlyPayment.payment
    }
</script>

If You want to use Your own HTML and just our JS to calculate monthly payment:

  1. Link to calculator JS from https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Define new LHV.homeFurnishing class and set its parameters. All parameters are optional. Values set in this example are default values (so You know what they are).

  3. Get monthly payment with function getMonthlyPayment(). Function returns object containing parameter payment. In case of error, this returns object containing parameter error. Returned object also contains all input (or default) parameters. You can give parameters directly to this function like getMonthlyPayment(1000, 60, 15.9)

Health and beauty loan - vertical

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/health-loan/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Health and beauty loan - horizontal

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/health-loan/horizontal/?code=XX-YYYYYYYYY&price=&interest=&info_url=&price_based_interest="  width="100%" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • price - price (for example 1200)
  • interest - interest rate (for example 19.9)
  • info_url - to replace "Apply" with "Get info" link

Health and beauty loan - JavaScript

<script src="https://partners.lhv.ee/assets/scripts/calculator.min.js"></script>
<script>
    var loan = new LHV.healthLoan()
    loan.price = 1000
    loan.period = 60
    loan.interest = 15.9

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monthly-payment').innerHTML = monthlyPayment.payment
    }
</script>

If You want to use Your own HTML and just our JS to calculate monthly payment:

  1. Link to calculator JS from https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Define new LHV.healthLoan class and set its parameters. All parameters are optional. Values set in this example are default values (so You know what they are).

  3. Get monthly payment with function getMonthlyPayment(). Function returns object containing parameter payment. In case of error, this returns object containing parameter error. Returned object also contains all input (or default) parameters. You can give parameters directly to this function like getMonthlyPayment(1000, 60, 15.9)

Home loan - horizontal

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
    <iframe src="//partners.lhv.ee/en/widget/home-loan//?code=XX-YYYYYYYYY&amount=&period=&interest=" id="" width="100%" height="640px" frameborder="no" scrolling="no" onload="iFrameResize({log:false});"></iframe>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)

Home loan - campaign

<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
    <iframe src="//partners.lhv.ee/en/widget/home-loan/campaign/?code=XX-YYYYYYYYY&amount=&period=&interest=" id="" width="100%" height="600px" frameborder="no" scrolling="no" onload="iFrameResize({log:false});"></iframe>

Parameters:

  • code - partner unique code (for example XX-YYYYYYYYY)
  • amount - Amount
  • interest - Interest
  • period - Period in years

Instalment calculator

<div id="lhv-bnpl-calculator-widget"></div>
<script src="https://partners.lhv.ee/assets/scripts/bnplCalculator.js"></script>
<script>
    var loan = new LHV.bnplLoan();        
    loan.price = 400.00;
    loan.setLanguage('en');
    loan.createWidget('lhv-bnpl-calculator-widget');
</script>

Add the code below to your website and replace the loan.price value with the product price, which must be between 30 and 1500 euros. This will allow the calculator widget to dynamically calculate and display the monthly payment amount on your website. If the entered loan.price does not fall within this range, the calculator will not be displayed, and an error message will be logged to the browser console.

Instalment

<script src="https://partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="https://partners.lhv.ee/assets/templates/bnpl.html?lang=ee" width="100%" height="500px" frameborder="no" scrolling="yes"></iframe>
<script>
    window.onload = function () {
        if (typeof iFrameResize === "function") {
            iFrameResize({ log: false, heightCalculationMethod: "bodyScroll" }, "iframe");
        }
    };
</script>

Parameters:

  • lang - Default language. (ee, en, ru)