Version Notes
Fixed admin order entry
Download this release
Release Info
Developer | mesolutions |
Extension | Mes_Gateway |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.3
app/code/community/Mes/Gateway/Model/Paymentmodel.php
CHANGED
@@ -39,7 +39,7 @@ class Mes_Gateway_Model_Paymentmodel extends Mage_Payment_Model_Method_Cc {
|
|
39 |
protected $_canVoid = true;
|
40 |
protected $_canUseInternal = true; ## Creation of a transaction from the admin panel
|
41 |
protected $_canUseCheckout = true;
|
42 |
-
protected $_formBlockType = 'gateway/form';
|
43 |
|
44 |
public function __construct() {
|
45 |
}
|
39 |
protected $_canVoid = true;
|
40 |
protected $_canUseInternal = true; ## Creation of a transaction from the admin panel
|
41 |
protected $_canUseCheckout = true;
|
42 |
+
//protected $_formBlockType = 'gateway/form';
|
43 |
|
44 |
public function __construct() {
|
45 |
}
|
app/design/frontend/base/default/template/mes/cc.phtml
DELETED
@@ -1,135 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Merchant e-Solutions Magento Plugin.
|
4 |
-
* v1.1.0 - March 10th, 2011
|
5 |
-
*
|
6 |
-
* Copyright (c) 2010 Merchant e-Solutions
|
7 |
-
* All rights reserved.
|
8 |
-
*
|
9 |
-
* Redistribution and use in source and binary forms, with or without
|
10 |
-
* modification, are permitted provided that the following conditions are met:
|
11 |
-
* * Redistributions of source code must retain the above copyright
|
12 |
-
* notice, this list of conditions and the following disclaimer.
|
13 |
-
* * Redistributions in binary form must reproduce the above copyright
|
14 |
-
* notice, this list of conditions and the following disclaimer in the
|
15 |
-
* documentation and/or other materials provided with the distribution.
|
16 |
-
* * Neither the name of Merchant e-Solutions nor the
|
17 |
-
* names of its contributors may be used to endorse or promote products
|
18 |
-
* derived from this software without specific prior written permission.
|
19 |
-
*
|
20 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
21 |
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
22 |
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23 |
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
|
24 |
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
25 |
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
26 |
-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
27 |
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28 |
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
29 |
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30 |
-
*/
|
31 |
-
?>
|
32 |
-
<?php $_code=$this->getMethodCode() ?>
|
33 |
-
<ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
|
34 |
-
<li>
|
35 |
-
<label for="<?php echo $_code ?>_cc_type" class="required"><em>*</em><?php echo $this->__('Credit Card Type') ?></label>
|
36 |
-
<div class="input-box">
|
37 |
-
<select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
|
38 |
-
<option value=""><?php echo $this->__('--Please Select--')?></option>
|
39 |
-
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
40 |
-
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
41 |
-
<option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_ccType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
|
42 |
-
<?php endforeach ?>
|
43 |
-
</select>
|
44 |
-
</div>
|
45 |
-
</li>
|
46 |
-
<li>
|
47 |
-
<label for="<?php echo $_code ?>_cc_number" class="required"><em>*</em><?php echo $this->__('Credit Card Number') ?></label>
|
48 |
-
<div class="input-box">
|
49 |
-
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text validate-cc-number validate-cc-type" value="" />
|
50 |
-
</div>
|
51 |
-
</li>
|
52 |
-
<li id="<?php echo $_code ?>_cc_type_exp_div">
|
53 |
-
<label for="<?php echo $_code ?>_expiration" class="required"><em>*</em><?php echo $this->__('Expiration Date') ?></label>
|
54 |
-
<div class="input-box">
|
55 |
-
<div class="v-fix">
|
56 |
-
<select id="<?php echo $_code ?>_expiration" name="payment[cc_exp_month]" class="month validate-cc-exp required-entry">
|
57 |
-
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
58 |
-
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
59 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
60 |
-
<?php endforeach ?>
|
61 |
-
</select>
|
62 |
-
</div>
|
63 |
-
<div class="v-fix">
|
64 |
-
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
65 |
-
<select id="<?php echo $_code ?>_expiration_yr" name="payment[cc_exp_year]" class="year required-entry">
|
66 |
-
<?php foreach ($this->getCcYears() as $k=>$v): ?>
|
67 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
68 |
-
<?php endforeach ?>
|
69 |
-
</select>
|
70 |
-
</div>
|
71 |
-
</div>
|
72 |
-
</li>
|
73 |
-
<?php echo $this->getChildHtml() ?>
|
74 |
-
<?php if($this->hasVerification()): ?>
|
75 |
-
<li id="<?php echo $_code ?>_cc_type_cvv_div">
|
76 |
-
<label for="<?php echo $_code ?>_cc_cid" class="required"><em>*</em><?php echo $this->__('Card Verification Number') ?></label>
|
77 |
-
<div class="input-box">
|
78 |
-
<div class="v-fix">
|
79 |
-
<input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="input-text cvv required-entry validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" value="" />
|
80 |
-
</div>
|
81 |
-
<a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
|
82 |
-
</div>
|
83 |
-
</li>
|
84 |
-
<?php endif; ?>
|
85 |
-
|
86 |
-
<?php if ($this->hasSsCardType()): ?>
|
87 |
-
<li id="<?php echo $_code ?>_cc_type_ss_div">
|
88 |
-
<ul class="inner-form">
|
89 |
-
<li class="form-alt"><label for="<?php echo $_code ?>_cc_issue" class="required"><em>*</em><?php echo $this->__('Switch/Solo/Maestro Only') ?></label></li>
|
90 |
-
<li>
|
91 |
-
<label for="<?php echo $_code ?>_cc_issue"><?php echo $this->__('Issue Number') ?>:</label>
|
92 |
-
<span class="input-box">
|
93 |
-
<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="" />
|
94 |
-
</span>
|
95 |
-
</li>
|
96 |
-
|
97 |
-
<li>
|
98 |
-
<label for="<?php echo $_code ?>_start_month"><?php echo $this->__('Start Date') ?>:</label>
|
99 |
-
<div class="input-box">
|
100 |
-
<div class="v-fix">
|
101 |
-
<select id="<?php echo $_code ?>_start_month" name="payment[cc_ss_start_month]" class="validate-cc-ukss month">
|
102 |
-
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
103 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$this->getInfoData('cc_ss_start_month')): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
104 |
-
<?php endforeach ?>
|
105 |
-
</select>
|
106 |
-
</div>
|
107 |
-
<div class="v-fix">
|
108 |
-
<select id="<?php echo $_code ?>_start_year" name="payment[cc_ss_start_year]" class="validate-cc-ukss year">
|
109 |
-
<?php foreach ($this->getSsStartYears() as $k=>$v): ?>
|
110 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$this->getInfoData('cc_ss_start_year')): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
111 |
-
<?php endforeach ?>
|
112 |
-
</select>
|
113 |
-
</div>
|
114 |
-
</div>
|
115 |
-
</li>
|
116 |
-
<li class="adv-container"> </li>
|
117 |
-
</ul>
|
118 |
-
<script type="text/javascript">
|
119 |
-
//<![CDATA[
|
120 |
-
var SSChecked<?php echo $_code ?> = function() {
|
121 |
-
var elm = $('<?php echo $_code ?>_cc_type');
|
122 |
-
if (['SS','SM','SO'].indexOf(elm.value) != -1) {
|
123 |
-
$('<?php echo $_code ?>_cc_type_ss_div').show();
|
124 |
-
} else {
|
125 |
-
$('<?php echo $_code ?>_cc_type_ss_div').hide();
|
126 |
-
}
|
127 |
-
};
|
128 |
-
|
129 |
-
Event.observe($('<?php echo $_code ?>_cc_type'), 'change', SSChecked<?php echo $_code ?>);
|
130 |
-
SSChecked<?php echo $_code ?>();
|
131 |
-
//]]>
|
132 |
-
</script>
|
133 |
-
</li>
|
134 |
-
<?php endif; ?>
|
135 |
-
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mes_Gateway</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
-
<license
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>For
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Mes"><dir name="Gateway"><dir name="Block"><file name="Form.php" hash="8f199dd731d62551808e9104800d1aff"/></dir><dir name="Helper"><file name="Data.php" hash="1a95e5fc5e9fdbd269d9252c1cc943f9"/></dir><dir name="Model"><file name="Paymentmodel.php" 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.1.3</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>BSD</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>This plug-in will allow credit card acceptance through the Merchant e-Solutions Payment Gateway.</summary>
|
10 |
+
<description>For full setup instructions see resources.merchante-solutions.com.</description>
|
11 |
+
<notes>Fixed admin order entry</notes>
|
12 |
+
<authors><author><name>Merchant e-Solutions</name><user>mesolutions</user><email>mes_certification@merchante-solutions.com</email></author></authors>
|
13 |
+
<date>2012-07-02</date>
|
14 |
+
<time>18:25:17</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Mes"><dir name="Gateway"><dir name="Block"><file name="Form.php" hash="8f199dd731d62551808e9104800d1aff"/></dir><dir name="Helper"><file name="Data.php" hash="1a95e5fc5e9fdbd269d9252c1cc943f9"/></dir><dir name="Model"><file name="Paymentmodel.php" hash="b8c1a104242555f3117d40ce507e04e0"/><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="e4131a7e85c3b125a82a5f5cf03dca1b"/><file name="system.xml" hash="1435661a49bd9814464a0e4b3a53e966"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mes_Gateway.xml" hash="3c66636dd94beda5bfb984565b52aca1"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|