| Line 191... |
Line 191... |
| 191 |
<span style="padding: 0px 8px 0px 0px; font-size: 14px; font-weight: bold;">Select Plan</span>
|
191 |
<span style="padding: 0px 8px 0px 0px; font-size: 14px; font-weight: bold;">Select Plan</span>
|
| 192 |
<table id="emi-options">
|
192 |
<table id="emi-options">
|
| 193 |
<thead>
|
193 |
<thead>
|
| 194 |
<tr>
|
194 |
<tr>
|
| 195 |
<th> </th>
|
195 |
<th> </th>
|
| 196 |
<th>EMI Plan</th>
|
196 |
<th>Tenure</th>
|
| 197 |
<th style="width:90px;text-align:center">Processing Fee*</th>
|
197 |
<th style="width:90px;text-align:center">Interest Rate*</th>
|
| 198 |
<th style="width:90px;text-align:center">Monthly Installment</th>
|
198 |
<th style="width:90px;text-align:center">Total Interest</th>
|
| 199 |
<th style="width:90px;text-align:center">Total Amount</th>
|
199 |
<th style="width:90px;text-align:center">Total Amount</th>
|
| - |
|
200 |
<th style="width:90px;text-align:center">Monthly Installment</th>
|
| 200 |
</tr>
|
201 |
</tr>
|
| 201 |
</thead>
|
202 |
</thead>
|
| 202 |
<tbody>
|
203 |
<tbody>
|
| 203 |
</tbody>
|
204 |
</tbody>
|
| 204 |
</table>
|
205 |
</table>
|
| 205 |
<span style="padding-left:10px">*Inclusive of service tax.</span>
|
206 |
<span style="padding-left:10px">*Inclusive of service tax.</span>
|
| 206 |
</div>
|
207 |
</div>
|
| 207 |
|
208 |
|
| 208 |
</div>
|
209 |
</div>
|
| 209 |
<div style="text-align:center;clear:left">
|
210 |
<div style="text-align:center;clear:left">
|
| 210 |
<div style="font-size:15px;font-weight:bold;padding:5px">Total Amount : <span class="mk_total_amount"></span></div>
|
211 |
<div style="font-size:15px;font-weight:bold;padding:5px">Total Amount : <span class="mk_total_amount">$orderAmount</span></div>
|
| 211 |
<input type="submit" value="MAKE PAYMENT" class="make-payment-button"/>
|
212 |
<input type="submit" value="MAKE PAYMENT" class="make-payment-button"/>
|
| 212 |
<br/><br/>
|
213 |
<br/><br/>
|
| 213 |
<b>You will be taken to our Bank's payment gateway for making this payment.</b>
|
214 |
<b>You will be taken to our Bank's payment gateway for making this payment.</b>
|
| 214 |
</div>
|
215 |
</div>
|
| 215 |
</form>
|
216 |
</form>
|
| Line 651... |
Line 652... |
| 651 |
|
652 |
|
| 652 |
#include ( "templates/commonjsfiles.vm" )
|
653 |
#include ( "templates/commonjsfiles.vm" )
|
| 653 |
<script language="javascript" type="text/javascript" src="/js/proceed-to-pay.js"></script>
|
654 |
<script language="javascript" type="text/javascript" src="/js/proceed-to-pay.js"></script>
|
| 654 |
<script language="javascript" type="text/javascript">
|
655 |
<script language="javascript" type="text/javascript">
|
| 655 |
emiOptions = $action.getJSONEmiSchemes();
|
656 |
emiOptions = $action.getJSONEmiSchemes();
|
| 656 |
EMI = {};
|
657 |
//EMI = {};
|
| 657 |
EMI.discounts = $action.getJSONEmiDiscountSchemes();
|
658 |
//EMI.discounts = $action.getJSONEmiDiscountSchemes();
|
| 658 |
banks = {};
|
659 |
banks = {};
|
| 659 |
var first = true;
|
660 |
var first = true;
|
| 660 |
|
661 |
|
| 661 |
var allBankImgs = {
|
662 |
var allBankImgs = {
|
| 662 |
1:"/images/hdfc-icon.png",
|
663 |
1:"/images/hdfc-icon.png",
|
| Line 678... |
Line 679... |
| 678 |
banks[opt.bankId].emis = {};
|
679 |
banks[opt.bankId].emis = {};
|
| 679 |
banks[opt.bankId].active = true;
|
680 |
banks[opt.bankId].active = true;
|
| 680 |
banks[opt.bankId].img = allBankImgs[opt.bankId];
|
681 |
banks[opt.bankId].img = allBankImgs[opt.bankId];
|
| 681 |
}
|
682 |
}
|
| 682 |
var bank = banks[opt.bankId];
|
683 |
var bank = banks[opt.bankId];
|
| - |
|
684 |
|
| 683 |
var bankTenure = {};
|
685 |
var bankTenure = {};
|
| 684 |
bankTenure.tenureDescription = opt.tenureDescription;
|
686 |
bankTenure.tenureDescription = opt.tenureDescription;
|
| 685 |
if (opt.chargeType == "FIXED") {
|
- |
|
| 686 |
bankTenure.emiProcessingCharge = opt.chargeValue;
|
- |
|
| 687 |
} else {
|
- |
|
| 688 |
bankTenure.emiProcessingCharge = Math.ceil((opt.chargeValue * $action.getTotalAmountL())/100);
|
- |
|
| 689 |
}
|
687 |
|
| 690 |
bankTenure.totalAmount = $action.getTotalAmountL() + bankTenure.emiProcessingCharge;
|
688 |
var r = opt.interestRate/12/100;
|
| 691 |
bankTenure.monthlyEmi = (Math.round((bankTenure.totalAmount*100)/opt.tenure)/100).toFixed(2);
|
689 |
var installment = $action.getTotalAmountL()*r*Math.pow(1+r,opt.tenure)/(Math.pow(1+r,opt.tenure) - 1);
|
| 692 |
if(opt.id in EMI.discounts){
|
690 |
bankTenure.interestRate = opt.interestRate;
|
| 693 |
bankTenure.discountedEmiProcessingCharge = bankTenure.emiProcessingCharge - EMI.discounts[opt.id];
|
691 |
bankTenure.installment = (Math.round(installment*100)/100).toFixed(2);
|
| 694 |
bankTenure.discountedTotalAmount = bankTenure.totalAmount - EMI.discounts[opt.id];
|
692 |
bankTenure.totalAmount = Math.ceil(installment*opt.tenure);
|
| 695 |
bankTenure.discountedMonthlyEmi = (Math.round((bankTenure.discountedTotalAmount*100)/opt.tenure)/100).toFixed(2);
|
693 |
bankTenure.totalInterest = totalAmount - $action.getTotalAmountL();
|
| 696 |
}
|
- |
|
| 697 |
|
694 |
|
| 698 |
bank.emis[opt.id] = bankTenure;
|
695 |
bank.emis[opt.id] = bankTenure;
|
| 699 |
});
|
696 |
});
|
| 700 |
|
697 |
|
| 701 |
|
698 |
|