Version Notes
Fixed creation of orders in the admin backend
Download this release
Release Info
| Developer | mesolutions |
| Extension | Mes_Gateway |
| Version | 1.2.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.1 to 1.2.2
app/design/adminhtml/default/default/template/mes/cc.phtml
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* DISCLAIMER
|
| 16 |
+
*
|
| 17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
+
* versions in the future. If you wish to customize Magento for your
|
| 19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
+
*
|
| 21 |
+
* @category design
|
| 22 |
+
* @package default_default
|
| 23 |
+
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
?>
|
| 27 |
+
<?php $_code=$this->getMethodCode() ?>
|
| 28 |
+
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 29 |
+
<li>
|
| 30 |
+
<div class="input-box">
|
| 31 |
+
<label for="<?php echo $_code ?>_cc_type"><?php echo Mage::helper('payment')->__('Credit Card Type') ?> <span class="required">*</span></label><br/>
|
| 32 |
+
<select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
|
| 33 |
+
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
| 34 |
+
<option value=""></option>
|
| 35 |
+
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
| 36 |
+
<option value="<?php echo $_typeCode ?>" <?php if($_typeCode==$_ccType): ?>selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
|
| 37 |
+
<?php endforeach ?>
|
| 38 |
+
</select>
|
| 39 |
+
</div>
|
| 40 |
+
</li>
|
| 41 |
+
<li>
|
| 42 |
+
<div class="input-box">
|
| 43 |
+
<label for="<?php echo $_code ?>_cc_number"><?php echo Mage::helper('payment')->__('Credit Card Number') ?> <span class="required">*</span></label><br/>
|
| 44 |
+
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo Mage::helper('payment')->__('Credit Card Number') ?>" class="input-text validate-cc-number" value="<?php echo $this->getInfoData('cc_number')?>"/>
|
| 45 |
+
</div>
|
| 46 |
+
</li>
|
| 47 |
+
<li>
|
| 48 |
+
<div class="input-box">
|
| 49 |
+
<label for="<?php echo $_code ?>_expiration"><?php echo Mage::helper('payment')->__('Expiration Date') ?> <span class="required">*</span></label><br/>
|
| 50 |
+
<select id="<?php echo $_code ?>_expiration" style="width:140px;" name="payment[cc_exp_month]" class="validate-cc-exp required-entry">
|
| 51 |
+
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
| 52 |
+
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
| 53 |
+
<option value="<?php echo $k ?>" <?php if($k==$_ccExpMonth): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
|
| 54 |
+
<?php endforeach ?>
|
| 55 |
+
</select>
|
| 56 |
+
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
| 57 |
+
<select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
|
| 58 |
+
<?php foreach ($this->getCcYears() as $k=>$v): ?>
|
| 59 |
+
<option value="<?php echo $k ? $k : '' ?>" <?php if($k==$_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
|
| 60 |
+
<?php endforeach ?>
|
| 61 |
+
</select>
|
| 62 |
+
</div>
|
| 63 |
+
</li>
|
| 64 |
+
<?php if($this->hasVerification()): ?>
|
| 65 |
+
<li>
|
| 66 |
+
<div class="input-box">
|
| 67 |
+
<label for="<?php echo $_code ?>_cc_cid"><?php echo Mage::helper('payment')->__('Card Verification Number') ?> <span class="required">*</span></label><br/>
|
| 68 |
+
<input type="text" title="<?php echo Mage::helper('payment')->__('Card Verification Number') ?>" class="required-entry input-text validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" style="width:3em;" value="<?php echo $this->getInfoData('cc_cid')?>"/>
|
| 69 |
+
</div>
|
| 70 |
+
</li>
|
| 71 |
+
<?php endif; ?>
|
| 72 |
+
|
| 73 |
+
<?php if ($this->hasSsCardType()): ?>
|
| 74 |
+
<li id="<?php echo $_code ?>_cc_type_ss_div">
|
| 75 |
+
<ul class="inner-form">
|
| 76 |
+
<li class="form-alt"><label for="<?php echo $_code ?>_cc_issue" class="required"><em>*</em><?php echo $this->__('Switch/Solo/Maestro Only') ?></label></li>
|
| 77 |
+
<li>
|
| 78 |
+
<label for="<?php echo $_code ?>_cc_issue"><?php echo $this->__('Issue Number') ?>:</label>
|
| 79 |
+
<span class="input-box">
|
| 80 |
+
<input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text validate-cc-ukss cvv" id="<?php echo $_code ?>_cc_issue" name="payment[cc_ss_issue]" value="" />
|
| 81 |
+
</span>
|
| 82 |
+
</li>
|
| 83 |
+
|
| 84 |
+
<li>
|
| 85 |
+
<label for="<?php echo $_code ?>_start_month"><?php echo $this->__('Start Date') ?>:</label>
|
| 86 |
+
<div class="input-box">
|
| 87 |
+
<select id="<?php echo $_code ?>_start_month" name="payment[cc_ss_start_month]" class="validate-cc-ukss month">
|
| 88 |
+
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
| 89 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$this->getInfoData('cc_ss_start_month')): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
| 90 |
+
<?php endforeach ?>
|
| 91 |
+
</select>
|
| 92 |
+
<select id="<?php echo $_code ?>_start_year" name="payment[cc_ss_start_year]" class="validate-cc-ukss year">
|
| 93 |
+
<?php foreach ($this->getSsStartYears() as $k=>$v): ?>
|
| 94 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$this->getInfoData('cc_ss_start_year')): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
| 95 |
+
<?php endforeach ?>
|
| 96 |
+
</select>
|
| 97 |
+
</div>
|
| 98 |
+
</li>
|
| 99 |
+
<li class="adv-container"> </li>
|
| 100 |
+
</ul>
|
| 101 |
+
<script type="text/javascript">
|
| 102 |
+
//<![CDATA[
|
| 103 |
+
var SSChecked<?php echo $_code ?> = function() {
|
| 104 |
+
var elm = $('<?php echo $_code ?>_cc_type');
|
| 105 |
+
if (['SS','SM','SO'].indexOf(elm.value) != -1) {
|
| 106 |
+
$('<?php echo $_code ?>_cc_type_ss_div').show();
|
| 107 |
+
} else {
|
| 108 |
+
$('<?php echo $_code ?>_cc_type_ss_div').hide();
|
| 109 |
+
}
|
| 110 |
+
};
|
| 111 |
+
Event.observe($('<?php echo $_code ?>_cc_type'), 'change', SSChecked<?php echo $_code ?>);
|
| 112 |
+
SSChecked<?php echo $_code ?>();
|
| 113 |
+
//]]>
|
| 114 |
+
</script>
|
| 115 |
+
</li>
|
| 116 |
+
<?php endif; ?>
|
| 117 |
+
</ul>
|
app/design/frontend/base/default/template/mes/cc.phtml
CHANGED
|
@@ -32,7 +32,6 @@
|
|
| 32 |
<?php
|
| 33 |
$_code = $this->getMethodCode();
|
| 34 |
$_config = Mage::getStoreConfig('payment/gateway');
|
| 35 |
-
Mage::Log($this->debug());
|
| 36 |
?>
|
| 37 |
|
| 38 |
<ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
|
| 32 |
<?php
|
| 33 |
$_code = $this->getMethodCode();
|
| 34 |
$_config = Mage::getStoreConfig('payment/gateway');
|
|
|
|
| 35 |
?>
|
| 36 |
|
| 37 |
<ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Mes_Gateway</name>
|
| 4 |
-
<version>1.2.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/apachepl.php">Apache Software License</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>The Official Free Processing plug-in for the MeS Payment Gateway.</summary>
|
| 10 |
<description>This plug-in will allow credit card acceptance through the Merchant e-Solutions Payment Gateway.</description>
|
| 11 |
-
<notes>
|
| 12 |
<authors><author><name>mesolutions</name><user>mesolutions</user><email>mes_certification@merchante-solutions.com</email></author></authors>
|
| 13 |
-
<date>2013-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Mes"><dir name="Gateway"><dir name="Block"><file name="Form.php" hash="03e1cab2da92ca33015ec1f273f0b347"/></dir><dir name="Helper"><file name="Data.php" hash="1a95e5fc5e9fdbd269d9252c1cc943f9"/></dir><dir name="Model"><file name="Paymentmodel.php" hash="1452674749cd6fda3586c09b30fce4be"/><file name="Session.php" hash="f6ce82220c951243ab7c65f6394c9027"/><dir name="Source"><file name="Cardtypes.php" hash="c86be0ea657658fc49fbda3639a663f0"/><file name="Currencies.php" hash="cde6d43fdd21b96c570fc082c2acaadb"/><file name="Transactiontype.php" hash="de93477fe1e51031399ece2a7fcf45ea"/></dir></dir><dir name="etc"><file name="config.xml" hash="a95891af9d6d7e4e5eadf62aea1e7858"/><file name="system.xml" hash="4e1a96a603b3ce3420bbf8e03b5b9283"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Mes_Gateway.xml" hash="3c66636dd94beda5bfb984565b52aca1"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mes"><file name="cc.phtml" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Mes_Gateway</name>
|
| 4 |
+
<version>1.2.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/apachepl.php">Apache Software License</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>The Official Free Processing plug-in for the MeS Payment Gateway.</summary>
|
| 10 |
<description>This plug-in will allow credit card acceptance through the Merchant e-Solutions Payment Gateway.</description>
|
| 11 |
+
<notes>Fixed creation of orders in the admin backend</notes>
|
| 12 |
<authors><author><name>mesolutions</name><user>mesolutions</user><email>mes_certification@merchante-solutions.com</email></author></authors>
|
| 13 |
+
<date>2013-11-01</date>
|
| 14 |
+
<time>21:10:26</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Mes"><dir name="Gateway"><dir name="Block"><file name="Form.php" hash="03e1cab2da92ca33015ec1f273f0b347"/></dir><dir name="Helper"><file name="Data.php" hash="1a95e5fc5e9fdbd269d9252c1cc943f9"/></dir><dir name="Model"><file name="Paymentmodel.php" hash="1452674749cd6fda3586c09b30fce4be"/><file name="Session.php" hash="f6ce82220c951243ab7c65f6394c9027"/><dir name="Source"><file name="Cardtypes.php" hash="c86be0ea657658fc49fbda3639a663f0"/><file name="Currencies.php" hash="cde6d43fdd21b96c570fc082c2acaadb"/><file name="Transactiontype.php" hash="de93477fe1e51031399ece2a7fcf45ea"/></dir></dir><dir name="etc"><file name="config.xml" hash="a95891af9d6d7e4e5eadf62aea1e7858"/><file name="system.xml" hash="4e1a96a603b3ce3420bbf8e03b5b9283"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Mes_Gateway.xml" hash="3c66636dd94beda5bfb984565b52aca1"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mes"><file name="cc.phtml" hash="ecf97a98e0be84210c7fb922740bd031"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mes"><file name="cc.phtml" hash="1f6cb5eb01602aad78b06f6d2e616fae"/></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
