Version Notes
Fixed issue with multiple credit memos refunding an invoice
Download this release
Release Info
Developer | Justin Slingerland |
Extension | BluePay_CreditCard |
Version | 1.5.5.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.5.7 to 1.5.5.8
app/code/local/BluePay/CreditCard/Block/.Form.php.swp
DELETED
Binary file
|
app/code/local/BluePay/CreditCard/Model/CCPayment.php
CHANGED
@@ -298,7 +298,7 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
298 |
}
|
299 |
$request->setMode(($this->getConfigData('test_mode') == 'TEST') ? 'TEST' : 'LIVE');
|
300 |
|
301 |
-
if ($payment->getAdditionalData()) {
|
302 |
$request->setRrno($payment->getAdditionalData());
|
303 |
$payment->setRrno($payment->getAdditionalData());
|
304 |
}
|
@@ -442,6 +442,16 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
442 |
} else {
|
443 |
$result->setResult($_POST["Result"]);
|
444 |
$result->setMessage($_POST["MESSAGE"]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
445 |
}
|
446 |
return $result;
|
447 |
}
|
@@ -521,6 +531,7 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
521 |
$hashstr = $this->getConfigData('trans_key') . $this->getConfigData('login') .
|
522 |
$payment->getTransactionType() . $payment->getAmount() . $payment->getRrno() .
|
523 |
$this->getConfigData('test_mode');
|
|
|
524 |
return bin2hex( md5($hashstr, true) );
|
525 |
}
|
526 |
|
298 |
}
|
299 |
$request->setMode(($this->getConfigData('test_mode') == 'TEST') ? 'TEST' : 'LIVE');
|
300 |
|
301 |
+
if ($payment->getAdditionalData() && !$payment->getRrno()) {
|
302 |
$request->setRrno($payment->getAdditionalData());
|
303 |
$payment->setRrno($payment->getAdditionalData());
|
304 |
}
|
442 |
} else {
|
443 |
$result->setResult($_POST["Result"]);
|
444 |
$result->setMessage($_POST["MESSAGE"]);
|
445 |
+
$result->setRrno($_POST["RRNO"]);
|
446 |
+
$result->setCcNumber($_POST["PAYMENT_ACCOUNT"]);
|
447 |
+
$result->setCcExpMonth($_POST["CC_EXPIRES_MONTH"]);
|
448 |
+
$result->setCcExpYear($_POST["CC_EXPIRES_YEAR"]);
|
449 |
+
$result->setPaymentType($_POST["PAYMENT_TYPE"]);
|
450 |
+
$result->setCardType($_POST["CARD_TYPE"]);
|
451 |
+
$result->setAuthCode($_POST["AUTH_CODE"]);
|
452 |
+
$result->setAvs($_POST["AVS"]);
|
453 |
+
$result->setCvv2($_POST["CVV2"]);
|
454 |
+
$this->assignBluePayToken($result->getRrno());
|
455 |
}
|
456 |
return $result;
|
457 |
}
|
531 |
$hashstr = $this->getConfigData('trans_key') . $this->getConfigData('login') .
|
532 |
$payment->getTransactionType() . $payment->getAmount() . $payment->getRrno() .
|
533 |
$this->getConfigData('test_mode');
|
534 |
+
Mage::log($hashstr);
|
535 |
return bin2hex( md5($hashstr, true) );
|
536 |
}
|
537 |
|
app/design/adminhtml/default/default/template/bluepay/creditcard.phtml
CHANGED
@@ -30,7 +30,7 @@
|
|
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]">
|
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>
|
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]">
|
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>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
-
<version>1.5.5.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Credit Card payment module for the BluePay gateway.</summary>
|
10 |
<description>Credit Card payment module for the BluePay gateway.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="BluePay_CreditCard.xml" hash="8a84b7d3e004f61f9d55e428b55cea8c"/></dir></target><target name="mageweb"><dir name="js"><dir name="bluepay"><file name="bluepay.js" hash="c371e7e864f1b3db25328fa08e3e9c27"/><dir name="easyXDM"><file name="easyXDM.Widgets.debug.js" hash="26b23561d39a64b926fe8dafea2f0a7b"/><file name="easyXDM.Widgets.js" hash="26b23561d39a64b926fe8dafea2f0a7b"/><file name="easyXDM.Widgets.min.js" hash="790f5fa04af75a8013d0ff5fd6dc770d"/><file name="easyXDM.debug.js" hash="2f74fa97b0aacdfb5e8570e381465905"/><file name="easyXDM.js" hash="499464a0c3d89679c11df6ee5d188df5"/><file name="easyXDM.min.js" hash="e3fd912457d7213fe5ccae7bf0fd0c82"/><file name="name.html" hash="990620350432f6c7e28f1e111ce598c8"/><file name=".gitignore" hash="f256c78995e7e95eb33afc3cee8ff195"/></dir></dir></dir></target><target name="magelocal"><dir name="BluePay"><dir name="CreditCard"><dir name="Block"><file name="Form.php" hash="3132dfeb27e31edb4c5a2a862126cdd7"
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>5.6.99</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
+
<version>1.5.5.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Credit Card payment module for the BluePay gateway.</summary>
|
10 |
<description>Credit Card payment module for the BluePay gateway.</description>
|
11 |
+
<notes>Fixed issue with multiple credit memos refunding an invoice</notes>
|
12 |
<authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
|
13 |
+
<date>2016-02-03</date>
|
14 |
+
<time>16:27:03</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="BluePay_CreditCard.xml" hash="8a84b7d3e004f61f9d55e428b55cea8c"/></dir></target><target name="mageweb"><dir name="js"><dir name="bluepay"><file name="bluepay.js" hash="c371e7e864f1b3db25328fa08e3e9c27"/><dir name="easyXDM"><file name="easyXDM.Widgets.debug.js" hash="26b23561d39a64b926fe8dafea2f0a7b"/><file name="easyXDM.Widgets.js" hash="26b23561d39a64b926fe8dafea2f0a7b"/><file name="easyXDM.Widgets.min.js" hash="790f5fa04af75a8013d0ff5fd6dc770d"/><file name="easyXDM.debug.js" hash="2f74fa97b0aacdfb5e8570e381465905"/><file name="easyXDM.js" hash="499464a0c3d89679c11df6ee5d188df5"/><file name="easyXDM.min.js" hash="e3fd912457d7213fe5ccae7bf0fd0c82"/><file name="name.html" hash="990620350432f6c7e28f1e111ce598c8"/><file name=".gitignore" hash="f256c78995e7e95eb33afc3cee8ff195"/></dir></dir></dir></target><target name="magelocal"><dir name="BluePay"><dir name="CreditCard"><dir name="Block"><file name="Form.php" hash="3132dfeb27e31edb4c5a2a862126cdd7"/></dir><dir name="Helper"><file name="Data.php" hash="dc77bf42a31b7dd5dc31b92549c99abc"/></dir><dir name="Model"><dir name="CCPayment"><file name="Debug.php" hash="bde283680e78d3891affd630c0959bc8"/><file name="Request.php" hash="0317b2c7dc66004767405b78a3cc2631"/><file name="Result.php" hash="0d285e50805f03af609c87d91fce092a"/><dir name="Source"><file name="Cctype.php" hash="9d0f6dd894fb1006ed9bedce966f270b"/><file name="PaymentAction.php" hash="a233de610ff201a77d920fd73ecfb24a"/></dir></dir><file name="CCPayment.php" hash="b1b05dc6f7a429a1026c09f86148ff75"/><file name="CCPayment.php~" hash="5eeb7bebef806110f6e36d5dae8280e0"/><file name="Config.php" hash="387ecaf88faa6c7d740b78d9e2dd2db6"/><dir name="Mysql4"><dir name="CCPayment"><dir name="Debug"><file name="Collection.php" hash="9d4c92ad278242715d08b6e202770ce1"/></dir><file name="Debug.php" hash="4f64c922ddb5b80d36538696471b69b5"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="f514f783fd39e1836b6ef4fc5087ea18"/><file name="system.xml" hash="a7622a714caebe79f607e6aea2fffee1"/></dir><dir name="sql"><dir name="creditcard_setup"><file name="mysql4-install-0.7.0.php" hash="c97f60ff629417efef8beebf619caa9a"/></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="Testmode.php" hash="3f72e89b4f8239ad839d591310468453"/><dir name="Order"><dir name="Status"><file name="Processingcomplete.php" hash="f9eb96ffc645117a04cc094b62fb24d4"/></dir></dir><file name="Duplicatewindow.php" hash="86b5f8c6d10b2cca813919c8aead0464"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="bluepay"><file name="creditcard.phtml" hash="4084bffebe86bead51a4910091fe82a5"/><file name="form.phtml" hash="e5cf9ce8eeaeae71fb3372fb542f7431"/><file name="creditcardiframe.phtml" hash="55c518297c050fc4ce6a82a65d6620b0"/><file name="button.phtml" hash="85af90e7faab002f872f82e3d663139f"/><file name="inforeview.phtml" hash="0d29af5174235ded956fea6e92302a54"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="bluepay"><file name="creditcard.phtml" hash="d4a89cf407884beaa1db416cdd450fad"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>5.6.99</max></php></required></dependencies>
|
18 |
</package>
|