Version Notes
Fixed issue with AUTH being passed into iframed payment form after decline. Also fixed card type & last 4 digit of card not being passed into order.
Download this release
Release Info
Developer | Justin Slingerland |
Extension | BluePay_CreditCard |
Version | 1.5.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.6.1 to 1.5.6.2
app/code/local/BluePay/CreditCard/Model/CCPayment.php
CHANGED
@@ -164,7 +164,8 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
164 |
->setCcTransId($result->getRrno())
|
165 |
->setCcAvsStatus($result->getAvs())
|
166 |
->setCcCidStatus($result->getCvv2());
|
167 |
-
|
|
|
168 |
switch ($result->getResult()) {
|
169 |
case self::RESPONSE_CODE_APPROVED:
|
170 |
$payment->setStatus(self::STATUS_APPROVED);
|
@@ -195,6 +196,8 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
195 |
$result = $this->_postRequest($request);
|
196 |
if ($result->getResult() == self::RESPONSE_CODE_APPROVED) {
|
197 |
$payment->setStatus(self::STATUS_APPROVED);
|
|
|
|
|
198 |
////$payment->setCcTransId($result->getTransactionId());
|
199 |
$payment->setLastTransId($result->getRrno());
|
200 |
if (!$payment->getParentTransactionId() || $result->getRrno() != $payment->getParentTransactionId()) {
|
@@ -422,7 +425,7 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
422 |
if ($r) {
|
423 |
$result->setResult($this->parseHeader($r, 'value', self::Result))
|
424 |
->setInvoiceId($this->parseHeader($r, 'value', self::INVOICE_ID))
|
425 |
-
|
426 |
->setMessage($this->parseHeader($r, 'value', self::MESSAGE))
|
427 |
->setAuthCode($this->parseHeader($r, 'value', self::AUTH_CODE))
|
428 |
->setAvs($this->parseHeader($r, 'value', self::AVS))
|
@@ -506,10 +509,10 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
506 |
return;
|
507 |
self::$_dupe = true;
|
508 |
$payment->setTransactionType(self::REQUEST_TYPE_CREDIT);
|
509 |
-
|
510 |
$payment->setRrno($id);
|
511 |
-
|
512 |
-
|
513 |
$payment->setCcTransId('');
|
514 |
}
|
515 |
}
|
@@ -644,8 +647,8 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
644 |
if (!($data instanceof Varien_Object)) {
|
645 |
$data = new Varien_Object($data);
|
646 |
}
|
647 |
-
|
648 |
$info = $this->getInfoInstance();
|
|
|
649 |
$info->setCcType($data->getCcType())
|
650 |
->setCcOwner($data->getCcOwner())
|
651 |
->setCcLast4(substr($data->getCcNumber(), -4))
|
@@ -670,7 +673,6 @@ class BluePay_CreditCard_Model_CCPayment extends Mage_Payment_Model_Method_Cc
|
|
670 |
public function prepareSave()
|
671 |
{
|
672 |
$info = $this->getInfoInstance();
|
673 |
-
|
674 |
if ($this->_canSaveCc) {
|
675 |
$info->setCcNumberEnc($info->encrypt('xxxx-'.$info->getCcLast4()));
|
676 |
}
|
164 |
->setCcTransId($result->getRrno())
|
165 |
->setCcAvsStatus($result->getAvs())
|
166 |
->setCcCidStatus($result->getCvv2());
|
167 |
+
if ($payment->getCcType() == '') $payment->setCcType($result->getCardType());
|
168 |
+
if ($payment->getCcLast4() == '') $payment->setCcLast4(substr($result->getCcNumber(), -4));
|
169 |
switch ($result->getResult()) {
|
170 |
case self::RESPONSE_CODE_APPROVED:
|
171 |
$payment->setStatus(self::STATUS_APPROVED);
|
196 |
$result = $this->_postRequest($request);
|
197 |
if ($result->getResult() == self::RESPONSE_CODE_APPROVED) {
|
198 |
$payment->setStatus(self::STATUS_APPROVED);
|
199 |
+
if ($payment->getCcType() == '') $payment->setCcType($result->getCardType());
|
200 |
+
if ($payment->getCcLast4() == '') $payment->setCcLast4(substr($result->getCcNumber(), -4));
|
201 |
////$payment->setCcTransId($result->getTransactionId());
|
202 |
$payment->setLastTransId($result->getRrno());
|
203 |
if (!$payment->getParentTransactionId() || $result->getRrno() != $payment->getParentTransactionId()) {
|
425 |
if ($r) {
|
426 |
$result->setResult($this->parseHeader($r, 'value', self::Result))
|
427 |
->setInvoiceId($this->parseHeader($r, 'value', self::INVOICE_ID))
|
428 |
+
->setBankName($this->parseHeader($r, 'value', self::BANK_NAME))
|
429 |
->setMessage($this->parseHeader($r, 'value', self::MESSAGE))
|
430 |
->setAuthCode($this->parseHeader($r, 'value', self::AUTH_CODE))
|
431 |
->setAvs($this->parseHeader($r, 'value', self::AVS))
|
509 |
return;
|
510 |
self::$_dupe = true;
|
511 |
$payment->setTransactionType(self::REQUEST_TYPE_CREDIT);
|
512 |
+
$payment->setCcTransId($id);
|
513 |
$payment->setRrno($id);
|
514 |
+
$request = $this->_buildRequest($payment);
|
515 |
+
$result = $this->_postRequest($request);
|
516 |
$payment->setCcTransId('');
|
517 |
}
|
518 |
}
|
647 |
if (!($data instanceof Varien_Object)) {
|
648 |
$data = new Varien_Object($data);
|
649 |
}
|
|
|
650 |
$info = $this->getInfoInstance();
|
651 |
+
error_log($_POST["PAYMENT_ACCOUNT"]);
|
652 |
$info->setCcType($data->getCcType())
|
653 |
->setCcOwner($data->getCcOwner())
|
654 |
->setCcLast4(substr($data->getCcNumber(), -4))
|
673 |
public function prepareSave()
|
674 |
{
|
675 |
$info = $this->getInfoInstance();
|
|
|
676 |
if ($this->_canSaveCc) {
|
677 |
$info->setCcNumberEnc($info->encrypt('xxxx-'.$info->getCcLast4()));
|
678 |
}
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>BluePay_CreditCard</name>
|
4 |
-
<version>1.5.6.
|
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 iframed payment form
|
12 |
<authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
|
13 |
-
<date>2016-05-
|
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"/></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="
|
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.6.2</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 AUTH being passed into iframed payment form after decline. Also fixed card type & last 4 digit of card not being passed into order.</notes>
|
12 |
<authors><author><name>Justin Slingerland</name><user>jslingerland</user><email>jslingerland@bluepay.com</email></author></authors>
|
13 |
+
<date>2016-05-17</date>
|
14 |
+
<time>21:53:50</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="cd4449aec447bb72da629b84920b096d"/><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 name="layout"><file name="bluepay.xml" hash="2ad8b6c72b06ba18f7276e4dec4b9ebb"/></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>
|