enet

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

Рассрочка - вертикальный
Рассрочка - горизонтальный
Рассрочка - JavaScript

Mалый кредит - вертикальный
Mалый кредит - вертикальный 2
Mалый кредит - горизонтальный
Mалый кредит - горизонтальный 2
Mалый кредит - JavaScript

Автокредит - вертикальный
Автокредит - вертикальный 2
Автокредит - горизонтальный

Ремонтный кредит - вертикальный
Ремонтный кредит - вертикальный 2
Ремонтный кредит - горизонтальный

Рассрочка

Рассрочка - вертикальный
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/widget/hire-purchase/?code=XX-YYYYYYYYY&price=&interest=&info_url="
    width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
Рассрочка - горизонтальный
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>
Рассрочка - 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>

Kui soovid, järelmaksu kuumakse arvutamiseks, kasutada enda lehe elemente ja kujundust, siis tee seda meie JavaScriptiga:

  1. Lisa enda lehele script aadressilt https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Defineeri uus LHV.hirePurchase klass ja vajadusel muuda selle parameetrid. Ükski parameeter ei ole kohustuslik (näites toodud väärtused on ka kalkulaatori vaikeväärtused).

  3. Kuumakse saad arvutada funktsiooniga getMonthlyPayment(). Kuumakse on tagastatava objekti parameeteris payment. Vea puhul tagastatakse viga parameetris error. Tagastatav objekt sisaldab ka kõiki parameetreid mida arvutamisel kasutati. Sellele funktsioonile võid parameetrid ka otse ette anda, näiteks: getMonthlyPayment(1000, 0, 60, 19.9, 0), kus parameetrid on vastavalt price, period, interest.

Mалый кредит

Mалый кредит - вертикальный
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/widget/consumer-loan/?code=XX-YYYYYYYYY&price=&interest=&info_url="
    width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
Mалый кредит - вертикальный 2
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>
Mалый кредит - горизонтальный
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>
Mалый кредит - горизонтальный 2
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>
Mалый кредит - 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>

Kui soovid, väikelaenu kuumakse arvutamiseks, kasutada enda lehe elemente ja kujundust, siis tee seda meie JavaScriptiga:

  1. Lisa enda lehele script aadressilt https://partners.lhv.ee/assets/scripts/calculator.min.js

  2. Defineeri uus LHV.consumerLoan klass ja vajadusel muuda selle parameetrid. Ükski parameeter ei ole kohustuslik (näites toodud väärtused on ka kalkulaatori vaikeväärtused).

  3. Kuumakse saad arvutada funktsiooniga getMonthlyPayment(). Kuumakse on tagastatava objekti parameeteris payment. Vea puhul tagastatakse viga parameetris error. Tagastatav objekt sisaldab ka kõiki parameetreid mida arvutamisel kasutati. Sellele funktsioonile võid parameetrid ka otse ette anda, näiteks: getMonthlyPayment(1000, 0, 60, 19.9, 0), kus parameetrid on vastavalt price, period, interest.

Автокредит

Автокредит - вертикальный
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/widget/car-loan/?code=XX-YYYYYYYYY&price=&interest=&info_url="
    width="200px" height="300px" frameborder="no" scrolling="no"></iframe>
<script>iFrameResize({log:false});</script>
Автокредит - вертикальный 2
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>
Автокредит - горизонтальный
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>

Ремонтный кредит

Ремонтный кредит - вертикальный
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>
Ремонтный кредит - вертикальный 2
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>
Ремонтный кредит - горизонтальный
<script src="//partners.lhv.ee/assets/scripts/iframeResizer.min.js"></script>
<iframe src="//partners.lhv.ee/ru/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>