Version Notes
E-Check payment module to be used with a BluePay gateway account.
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | BluePay_Echeck |
| Version | 1.4.3.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.2.4 to 1.4.3.0
app/code/local/BluePay/Echeck/Model/EcheckPayment.php
CHANGED
|
@@ -311,9 +311,12 @@ Mage::throwException(Mage::helper('paygate')->__('Error: ' . $result->getMessage
|
|
| 311 |
->setAvs($this->parseHeader($r, 'value', self::AVS))
|
| 312 |
->setRrno($this->parseHeader($r, 'value', self::RRNO))
|
| 313 |
->setAmount($this->parseHeader($r, 'value', self::AMOUNT))
|
| 314 |
-
->
|
| 315 |
->setOrderId($this->parseHeader($r, 'value', self::ORDER_ID))
|
| 316 |
->setCvv2($this->parseHeader($r, 'value', self::CVV2));
|
|
|
|
|
|
|
|
|
|
| 317 |
}
|
| 318 |
else {
|
| 319 |
Mage::throwException(
|
| 311 |
->setAvs($this->parseHeader($r, 'value', self::AVS))
|
| 312 |
->setRrno($this->parseHeader($r, 'value', self::RRNO))
|
| 313 |
->setAmount($this->parseHeader($r, 'value', self::AMOUNT))
|
| 314 |
+
->setPaymentType($this->parseHeader($r, 'value', self::PAYMENT_TYPE))
|
| 315 |
->setOrderId($this->parseHeader($r, 'value', self::ORDER_ID))
|
| 316 |
->setCvv2($this->parseHeader($r, 'value', self::CVV2));
|
| 317 |
+
if($this->parseHeader($r, 'value', 0) == "ERROR") {
|
| 318 |
+
Mage::throwException($this->_wrapGatewayError($this->parseHeader($r, 'value', 1)));
|
| 319 |
+
}
|
| 320 |
}
|
| 321 |
else {
|
| 322 |
Mage::throwException(
|
app/design/frontend/base/default/template/payment/form/echeck.phtml
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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="required-entry">
|
| 8 |
+
</div>
|
| 9 |
+
</li>
|
| 10 |
+
<!-- <li>
|
| 11 |
+
<div class="input-box">
|
| 12 |
+
<label for="<?php echo $_code ?>_echeck_bank_name"><?php echo $this->__('Bank name') ?> <span class="required">*</span></label><br />
|
| 13 |
+
<input id="<?php echo $_code ?>_echeck_bank_name" name="payment[echeck_bank_name]" class="required-entry">
|
| 14 |
+
</div>
|
| 15 |
+
</li> -->
|
| 16 |
+
<li>
|
| 17 |
+
<div class="input-box">
|
| 18 |
+
<label for="<?php echo $_code ?>_echeck_bank_acct_num"><?php echo $this->__('Bank account number') ?> <span class="required">*</span></label><br />
|
| 19 |
+
<input id="<?php echo $_code ?>_echeck_bank_acct_num" name="payment[echeck_bank_acct_num]" class="required-entry">
|
| 20 |
+
</div>
|
| 21 |
+
</li>
|
| 22 |
+
<li>
|
| 23 |
+
<div class="input-box">
|
| 24 |
+
<label for="<?php echo $_code ?>_echeck_account_type"><?php echo $this->__('Account type') ?> <span class="required">*</span></label><br />
|
| 25 |
+
<select id="<?php echo $_code ?>_echeck_account_type" name="payment[echeck_account_type]" class="required-entry">
|
| 26 |
+
<option value=""><?php echo $this->__('--Please Select--')?></option>
|
| 27 |
+
<?php $_accountType = $this->getInfoData('account_type') ?>
|
| 28 |
+
<?php foreach ($this->getAccountAvailableTypes() as $_typeCode => $_typeName): ?>
|
| 29 |
+
<option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_accountType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
|
| 30 |
+
<?php endforeach ?>
|
| 31 |
+
</select>
|
| 32 |
+
</div>
|
| 33 |
+
</li>
|
| 34 |
+
<!-- <li>
|
| 35 |
+
<div class="input-box">
|
| 36 |
+
<label for="<?php echo $_code ?>_echeck_account_name"><?php echo $this->__('Name On Account') ?> <span class="required">*</span></label><br />
|
| 37 |
+
<input id="<?php echo $_code ?>_echeck_account_name" name="payment[echeck_account_name]" class="required-entry">
|
| 38 |
+
</div>
|
| 39 |
+
</li> -->
|
| 40 |
+
<!-- li>
|
| 41 |
+
<div class="input-box">
|
| 42 |
+
<label for="<?php echo $_code ?>_echeck_type"><?php echo $this->__('Echeck type') ?> <span class="required">*</span></label><br />
|
| 43 |
+
<input id="<?php echo $_code ?>_echeck_type" name="payment[echeck_type]" class="required-entry">
|
| 44 |
+
</div>
|
| 45 |
+
</li-->
|
| 46 |
+
</ul>
|
| 47 |
+
</fieldset>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>BluePay_Echeck</name>
|
| 4 |
-
<version>1.4.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>This is an e-check module to be used with the BluePay payment gateway. This extension requires a BluePay gateway account.</description>
|
| 11 |
<notes>E-Check payment module to be used with a BluePay gateway account.</notes>
|
| 12 |
<authors><author><name>Justin Slingerland</name><user>auto-converted</user><email>jslingerland@bluepay.com</email></author></authors>
|
| 13 |
-
<date>2011-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="echeck.phtml" hash="9fafb7aedbd119d560e46924ee051616"/></dir><dir name="info"><file name="echeck.phtml" hash="a42bea9e87b1c57d5189e0ac0b9d5df9"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="echeck.phtml" hash="9fafb7aedbd119d560e46924ee051616"/></dir><dir name="info"><file name="echeck.phtml" hash="a42bea9e87b1c57d5189e0ac0b9d5df9"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="BluePay"><dir name="Echeck"><dir name="Block"><dir name="Form"><file name="Echeck.php" hash="8923468466074253526500bd4fabe2e2"/></dir><dir name="Info"><file name="Echeck.php" hash="76a035e618edbcd0463db55f26ce3cb1"/></dir><file name="Form.php" hash="f6559b3ed104627ef0b2d19e9795dc17"/><file name="Info.php" hash="de65c278c010d85d67e5b1ae031a1c28"/></dir><dir name="etc"><file name="config.xml" hash="744ed9c6ff46796ab6e9e6951a204855"/><file name="system.xml" hash="e77e5e5a1a5d8c4c93363bcd7840c186"/></dir><dir name="Helper"><file name="Data.php" hash="8f64e111734ce162a0d0b28ebad1db90"/></dir><dir name="Model"><dir name="EcheckPayment"><dir name="Source"><file name="Accounttypes.php" hash="3c8b8034d6c96b0280db4e7e595ab73c"/><file name="PaymentAction.php" hash="9da2c6580cfd6d611c207e5be3b2aea5"/></dir><file name="Debug.php" hash="76d8cb6c86a595b2b78d43664c6dd6e8"/><file name="Request.php" hash="0a65c3aae69eb0c196231cbf6f007cec"/><file name="Result.php" hash="6935ba845811c005b9c501a03891e33a"/></dir><dir name="Mysql4"><dir name="ECheckPayment"><dir name="Debug"><file name="Collection.php" hash="aa8222f78f17b4c35050c9d06dc085bc"/></dir><file name="Debug.php" hash="829e050092ffb527e08a6a9d9959374a"/></dir></dir><file name="Config.php" hash="94567f95c4463897ba822ca1c61dca7a"/><file name="EcheckPayment.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>BluePay_Echeck</name>
|
| 4 |
+
<version>1.4.3.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>This is an e-check module to be used with the BluePay payment gateway. This extension requires a BluePay gateway account.</description>
|
| 11 |
<notes>E-Check payment module to be used with a BluePay gateway account.</notes>
|
| 12 |
<authors><author><name>Justin Slingerland</name><user>auto-converted</user><email>jslingerland@bluepay.com</email></author></authors>
|
| 13 |
+
<date>2011-12-13</date>
|
| 14 |
+
<time>21:10:13</time>
|
| 15 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="echeck.phtml" hash="9fafb7aedbd119d560e46924ee051616"/></dir><dir name="info"><file name="echeck.phtml" hash="a42bea9e87b1c57d5189e0ac0b9d5df9"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="echeck.phtml" hash="9fafb7aedbd119d560e46924ee051616"/></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="echeck.phtml" hash="9fafb7aedbd119d560e46924ee051616"/></dir><dir name="info"><file name="echeck.phtml" hash="a42bea9e87b1c57d5189e0ac0b9d5df9"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="BluePay"><dir name="Echeck"><dir name="Block"><dir name="Form"><file name="Echeck.php" hash="8923468466074253526500bd4fabe2e2"/></dir><dir name="Info"><file name="Echeck.php" hash="76a035e618edbcd0463db55f26ce3cb1"/></dir><file name="Form.php" hash="f6559b3ed104627ef0b2d19e9795dc17"/><file name="Info.php" hash="de65c278c010d85d67e5b1ae031a1c28"/></dir><dir name="etc"><file name="config.xml" hash="744ed9c6ff46796ab6e9e6951a204855"/><file name="system.xml" hash="e77e5e5a1a5d8c4c93363bcd7840c186"/></dir><dir name="Helper"><file name="Data.php" hash="8f64e111734ce162a0d0b28ebad1db90"/></dir><dir name="Model"><dir name="EcheckPayment"><dir name="Source"><file name="Accounttypes.php" hash="3c8b8034d6c96b0280db4e7e595ab73c"/><file name="PaymentAction.php" hash="9da2c6580cfd6d611c207e5be3b2aea5"/></dir><file name="Debug.php" hash="76d8cb6c86a595b2b78d43664c6dd6e8"/><file name="Request.php" hash="0a65c3aae69eb0c196231cbf6f007cec"/><file name="Result.php" hash="6935ba845811c005b9c501a03891e33a"/></dir><dir name="Mysql4"><dir name="ECheckPayment"><dir name="Debug"><file name="Collection.php" hash="aa8222f78f17b4c35050c9d06dc085bc"/></dir><file name="Debug.php" hash="829e050092ffb527e08a6a9d9959374a"/></dir></dir><file name="Config.php" hash="94567f95c4463897ba822ca1c61dca7a"/><file name="EcheckPayment.php" hash="d9350ce4158a8cdf6e2f848cfd667ba6"/></dir><dir name="sql"><dir name="echeck_setup"><file name="mysql4-install-0.7.0.php" hash="8a9c16edd149e1e41c4015aeebb35892"/></dir></dir></dir></dir></target><target name="magecore"><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="TestmodeACH.php" hash="371db79c030d69b3b19fc4caac4e7ba0"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BluePay_Echeck.xml" hash="252f244ae4f8cba53f883559a23273c7"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
