ruet

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 "Submit application" with "Get info" link

Hire-purchase - vertical
Hire-purchase - horizontal
Hire-purchase - JavaScript

Consumer loan - vertical
Consumer loan - vertical 2
Consumer loan - horizontal
Consumer loan - horizontal 2
Consumer loan - JavaScript

Car loan - vertical
Car loan - vertical 2
Car loan - horizontal

Home repair loan - vertical
Home repair loan - vertical 2
Home repair loan - horizontal

Hire-purchase

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="
    width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
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="
    width="540px" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
Hire-purchase - JavaScript
<script src="https://partners.lhv.ee/assets/scripts/calculator.min.js"></script>
<script>
    var loan = new LHV.consumerLoan()
    loan.price = 500
    loan.advance = 0
    loan.period = 4
    loan.interest = 15.9

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monhly-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(1000, 60, 19.9)

Consumer loan

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="
    width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
Consumer loan - vertical 2
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/consumer-loan/vertical2/?code=XX-YYYYYYYYY&price=&interest=&info_url="
    width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
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="
    width="540px" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
Consumer loan - horizontal 2
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/consumer-loan/horizontal2/?code=XX-YYYYYYYYY&price=&interest=&info_url="
    width="540px" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
Consumer 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 = 19.9

    var monthlyPayment = loan.getMonthlyPayment()

    if (monthlyPayment.error) {
        document.getElementById('error').innerHTML = monthlyPayment.error
    } else {
        document.getElementById('monhly-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, 19.9)

Car loan

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="
    width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
Car loan - vertical 2
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/en/widget/car-loan/vertical2/?code=XX-YYYYYYYYY&price=&interest=&info_url="
    width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
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="
    width="540px" height="100px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>

Home repair loan

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