Subversion Repositories SmartDukaan

Rev

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

Rev 11725 Rev 13304
Line 14... Line 14...
14
      </div><!--gd-total-->
14
      </div><!--gd-total-->
15
      <div class="hldr-sub">
15
      <div class="hldr-sub">
16
        <div class="card">Select Payment Method</div>
16
        <div class="card">Select Payment Method</div>
17
        <div id="error" class="error_msg" style="display:none"></div>
17
        <div id="error" class="error_msg" style="display:none"></div>
18
        <?php 
18
        <?php 
19
          foreach($payments->options as $payment){
19
          foreach($payments->options as $payment) {
20
         if($payment->label == 'CREDIT CARDS'){
20
         if($payment->label == 'CREDIT CARDS'){
21
          $defaultPayment = $payment->type;?>
21
          $defaultPayment = $payment->type;?>
22
        <div  id="<?php echo $payment->type;?>"class="card selected" onclick="changePayment(event);"><?php echo $payment->label;?> <span>-</span></div>
22
        <div  id="<?php echo $payment->type;?>"class="card selected" onclick="changePayment(event);"><?php echo $payment->label;?> <span>-</span></div>
23
        <div class="credit-cards clearfix">
23
        <div class="credit-cards clearfix">
24
          <div class="c-info">You will be taken to our Bank's payment gateway for making this payment.</div>
24
          <div class="c-info">You will be taken to our Bank's payment gateway for making this payment.</div>
Line 342... Line 342...
342
                  <?php }?>
342
                  <?php }?>
343
                  </div>
343
                  </div>
344
                <input type="button" value='Make Payment' class="payment-btn tcenter"/>
344
                <input type="button" value='Make Payment' class="payment-btn tcenter"/>
345
                </fieldset>
345
                </fieldset>
346
                </form>
346
                </form>
-
 
347
              <div style="display:none" class="info-hldr">
347
            </div><!--info-hldr-->    
348
            </div><!--info-hldr-->    
348
              <?php }}?>
349
              <?php }}?>
-
 
350
        <?php } ?>       
-
 
351
        <?php if(ENVIRONMENT == 'development'):?>
-
 
352
        <div onclick="changePayment(event);" class="card selected" id="payu">PayU Money<span>-</span></div>
-
 
353
        <div class="info-hldr" style="display:none">
-
 
354
          <form onsubmit="return addressValidation(event)" action="<?php echo base_url();?>recharge-pay-options?rechargeOrderId=<?php echo $_GET['rechargeOrderId'];?>" method="post" id="payumoney">
-
 
355
            <input type="hidden" value="4001" id="pay-payumaoney" name="payoption">                            
-
 
356
            <input type="submit" class="payment-btn tcenter" value="Make Payment" name="submit" id="ccSubmit">
-
 
357
            </fieldset>
-
 
358
          </form>
-
 
359
        </div><!--info-hldr-->    
349
        <?php } ?>
360
        <?php endif;?>
350
      </div><!--hldr-sub-->
361
      </div><!--hldr-sub-->    
351
      <script type="text/javascript">
362
      <script type="text/javascript">
352
    
363
    
353
    <?php if(isset($defaultPayment) && !empty($defaultPayment)){?>
364
    <?php if(isset($defaultPayment) && !empty($defaultPayment)){?>
354
    var defaultPayment = <?php echo $defaultPayment;?>;
365
    var defaultPayment = <?php echo $defaultPayment;?>;
355
    <?php } ?>
366
    <?php } ?>