| 10582 |
lgm |
1 |
<?php $payments = $recharge_payOptions[0];
|
|
|
2 |
//print_r($payments);
|
|
|
3 |
if(isset($payments->results->phoneNumber) && !empty($payments->results->phoneNumber)){
|
|
|
4 |
$phoneNumber = $payments->results->phoneNumber;
|
|
|
5 |
$this->session->set_userdata('phoneNumber',$phoneNumber);
|
|
|
6 |
}
|
|
|
7 |
?>
|
|
|
8 |
<div class="payment-hldr">
|
|
|
9 |
<div class="gd-total clearfix">
|
|
|
10 |
<div>Grand total</div>
|
|
|
11 |
<div>RS <?php echo $payments->results->rechargeAmount;?> </div>
|
|
|
12 |
</div><!--gd-total-->
|
|
|
13 |
<div class="hldr-sub">
|
|
|
14 |
<div class="card">Select Payment Method</div>
|
|
|
15 |
<div id="error" class="error_msg" style="display:none"></div>
|
|
|
16 |
<?php
|
|
|
17 |
foreach($payments->options as $payment){
|
|
|
18 |
if($payment->label == 'CREDIT CARDS'){
|
|
|
19 |
$defaultPayment = $payment->type;?>
|
|
|
20 |
<div id="<?php echo $payment->type;?>"class="card selected" onclick="changePayment(event);"><?php echo $payment->label;?> <span>-</span></div>
|
|
|
21 |
<div class="credit-cards clearfix">
|
|
|
22 |
<div class="c-info">You will be taken to our Bank's payment gateway for making this payment.</div>
|
|
|
23 |
<form id="creditcard" method="post" action="<?php echo base_url().'recharge-pay-options?rechargeOrderId='.$_GET['rechargeOrderId'];?>" onsubmit="return addressValidation(event)">
|
|
|
24 |
<fieldset>
|
|
|
25 |
<div class="c-box clearfix">
|
|
|
26 |
<?php foreach($payment->paymethods as $payment){?>
|
|
|
27 |
<div onclick="selectCard(event)" id="<?php echo $payment->pay_option?>">
|
|
|
28 |
<img src="<?php echo $this->config->item('curl_base_url').$payment->img?>;" alt="<?php echo $payment->label;?>">
|
|
|
29 |
</div>
|
|
|
30 |
<?php } ?>
|
|
|
31 |
<p class="tcenter">Tap to select your card type</p>
|
|
|
32 |
</div><!--in-india-->
|
|
|
33 |
<input type="hidden" name="payoption" id="pay-credit" value=""/>
|
|
|
34 |
<?php if(isset($payments->results->needAddress) && $payments->results->needAddress == 1){?>
|
|
|
35 |
<div id="ccAddress" class="update-address">
|
|
|
36 |
<div id="creditcarderror" class="error_msg" style="display:none"></div>
|
|
|
37 |
<h3>We need a billing address to send to Payment Gateway.</h3>
|
|
|
38 |
<label>Name</label>
|
|
|
39 |
<input id="shipName" name="name" type="text" />
|
|
|
40 |
<label>Address Line 1</label>
|
|
|
41 |
<input name="line1" id="shipAddress1" type="text" />
|
|
|
42 |
<label>Address Line 2:</label>
|
|
|
43 |
<input name="line2" id="shipAddress2" type="text" />
|
|
|
44 |
<label >State:</label>
|
|
|
45 |
<select name="state" id="shipState">
|
|
|
46 |
<option value="-1">Select Sate</option>
|
|
|
47 |
<option>Punjab</option>
|
|
|
48 |
<option>Haryana</option>
|
|
|
49 |
<option>Delhi</option>
|
|
|
50 |
</select>
|
|
|
51 |
<label>City:</label>
|
|
|
52 |
<input name="city" id="shipCity" type="text" />
|
|
|
53 |
<label>Pin Code:</label>
|
|
|
54 |
<input name="pincode" id="shipPin" type="text" />
|
|
|
55 |
<label>Phone:</label>
|
|
|
56 |
<input name="phone" id="shipPhone" type="number" />
|
|
|
57 |
<div class="btn-hldr clearfix">
|
|
|
58 |
</div>
|
|
|
59 |
</div><!--update-address--> <?php }?>
|
|
|
60 |
<input id='ccSubmit' type="submit" name="submit" value='Make Payment' class="payment-btn tcenter" />
|
|
|
61 |
</fieldset>
|
|
|
62 |
</form>
|
|
|
63 |
</div><!--credit-cards-->
|
|
|
64 |
<?php } ?>
|
|
|
65 |
<?php if($payment->label == 'DEBIT/ATM CARDS'){?>
|
|
|
66 |
<div id="<?php echo $payment->type;?>" class="card" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
|
|
|
67 |
<div class="info-hldr" style="display:none;">
|
|
|
68 |
<p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p>
|
|
|
69 |
<form id="debitcard" method="post" action="<?php echo base_url().'recharge-pay-options?rechargeOrderId='.$_GET['rechargeOrderId'];?>" onsubmit="return addressValidation(event)">
|
|
|
70 |
<fieldset>
|
|
|
71 |
<input type="hidden" name="payoption" id="pay-debit" value="" />
|
|
|
72 |
<div class="c-box">
|
|
|
73 |
<?php foreach($payment->paymethods as $methods){?>
|
|
|
74 |
<div id="<?php echo $methods->pay_option;?>" onclick="selectDebitCard(event)"><img src="<?php echo $this->config->item('curl_base_url').$methods->img?>;" alt="<?php echo $methods->label;?>"></div>
|
|
|
75 |
<?php } ?>
|
|
|
76 |
|
|
|
77 |
<p class="tcenter">Tap to select your card type</p>
|
|
|
78 |
</div><!--c-box-->
|
|
|
79 |
|
|
|
80 |
<?php if(isset($payments->results->needAddress) && $payments->results->needAddress == 1){?>
|
|
|
81 |
<div id="shippingAddress" class="update-address">
|
|
|
82 |
<div id="debitcarderror" class="error_msg" style="display:none"></div>
|
|
|
83 |
<h3>We need a billing address to send to Payment Gateway.</h3>
|
|
|
84 |
<label>Name</label>
|
|
|
85 |
<input id="shipname" name="name" type="text" />
|
|
|
86 |
<label>Address Line 1</label>
|
|
|
87 |
<input name="line1" id="shipAddress1" type="text" />
|
|
|
88 |
<label>Address Line 2:</label>
|
|
|
89 |
<input name="line2" id="shipAddress2" type="text" />
|
|
|
90 |
<label >State:</label>
|
|
|
91 |
<select name="state" id="shipState">
|
|
|
92 |
<option value="-1">Select Sate</option>
|
|
|
93 |
<option>Punjab</option>
|
|
|
94 |
<option>Haryana</option>
|
|
|
95 |
<option>Delhi</option>
|
|
|
96 |
</select>
|
|
|
97 |
<label>City:</label>
|
|
|
98 |
<input name="city" id="shipCity" type="text" />
|
|
|
99 |
<label>Pin Code:</label>
|
|
|
100 |
<input name="pincode" id="shipPin" type="text" />
|
|
|
101 |
<label>Phone:</label>
|
|
|
102 |
<input name="phone" id="shipPhone" type="number" />
|
|
|
103 |
<div class="btn-hldr clearfix">
|
|
|
104 |
</div>
|
|
|
105 |
</div><!--update-address--> <?php }?>
|
|
|
106 |
<input id='ccSubmit' type="submit" name="submit" value='Make Payment' class="payment-btn tcenter" />
|
|
|
107 |
</fieldset>
|
|
|
108 |
</form>
|
|
|
109 |
</div><!--c-box-->
|
|
|
110 |
<?php }?>
|
|
|
111 |
<?php if($payment->label == 'NET BANKING'){ ?>
|
|
|
112 |
<div id="<?php echo $payment->type;?>" class="card" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
|
|
|
113 |
<div class="info-hldr" style="display:none">
|
|
|
114 |
<div class="c-info">You will be taken to our Bank's payment gateway for making this payment.</div>
|
|
|
115 |
<p>Please select your bank</p>
|
|
|
116 |
<form id="netbanking" method="post" action="<?php echo base_url().'recharge-pay-options?rechargeOrderId='.$_GET['rechargeOrderId'];?>" onsubmit="return addressValidation(event)">
|
|
|
117 |
<fieldset>
|
|
|
118 |
<input type="hidden" name="payoption" id="pay-net" value="<?php echo $payment->paymethods[0]->pay_option;?>" />
|
|
|
119 |
<select id="net" onchange="changeNetBanking(event);">
|
|
|
120 |
<?php foreach($payment->paymethods as $methods){?>
|
|
|
121 |
<option value="<?php echo $methods->pay_option;?>"><?php echo $methods->label;?></option>
|
|
|
122 |
<?php } ?>
|
|
|
123 |
</select>
|
|
|
124 |
<?php if(isset($payments->results->needAddress) && $payments->results->needAddress == 1){?>
|
|
|
125 |
<div class="update-address">
|
|
|
126 |
<div id="netbankingerror" class="error_msg" style="display:none"></div>
|
|
|
127 |
<h3>We need a billing address to send to Payment Gateway.</h3>
|
|
|
128 |
<label>Name</label>
|
|
|
129 |
<input id="shipname" name="name" type="text" />
|
|
|
130 |
<label>Address Line 1</label>
|
|
|
131 |
<input name="line1" id="shipAddress1" type="text" />
|
|
|
132 |
<label>Address Line 2:</label>
|
|
|
133 |
<input name="line2" id="shipAddress2" type="text" />
|
|
|
134 |
<label >State:</label>
|
|
|
135 |
<select name="state" id="shipState">
|
|
|
136 |
<option value="-1">Select Sate</option>
|
|
|
137 |
<option>Punjab</option>
|
|
|
138 |
<option>Haryana</option>
|
|
|
139 |
<option>Delhi</option>
|
|
|
140 |
</select>
|
|
|
141 |
<label>City:</label>
|
|
|
142 |
<input name="city" id="shipCity" type="text" />
|
|
|
143 |
<label>Pin Code:</label>
|
|
|
144 |
<input name="pincode" id="shipPin" type="text" />
|
|
|
145 |
<label>Phone:</label>
|
|
|
146 |
<input name="phone" id="shipPhone" type="number" />
|
|
|
147 |
<div class="btn-hldr clearfix">
|
|
|
148 |
</div>
|
|
|
149 |
</div><!--update-address--> <?php }?>
|
|
|
150 |
<input id='ccSubmit' type="submit" name="submit" value='Make Payment' class="payment-btn tcenter" />
|
|
|
151 |
</fieldset></form>
|
|
|
152 |
</div><!--c-box-->
|
|
|
153 |
<?php } ?>
|
|
|
154 |
<?php if($payment->label == 'CASH CARDS'){ ?>
|
|
|
155 |
<div id="<?php echo $payment->type;?>" class="card" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
|
|
|
156 |
<div class="c-box" style="display:none">
|
|
|
157 |
<p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p>
|
|
|
158 |
<form><fieldset>
|
|
|
159 |
<input type="hidden" name="payoption" id="pay-cc" value="" />
|
|
|
160 |
<?php foreach($payment->paymethods as $methods){?>
|
|
|
161 |
<div id="<?php echo $methods->pay_option;?>" onclick="selectCashCard(event)"><img src="<?php echo $this->config->item('curl_base_url').$methods->img?>;" alt="<?php echo $methods->label;?>"></div>
|
|
|
162 |
<?php } ?>
|
|
|
163 |
<p class="tcenter">Tap to select your card type</p>
|
|
|
164 |
<input type="button" value='Make Payment' class="payment-btn tcenter"/>
|
|
|
165 |
</fieldset></form>
|
|
|
166 |
</div><!--c-box-->
|
|
|
167 |
<?php } ?>
|
|
|
168 |
<?php if($payment->label == 'CASH ON DELIVERY'){ ?>
|
|
|
169 |
<div id="<?php echo $payment->type;?>" class="card" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
|
|
|
170 |
<div style="display:none" class="info-hldr">
|
|
|
171 |
<p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p>
|
|
|
172 |
<div><?php echo $payment->label;?></div>
|
|
|
173 |
<form id="cod" method="post" action="<?php echo base_url().'payment';?>">
|
|
|
174 |
<fieldset>
|
|
|
175 |
<input type="hidden" name="payoption" id="pay-cod" value="<?php echo $payment->pay_option; ?>"/>
|
|
|
176 |
<input type="submit" name="submit" value='Make Payment' class="payment-btn tcenter"/>
|
|
|
177 |
</fieldset>
|
|
|
178 |
</form>
|
|
|
179 |
</div>
|
|
|
180 |
<?php } ?>
|
|
|
181 |
<?php if($payment->label == 'EMI'){ ?>
|
|
|
182 |
<div id="<?php echo $payment->type;?>" class="card" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
|
|
|
183 |
<?php if(isset($emiInfo) && !empty($emiInfo)){ ?>
|
|
|
184 |
<div class="info-hldr" style="display:none">
|
|
|
185 |
<p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p>
|
|
|
186 |
<form>
|
|
|
187 |
<fieldset>
|
|
|
188 |
<p>Please select your bank</p>
|
|
|
189 |
<?php if(isset($bankInfo) && !empty($bankInfo)){?>
|
|
|
190 |
<select id="emi" onchange="changeBank(event);">
|
|
|
191 |
<?php
|
|
|
192 |
foreach ($bankInfo as $key => $value) { ?>
|
|
|
193 |
<option value="<?php echo $value['Id'];?>"><?php echo $value['Name']; ?></option>
|
|
|
194 |
<?php } ?>
|
|
|
195 |
</select>
|
|
|
196 |
<?php } ?>
|
|
|
197 |
|
|
|
198 |
<div class="emi-hldr clearfix">
|
|
|
199 |
<?php $i=0;?>
|
|
|
200 |
<div class="emi-head clearfix">
|
|
|
201 |
<div>Tenure@rate</div>
|
|
|
202 |
<div>Total Intrest</div>
|
|
|
203 |
<div>Monthly Installement</div>
|
|
|
204 |
</div><!--emi-head-->
|
|
|
205 |
<input type="hidden" name="payoption" id="pay-emi" value="<?php echo $emiInfo[0][0]->id;?>" />
|
|
|
206 |
<?php foreach($emiInfo as $emi){?>
|
|
|
207 |
<div style="display:<?php if($i == 0){echo 'block';} else {echo 'none';}?>" id="<?php echo $emi[0]->bankId;?>">
|
|
|
208 |
<?php $j=0;foreach($emi as $emiScheme){?>
|
|
|
209 |
<div class="emi-body clearfix <?php if($j==0) echo 'selected';?>" id="<?php echo $emiScheme->id;?>" onclick="changePay(event);">
|
|
|
210 |
<div><?php echo $emiScheme->tenureDescription.'@'.$emiScheme->interestRate.'%';?></div>
|
|
|
211 |
<div>Rs <?php echo $emiScheme->intrestAmount;?></div>
|
|
|
212 |
<div>Rs <?php echo $emiScheme->installment;?></div>
|
|
|
213 |
</div>
|
|
|
214 |
<?php $j++;}
|
|
|
215 |
$i++; ?>
|
|
|
216 |
</div>
|
|
|
217 |
<?php }?>
|
|
|
218 |
</div>
|
|
|
219 |
<input type="button" value='Make Payment' class="payment-btn tcenter"/>
|
|
|
220 |
</fieldset>
|
|
|
221 |
</form>
|
|
|
222 |
</div><!--info-hldr-->
|
|
|
223 |
<?php }}?>
|
|
|
224 |
<?php } ?>
|
|
|
225 |
</div><!--hldr-sub-->
|
|
|
226 |
<script type="text/javascript">
|
|
|
227 |
debugger;
|
|
|
228 |
<?php if(isset($defaultPayment) && !empty($defaultPayment)){?>
|
|
|
229 |
var defaultPayment = <?php echo $defaultPayment;?>;
|
|
|
230 |
<?php } ?>
|
|
|
231 |
</script>
|