Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p><img border="0" style="border:none;" src="<?php echo site_url(); ?>/wp-content/plugins/checkout-fde4api/images/logo.jpg" alt="firstdata" /></p>
- <?php if (!empty($errors)) : ?>
- <ul class="<?php echo $this -> pre; ?>error">
- <?php foreach ($errors as $error) : ?>
- <li><?php echo stripslashes($error); ?></li>
- <?php endforeach; ?>
- </ul>
- <?php endif; ?>
- <form action="<?php echo $wpcoHtml -> retainquery($this -> pre . "method=payment", $wpcoHtml -> cart_url()); ?>" method="post">
- <input type="hidden" name="<?php echo $this -> pre; ?>method" value="payment" />
- <input type="hidden" name="pmethod" value="fde4api" />
- <fieldset class="<?php echo $this -> pre; ?> steps cardinfo">
- <legend><?php _e('Credit Card Details', $this -> plugin_name); ?></legend>
- <div class="stepsholder">
- <!-- First Data API customer form -->
- <?php $class = ''; ?>
- <table class="<?php echo $this -> pre; ?>">
- <tbody>
- <tr class="<?php echo $class = (empty($class) || $class == "erow") ? 'arow' : 'erow'; ?>">
- <th><label for="CardHoldersName"><?php _e('Card Holders Name', $this -> plugin_name); ?></label></th>
- <td>
- <input type="text" name="CardHoldersName" value="<?php echo $_POST['CardHoldersName']; ?>" id="CardHoldersName" />
- <br/><span class="small"><?php _e('Name of the card holder as displayed on the card.', $this -> plugin_name); ?></span>
- </td>
- </tr>
- <tr class="<?php echo $class = (empty($class) || $class == "erow") ? 'arow' : 'erow'; ?>">
- <th><label for="CardType"><?php _e('Card Type', $this -> plugin_name); ?></label></th>
- <td>
- <?php $cctypes = $this -> get_option('cctypes'); ?>
- <?php
- $cctypes = array(
- 'mastercard' => __('MasterCard', $this -> plugin_name),
- 'visa' => __('Visa', $this -> plugin_name),
- 'discover' => __('Discover', $this -> plugin_name),
- 'jcb' => __('JCB', $this -> plugin_name),
- 'aexpress' => __('American Express', $this -> plugin_name),
- 'dinersclub' => __('Diners Club', $this -> plugin_name),
- 'laser' => __('Laser', $this -> plugin_name),
- );
- ?>
- <select name="CardType" id="CardType">
- <option value=""><?php _e('- Select Type -', $this -> plugin_name); ?></option>
- <?php foreach ($cctypes as $cckey => $ccval) : ?>
- <option <?php echo (!empty($_POST['CardType']) && $_POST['CardType'] == $cckey) ? 'selected="selected"' : ''; ?> value="<?php echo $cckey; ?>"><?php echo __($ccval); ?></option>
- <?php endforeach; ?>
- </select>
- <br/><span class="small"><?php _e('Type of card being used.', $this -> plugin_name); ?></span>
- </td>
- </tr>
- <tr class="<?php echo $class = (empty($class) || $class == "erow") ? 'arow' : 'erow'; ?>">
- <th><label for="CardNumber"><?php _e('Card Number:', $this -> plugin_name); ?></label></th>
- <td>
- <input type="text" name="CardNumber" value="<?php echo $_POST['CardNumber']; ?>" id="CardNumber" />
- <br/><span class="small"><?php _e('Credit card number displayed on your card.', $this -> plugin_name); ?></span>
- </td>
- </tr>
- <tr class="<?php echo $class = (empty($class) || $class == "erow") ? 'arow' : 'erow'; ?>">
- <th><label for="ExpMonth"><?php _e('Expiration Date:', $this -> plugin_name); ?></label></th>
- <td>
- <select name="ExpMonth" size="1" id="CC_EXPIRES_MONTH">
- <option value=""><?php _e('MM', $this -> plugin_name); ?></option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "01") ? 'selected="selected"' : ''; ?> value="01">01</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "02") ? 'selected="selected"' : ''; ?> value="02">02</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "03") ? 'selected="selected"' : ''; ?> value="03">03</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "04") ? 'selected="selected"' : ''; ?> value="04">04</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "05") ? 'selected="selected"' : ''; ?> value="05">05</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "06") ? 'selected="selected"' : ''; ?> value="06">06</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "07") ? 'selected="selected"' : ''; ?> value="07">07</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "08") ? 'selected="selected"' : ''; ?> value="08">08</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "09") ? 'selected="selected"' : ''; ?> value="09">09</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "10") ? 'selected="selected"' : ''; ?> value="10">10</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "11") ? 'selected="selected"' : ''; ?> value="11">11</option>
- <option <?php echo (!empty($_POST['ExpMonth']) && $_POST['ExpMonth'] == "12") ? 'selected="selected"' : ''; ?> value="12">12</option>
- </select> /
- <select name="ExpYear" size="1">
- <option value=""><?php _e('YYYY', $this -> plugin_name); ?></option>
- <option <?php echo (!empty($_POST['ExpYear']) && $_POST['ExpYear'] == "12") ? 'selected="selected"' : ''; ?> value="12">2012</option>
- <option <?php echo (!empty($_POST['ExpYear']) && $_POST['ExpYear'] == "13") ? 'selected="selected"' : ''; ?> value="13">2013</option>
- <option <?php echo (!empty($_POST['ExpYear']) && $_POST['ExpYear'] == "14") ? 'selected="selected"' : ''; ?> value="14">2014</option>
- <option <?php echo (!empty($_POST['ExpYear']) && $_POST['ExpYear'] == "15") ? 'selected="selected"' : ''; ?> value="15">2015</option>
- <option <?php echo (!empty($_POST['ExpYear']) && $_POST['ExpYear'] == "16") ? 'selected="selected"' : ''; ?> value="16">2016</option>
- <option <?php echo (!empty($_POST['ExpYear']) && $_POST['ExpYear'] == "17") ? 'selected="selected"' : ''; ?> value="17">2017</option>
- </select>
- <br/><span class="small"><?php _e('Card expiry date with a month and year combination.', $this -> plugin_name); ?></span>
- </td>
- </tr>
- <?php if ($this -> get_option('fde4api_cvv') == "Y") : ?>
- <tr class="<?php echo $class = (empty($class) || $class == "erow") ? 'arow' : 'erow'; ?>">
- <th><label for="Cvv"><?php _e('Card Verification Value:', $this -> plugin_name); ?></label></th>
- <td>
- <input style="width:35px;" type="text" name="Cvv" value="<?php echo $_POST['Cvv']; ?>" id="Cvv" />
- <br/><span class="small"><?php _e('Three/four digit card verification value typically on the back of the card.', $this -> plugin_name); ?></span>
- </td>
- </tr>
- <?php endif; ?>
- </tbody>
- </table>
- </div>
- </fieldset>
- <p class="submit">
- <input class="<?php echo $this -> pre; ?>button" type="button" name="back" value="<?php _e('« Back', $this -> plugin_name); ?>" onclick="history.go(-1);" />
- <input class="<?php echo $this -> pre; ?>button" type="submit" name="continue" value="<?php _e('Continue »', $this -> plugin_name); ?>" />
- </p>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement