Subversion Repositories SmartDukaan

Rev

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

Rev 10582 Rev 10624
Line 141... Line 141...
141
        <?php if($payment->label == 'CASH ON DELIVERY'){ ?>
141
        <?php if($payment->label == 'CASH ON DELIVERY'){ ?>
142
        <div id="<?php echo $payment->type;?>" class="card <?php if(isset($codCaptcha) && $codCaptcha ==1 ){echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
142
        <div id="<?php echo $payment->type;?>" class="card <?php if(isset($codCaptcha) && $codCaptcha ==1 ){echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
143
        <div style="display:<?php if(isset($codCaptcha) && $codCaptcha ==1 ){echo 'block';} else { echo 'none'; }?>" class="info-hldr">
143
        <div style="display:<?php if(isset($codCaptcha) && $codCaptcha ==1 ){echo 'block';} else { echo 'none'; }?>" class="info-hldr">
144
          <!-- <p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p> -->
144
          <!-- <p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p> -->
145
          <div id="captcha" class="tcenter"><?php print_r($captcha['image']);?></div>
145
          <div id="captcha" class="tcenter"><?php print_r($captcha['image']);?></div>
146
              <div id="clickCaptcha" class="tcenter" onclick="changeCaptcha()">CLick here to change image</div>
146
              <div id="clickCaptcha" class="tcenter" onclick="changeCaptcha()">Click here to change image</div>
147
          <form id="cod" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
147
          <form id="cod" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
148
            <fieldset>
148
            <fieldset>
149
              <input type="hidden" name="payoption" id="pay-cod" value="<?php echo $payment->pay_option; ?>"/>
149
              <input type="hidden" name="payoption" id="pay-cod" value="<?php echo $payment->pay_option; ?>"/>
150
              <input id="captcha_response_box" type="text" name="captcha_response_field" autocomplete="off">
150
              <input id="captcha_response_box" type="text" name="captcha_response_field" autocomplete="off">
151
              <input type="submit" name="submit" value='Make Payment' class="payment-btn tcenter"/>
151
              <input type="submit" name="submit" value='Make Payment' class="payment-btn tcenter"/>
Line 199... Line 199...
199
        <?php } }elseif($amount ==0  && isset($payments->results->isTotalAmountZero) && $payments->results->isTotalAmountZero==1) {
199
        <?php } }elseif($amount ==0  && isset($payments->results->isTotalAmountZero) && $payments->results->isTotalAmountZero==1) {
200
          foreach($payments->options as $payment){
200
          foreach($payments->options as $payment){
201
            if($payment->label == 'CONFIRM ORDER'){ ?>
201
            if($payment->label == 'CONFIRM ORDER'){ ?>
202
              <div id="<?php echo $payment->type;?>" class="card"><?php echo $payment->label;?><span>+</span></div>
202
              <div id="<?php echo $payment->type;?>" class="card"><?php echo $payment->label;?><span>+</span></div>
203
              <div style="" class="info-hldr">
203
              <div style="" class="info-hldr">
204
              <p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p>
204
              <!-- <p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p> -->
205
              <div id="captcha"><?php print_r($captcha['image']);?></div>
205
              <div id="captcha"><?php print_r($captcha['image']);?></div>
206
              <div id="clickCaptcha" onclick="changeCaptcha()">CLick here to change image</div>
206
              <div id="clickCaptcha" onclick="changeCaptcha()">Click here to change image</div>
207
              <form id="cod" method="post" action="<?php echo base_url().'payment';?>">
207
              <form id="cod" method="post" action="<?php echo base_url().'payment';?>">
208
                <fieldset>
208
                <fieldset>
209
                  <input id="captcha_response_box" type="text" name="captcha_response_field" autocomplete="off" placeholder="Please Enter Captcha">
209
                  <input id="captcha_response_box" type="text" name="captcha_response_field" autocomplete="off" placeholder="Please Enter Captcha">
210
                  <input type="hidden" name="payoption" id="pay-captcha" value="<?php echo $payment->pay_option; ?>"/>
210
                  <input type="hidden" name="payoption" id="pay-captcha" value="<?php echo $payment->pay_option; ?>"/>
211
                  <input type="submit" name="submit" value='Confirm Order' class="payment-btn tcenter"/>
211
                  <input type="submit" name="submit" value='Confirm Order' class="payment-btn tcenter"/>