Subversion Repositories SmartDukaan

Rev

Rev 11059 | Rev 11067 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11059 Rev 11064
Line 67... Line 67...
67
        <div class="card">Select Payment Method</div>
67
        <div class="card">Select Payment Method</div>
68
        <div id="error" class="error_msg" style="display:<?php if(isset($codCaptcha) && $codCaptcha == 1 ){echo 'block';} else { echo 'none'; }?>"><?php if(isset($codCaptcha) && $codCaptcha ==1){echo 'Invalid Captcha';}?></div>
68
        <div id="error" class="error_msg" style="display:<?php if(isset($codCaptcha) && $codCaptcha == 1 ){echo 'block';} else { echo 'none'; }?>"><?php if(isset($codCaptcha) && $codCaptcha ==1){echo 'Invalid Captcha';}?></div>
69
        <?php if(($amount != 0) && !isset($payments->results->isTotalAmountZero)) {
69
        <?php if(($amount != 0) && !isset($payments->results->isTotalAmountZero)) {
70
          foreach($payments->options as $payment){
70
          foreach($payments->options as $payment){
71
         if($payment->label == 'CREDIT CARDS'){
71
         if($payment->label == 'CREDIT CARDS'){
-
 
72
          if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod == 0)){
72
          $defaultPayment = $payment->type;?>
73
            $defaultPayment = $payment->type;
-
 
74
          }?>
73
        <div  id="<?php echo $payment->type;?>"class="card <?php if((!isset($codCaptcha) && $codCaptcha !=1) || (isset($cod) && $cod ==0)){echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?> <span>-</span></div>
75
        <div  id="<?php echo $payment->type;?>"class="card <?php if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod ==0)){echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?> <span>-</span></div>
74
        <div style="display:<?php if(isset($codCaptcha) && $codCaptcha ==1 ){echo 'none';} else { echo 'block'; }?>" class="credit-cards clearfix">
76
        <div style="display:<?php if((!isset($codCaptcha) && $codCaptcha !=1) || (isset($cod) || $cod == 0)){echo 'none';} else { echo 'block'; }?>" class="credit-cards clearfix">
75
          <div class="c-info">You will be taken to our Bank's payment gateway for making this payment.</div>
77
          <div class="c-info">You will be taken to our Bank's payment gateway for making this payment.</div>
76
          <form id="creditcard" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
78
          <form id="creditcard" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
77
            <fieldset>
79
            <fieldset>
78
           <div class="cc-hldr clearfix">
80
           <div class="cc-hldr clearfix">
79
             <div id="india" class="selected" onclick="changeCountry(event)">Credit Cards </br>Issued in India</div> 
81
             <div id="india" class="selected" onclick="changeCountry(event)">Credit Cards </br>Issued in India</div> 
Line 153... Line 155...
153
            <input type="hidden" name="payoption" id="pay-cc" value="" />
155
            <input type="hidden" name="payoption" id="pay-cc" value="" />
154
        <?php foreach($payment->paymethods as $methods){?>
156
        <?php foreach($payment->paymethods as $methods){?>
155
        <div id="<?php echo $methods->pay_option;?>" onclick="selectCashCard(event)" data-parent="<?php echo $payment->label; ?>"><img src="<?php echo  $methods->img;?>" alt="<?php echo $methods->label;?>"></div>
157
        <div id="<?php echo $methods->pay_option;?>" onclick="selectCashCard(event)" data-parent="<?php echo $payment->label; ?>"><img src="<?php echo  $methods->img;?>" alt="<?php echo $methods->label;?>"></div>
156
        <?php } ?>
158
        <?php } ?>
157
        <p class="tcenter">Tap to select your card type</p>
159
        <p class="tcenter">Tap to select your card type</p>
158
        <input type="button" value='Make Payment' class="payment-btn tcenter"/>
160
        <input type="submit" name="submit" value='Make Payment' class="payment-btn tcenter"/>
159
        </fieldset></form>
161
        </fieldset></form>
160
        </div><!--c-box-->
162
        </div><!--c-box-->
161
        <?php } ?>
163
        <?php } ?>
162
        <?php if($payment->label == 'CASH ON DELIVERY'){
164
        <?php if($payment->label == 'CASH ON DELIVERY'){
163
        if(isset($cod) && $cod == 1){ ?>
165
        if(isset($cod) && $cod == 1){
-
 
166
          if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)){
-
 
167
            $defaultPayment = $payment->type;
-
 
168
          }?>
164
        <div id="<?php echo $payment->type;?>" class="card <?php if((isset($codCaptcha) && $codCaptcha ==1) || (isset($cod) && $cod ==1)) {echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
169
        <div id="<?php echo $payment->type;?>" class="card <?php if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)) {echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
165
        <div style="display:<?php if(isset($codCaptcha) && $codCaptcha ==1 ){echo 'block';} else { echo 'none'; }?>" class="info-hldr">
170
        <div style="display:<?php if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)){echo 'block';} else { echo 'none'; }?>" class="info-hldr">
166
          <!-- <p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p> -->
171
          <!-- <p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p> -->
167
          <div id="captcha" class="tcenter"><?php print_r($captcha['image']);?></div>
172
          <div id="captcha" class="tcenter"><?php print_r($captcha['image']);?></div>
168
              <div id="clickCaptcha" class="tcenter" onclick="changeCaptcha()">Click here to change image</div>
173
              <div id="clickCaptcha" class="tcenter" onclick="changeCaptcha()">Click here to change image</div>
169
          <form id="cod" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
174
          <form id="cashod" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
170
            <fieldset>
175
            <fieldset>
171
              <input type="hidden" name="payoption" id="pay-cod" value="<?php echo $payment->pay_option; ?>"/>
176
              <input type="hidden" name="payoption" id="pay-cod" value="<?php echo $payment->pay_option; ?>"/>
172
              <input id="captcha_response_box" type="text" name="captcha_response_field" autocomplete="off">
177
              <input id="captcha_response_box" type="text" name="captcha_response_field" autocomplete="off">
173
              <input type="submit" name="submit" value='Make Payment' class="payment-btn tcenter"/>
178
              <input type="submit" name="submit" value='Make Payment' class="payment-btn tcenter"/>
174
          </fieldset>
179
          </fieldset>