Litle_Payments - Version 8.10.2

Version Notes

This extension implements Litle XML version 8.10

Fixes in this version:
- American Express card transactions are now handled correctly.

Download this release

Release Info

Developer Litle
Extension Litle_Payments
Version 8.10.2
Comparing to
See all releases


Code changes from version 8.10.0 to 8.10.2

app/code/local/Litle/CreditCard/Model/PaymentLogic.php CHANGED
@@ -74,7 +74,7 @@ class Litle_CreditCard_Model_PaymentLogic extends Mage_Payment_Model_Method_Cc
74
  public function getCreditCardInfo(Varien_Object $payment)
75
  {
76
  $retArray = array();
77
- $retArray["type"] = $payment->getCcType();
78
  $retArray["number"] = $payment->getCcNumber();
79
  preg_match("/\d\d(\d\d)/", $payment->getCcExpYear(), $expYear);
80
  $retArray["expDate"] = sprintf('%02d%02d', $payment->getCcExpMonth(), $expYear[1]);
@@ -158,7 +158,7 @@ public function processResponse(Varien_Object $payment,$litleResponse){
158
  ->setLastTransId(XMLParser::getNode($litleResponse,'litleTxnId'))
159
  ->setTransactionId(XMLParser::getNode($litleResponse,'litleTxnId'))
160
  ->setIsTransactionClosed(0)
161
- ->setTransactionAdditionalInfo(XMLParser::getNode($litleResponse,'message'));
162
 
163
  if($isSale)
164
  throw new Mage_Payment_Model_Info_Exception(Mage::helper('core')->__("Transaction was not approved. Contact us or try again later."));
@@ -173,7 +173,7 @@ public function processResponse(Varien_Object $payment,$litleResponse){
173
  ->setLastTransId(XMLParser::getNode($litleResponse,'litleTxnId'))
174
  ->setTransactionId(XMLParser::getNode($litleResponse,'litleTxnId'))
175
  ->setIsTransactionClosed(0)
176
- ->setTransactionAdditionalInfo(XMLParser::getNode($litleResponse,'message'));
177
  }
178
  return $this;
179
  }
74
  public function getCreditCardInfo(Varien_Object $payment)
75
  {
76
  $retArray = array();
77
+ $retArray["type"] = ($payment->getCcType() == "AE")? "AX" : $payment->getCcType();
78
  $retArray["number"] = $payment->getCcNumber();
79
  preg_match("/\d\d(\d\d)/", $payment->getCcExpYear(), $expYear);
80
  $retArray["expDate"] = sprintf('%02d%02d', $payment->getCcExpMonth(), $expYear[1]);
158
  ->setLastTransId(XMLParser::getNode($litleResponse,'litleTxnId'))
159
  ->setTransactionId(XMLParser::getNode($litleResponse,'litleTxnId'))
160
  ->setIsTransactionClosed(0)
161
+ ->setTransactionAdditionalInfo("additional_information", XMLParser::getNode($litleResponse,'message'));
162
 
163
  if($isSale)
164
  throw new Mage_Payment_Model_Info_Exception(Mage::helper('core')->__("Transaction was not approved. Contact us or try again later."));
173
  ->setLastTransId(XMLParser::getNode($litleResponse,'litleTxnId'))
174
  ->setTransactionId(XMLParser::getNode($litleResponse,'litleTxnId'))
175
  ->setIsTransactionClosed(0)
176
+ ->setTransactionAdditionalInfo("additional_information", XMLParser::getNode($litleResponse,'message'));
177
  }
178
  return $this;
179
  }
app/code/local/Litle/LEcheck/Model/PaymentLogic.php CHANGED
@@ -80,7 +80,7 @@ class Litle_LEcheck_Model_PaymentLogic extends Mage_Payment_Model_Method_Abstrac
80
 
81
  public function getConfigData($fieldToLookFor, $store = NULL)
82
  {
83
- $returnFromThisModel = Mage::getStoreConfig('payment/LitleEcheck/' . $fieldToLookFor);
84
  if( $returnFromThisModel == NULL )
85
  $returnFromThisModel = parent::getConfigData($fieldToLookFor, $store);
86
 
@@ -171,7 +171,7 @@ class Litle_LEcheck_Model_PaymentLogic extends Mage_Payment_Model_Method_Abstrac
171
  ->setLastTransId(XMLParser::getNode($litleResponse,'litleTxnId'))
172
  ->setTransactionId(XMLParser::getNode($litleResponse,'litleTxnId'))
173
  ->setIsTransactionClosed(0)
174
- ->setTransactionAdditionalInfo(XMLParser::getNode($litleResponse,'message'));
175
 
176
  throw new Mage_Payment_Model_Info_Exception(Mage::helper('core')->__("Transaction was not approved. Contact us or try again later."));
177
  }
@@ -183,7 +183,7 @@ class Litle_LEcheck_Model_PaymentLogic extends Mage_Payment_Model_Method_Abstrac
183
  ->setLastTransId(XMLParser::getNode($litleResponse,'litleTxnId'))
184
  ->setTransactionId(XMLParser::getNode($litleResponse,'litleTxnId'))
185
  ->setIsTransactionClosed(0)
186
- ->setTransactionAdditionalInfo(XMLParser::getNode($litleResponse,'message'));
187
  }
188
  return $this;
189
  }
80
 
81
  public function getConfigData($fieldToLookFor, $store = NULL)
82
  {
83
+ $returnFromThisModel = Mage::getStoreConfig('payment/LEcheck/' . $fieldToLookFor);
84
  if( $returnFromThisModel == NULL )
85
  $returnFromThisModel = parent::getConfigData($fieldToLookFor, $store);
86
 
171
  ->setLastTransId(XMLParser::getNode($litleResponse,'litleTxnId'))
172
  ->setTransactionId(XMLParser::getNode($litleResponse,'litleTxnId'))
173
  ->setIsTransactionClosed(0)
174
+ ->setTransactionAdditionalInfo("additional_information", XMLParser::getNode($litleResponse,'message'));
175
 
176
  throw new Mage_Payment_Model_Info_Exception(Mage::helper('core')->__("Transaction was not approved. Contact us or try again later."));
177
  }
183
  ->setLastTransId(XMLParser::getNode($litleResponse,'litleTxnId'))
184
  ->setTransactionId(XMLParser::getNode($litleResponse,'litleTxnId'))
185
  ->setIsTransactionClosed(0)
186
+ ->setTransactionAdditionalInfo("additional_information", XMLParser::getNode($litleResponse,'message'));
187
  }
188
  return $this;
189
  }
app/design/frontend/base/default/template/payment/form/litleecheck.phtml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <fieldset class="form-list">
2
+ <?php $_code=$this->getMethodCode() ?>
3
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
4
+ <li>
5
+ <div class="input-box">
6
+ <label for="<?php echo $_code ?>_echeck_routing_number"><?php echo $this->__('Bank routing number') ?> <span class="required">*</span></label><br />
7
+ <input id="<?php echo $_code ?>_echeck_routing_number" name="payment[echeck_routing_number]" class="input-text required-entry">
8
+ </div>
9
+ </li>
10
+ <li>
11
+ <div class="input-box">
12
+ <label for="<?php echo $_code ?>_echeck_bank_acct_num"><?php echo $this->__('Bank account number') ?> <span class="required">*</span></label><br />
13
+ <input id="<?php echo $_code ?>_echeck_bank_acct_num" name="payment[echeck_bank_acct_num]" class="input-text required-entry">
14
+ </div>
15
+ </li>
16
+ <li>
17
+ <div class="input-box">
18
+ <label for="<?php echo $_code ?>_echeck_account_type"><?php echo $this->__('Account type') ?> <span class="required">*</span></label><br />
19
+ <select id="<?php echo $_code ?>_echeck_account_type" name="payment[echeck_account_type]" class="input-text required-entry">
20
+ <option value=""><?php echo $this->__('--Please Select--')?></option>
21
+ <?php $_accountType = $this->getInfoData('account_type') ?>
22
+ <?php foreach ($this->getAccountAvailableTypes() as $_typeCode => $_typeName): ?>
23
+ <option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_accountType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
24
+ <?php endforeach ?>
25
+ </select>
26
+ </div>
27
+ </li>
28
+ <!-- li>
29
+ <div class="input-box">
30
+ <label for="<?php echo $_code ?>_echeck_type"><?php echo $this->__('Echeck type') ?> <span class="required">*</span></label><br />
31
+ <input id="<?php echo $_code ?>_echeck_type" name="payment[echeck_type]" class="required-entry">
32
+ </div>
33
+ </li-->
34
+ </ul>
35
+ </fieldset>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Litle_Payments</name>
4
- <version>8.10.0</version>
5
  <stability>stable</stability>
6
  <license>MIT</license>
7
  <channel>community</channel>
@@ -17,11 +17,14 @@ Why Litle?&#xD;
17
  &#xD;
18
  We deliver the most efficient and effective core processing available to digital and direct merchants. Relevant, value-added solutions help you drive more lasting and profitable customer relationships. We&#x2019;ll also show you how payments intelligence can power your business and your relationships to greater success. We support you with the best customer experience in the business.&#xD;
19
  </description>
20
- <notes>This extension implements Litle XML version 8.10</notes>
 
 
 
21
  <authors><author><name>Litle </name><user>Litle</user><email>sdksupport@litle.com</email></author></authors>
22
- <date>2012-03-28</date>
23
- <time>15:54:50</time>
24
- <contents><target name="magelocal"><dir name="Litle"><dir><dir name="CreditCard"><dir name="Model"><file name="PaymentLogic.php" hash="0b72c1b297c6c84635d0e9018f841c80"/><file name="Url.php" hash="ce0ca23963d9eb05552528eb440d19fe"/><file name="Validatehttp.php" hash="79dac70cf02fc3e005c9bb8ef0f3e0e0"/></dir><dir name="etc"><file name="config.xml" hash="be5172f7d2ec1a5d16c64f313487be82"/><file name="system.xml" hash="bd072a42ff569bbb7bd5530c0366ee60"/></dir></dir><dir name="LEcheck"><dir name="Block"><dir name="Form"><file name="LEcheck.php" hash="ba7cc807aa5e227bb936a196985476a0"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2c2664ab694e0ba70e45157061a01436"/></dir><dir name="Model"><file name="Accounttypes.php" hash="6628bf9982d0d35341975d0bb83be5e1"/><file name="Config.php" hash="fe64d24b39251551b71e37937792b418"/><file name="PaymentLogic.php" hash="90449604d306518c671caa75ef0d880e"/><file name="Transactiontypes.php" hash="1aa3e3e77c044e77154f9c24afcfc436"/><file name="Url.php" hash="9e3d8ba06bcb9045abc82f20f18d5ef3"/><file name="Validatehttp.php" hash="6a8d4d6f043976ad272c87a885d937f4"/></dir><dir name="etc"><file name="config.xml" hash="0150e3b72ffd8b8fd08891390d02178e"/><file name="system.xml" hash="1721d5468396eaae10987be8423e0ff8"/></dir></dir><dir name="LitleSDK"><file name="Checker.php" hash="e38d02c1fc3d54faa5d2ba0302bff5ec"/><file name="Communication.php" hash="f78ab9b5497554ae47181053f5f20ac8"/><file name="LitleOnline.php" hash="f2561f12f4e47d6c1d1ae60c835e9f4f"/><file name="LitleOnlineRequest.php" hash="609062240175f4827399b81543b11ec8"/><file name="LitleXmlMapper.php" hash="17c64c7f34e5c84ab3461b92268ede46"/><file name="Obj2xml.php" hash="63f36945e7bd1dc0ae2392ea3ad7560d"/><file name="Setup.php" hash="d726bbc909f3f4754c3e73b8915f8706"/><file name="XmlFields.php" hash="d84c23fbddcb4829cddf77470ecd1191"/><file name="XmlParser.php" hash="9fb83575223778fad8eaee1bef16ab36"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="litleecheck.phtml" hash="a92047f43e72f60fea75dd536bba0552"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Litle_All.xml" hash="57f8967136923914e7a0a04f0432b821"/></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
27
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Litle_Payments</name>
4
+ <version>8.10.2</version>
5
  <stability>stable</stability>
6
  <license>MIT</license>
7
  <channel>community</channel>
17
  &#xD;
18
  We deliver the most efficient and effective core processing available to digital and direct merchants. Relevant, value-added solutions help you drive more lasting and profitable customer relationships. We&#x2019;ll also show you how payments intelligence can power your business and your relationships to greater success. We support you with the best customer experience in the business.&#xD;
19
  </description>
20
+ <notes>This extension implements Litle XML version 8.10&#xD;
21
+ &#xD;
22
+ Fixes in this version:&#xD;
23
+ - American Express card transactions are now handled correctly.</notes>
24
  <authors><author><name>Litle </name><user>Litle</user><email>sdksupport@litle.com</email></author></authors>
25
+ <date>2012-04-12</date>
26
+ <time>17:16:51</time>
27
+ <contents><target name="magelocal"><dir name="Litle"><dir><dir name="CreditCard"><dir name="Model"><file name="PaymentLogic.php" hash="18fe9db17ec4fad2017a62b435b4bc00"/><file name="Url.php" hash="ce0ca23963d9eb05552528eb440d19fe"/><file name="Validatehttp.php" hash="79dac70cf02fc3e005c9bb8ef0f3e0e0"/></dir><dir name="etc"><file name="config.xml" hash="be5172f7d2ec1a5d16c64f313487be82"/><file name="system.xml" hash="bd072a42ff569bbb7bd5530c0366ee60"/></dir></dir><dir name="LEcheck"><dir name="Block"><dir name="Form"><file name="LEcheck.php" hash="ba7cc807aa5e227bb936a196985476a0"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2c2664ab694e0ba70e45157061a01436"/></dir><dir name="Model"><file name="Accounttypes.php" hash="6628bf9982d0d35341975d0bb83be5e1"/><file name="Config.php" hash="fe64d24b39251551b71e37937792b418"/><file name="PaymentLogic.php" hash="6fef54215e9915497f43efe74ca666e8"/><file name="Transactiontypes.php" hash="1aa3e3e77c044e77154f9c24afcfc436"/><file name="Url.php" hash="9e3d8ba06bcb9045abc82f20f18d5ef3"/><file name="Validatehttp.php" hash="6a8d4d6f043976ad272c87a885d937f4"/></dir><dir name="etc"><file name="config.xml" hash="0150e3b72ffd8b8fd08891390d02178e"/><file name="system.xml" hash="1721d5468396eaae10987be8423e0ff8"/></dir></dir><dir name="LitleSDK"><file name="Checker.php" hash="e38d02c1fc3d54faa5d2ba0302bff5ec"/><file name="Communication.php" hash="f78ab9b5497554ae47181053f5f20ac8"/><file name="LitleOnline.php" hash="f2561f12f4e47d6c1d1ae60c835e9f4f"/><file name="LitleOnlineRequest.php" hash="609062240175f4827399b81543b11ec8"/><file name="LitleXmlMapper.php" hash="17c64c7f34e5c84ab3461b92268ede46"/><file name="Obj2xml.php" hash="63f36945e7bd1dc0ae2392ea3ad7560d"/><file name="Setup.php" hash="d726bbc909f3f4754c3e73b8915f8706"/><file name="XmlFields.php" hash="d84c23fbddcb4829cddf77470ecd1191"/><file name="XmlParser.php" hash="9fb83575223778fad8eaee1bef16ab36"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="litleecheck.phtml" hash="a92047f43e72f60fea75dd536bba0552"/></dir></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="litleecheck.phtml" hash="a92047f43e72f60fea75dd536bba0552"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Litle_All.xml" hash="57f8967136923914e7a0a04f0432b821"/></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
30
  </package>