Version Notes
First stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | MageBase_DpsPaymentExpress |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.1.0
- app/code/community/MageBase/DpsPaymentExpress/Model/Method/Pxpay.php +6 -5
- app/code/community/MageBase/DpsPaymentExpress/Model/Method/Pxpost.php +1 -1
- app/code/community/MageBase/DpsPaymentExpress/etc/config.xml +2 -2
- package.xml +4 -4
- skin/frontend/{default → base}/default/images/magebase/dps/AmexLogo.png +0 -0
- skin/frontend/{default → base}/default/images/magebase/dps/DinersLogo.png +0 -0
- skin/frontend/{default → base}/default/images/magebase/dps/JCBLogo.png +0 -0
- skin/frontend/{default → base}/default/images/magebase/dps/MCSecureCodeLogo.png +0 -0
- skin/frontend/{default → base}/default/images/magebase/dps/MasterCardLogo.png +0 -0
- skin/frontend/{default → base}/default/images/magebase/dps/VisaLogo.png +0 -0
- skin/frontend/{default → base}/default/images/magebase/dps/VisaVerifiedLogo.png +0 -0
- skin/frontend/{default → base}/default/images/magebase/dps/dpslogo.png +0 -0
- skin/frontend/{default → base}/default/images/magebase/dps/dpspxlogo.png +0 -0
app/code/community/MageBase/DpsPaymentExpress/Model/Method/Pxpay.php
CHANGED
@@ -208,8 +208,9 @@ class MageBase_DpsPaymentExpress_Model_Method_Pxpay extends Mage_Payment_Model_M
|
|
208 |
* @param string $result [encrypted]
|
209 |
* @return SimpleXMLElement
|
210 |
*/
|
211 |
-
public function processFailResponse($result)
|
212 |
-
|
|
|
213 |
throw new Exception("Payment method is not available.");
|
214 |
}
|
215 |
$responseXml = $this->getRealResponse($result);
|
@@ -451,7 +452,6 @@ class MageBase_DpsPaymentExpress_Model_Method_Pxpay extends Mage_Payment_Model_M
|
|
451 |
'ResponseText' => (string)$responseXml->ResponseText
|
452 |
);
|
453 |
$payment->setAdditionalData(serialize($data));
|
454 |
-
|
455 |
}
|
456 |
|
457 |
/**
|
@@ -505,7 +505,8 @@ class MageBase_DpsPaymentExpress_Model_Method_Pxpay extends Mage_Payment_Model_M
|
|
505 |
$order = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
|
506 |
}
|
507 |
if ($order->getId() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED) {
|
508 |
-
$order->
|
|
|
509 |
}
|
510 |
}
|
511 |
|
@@ -519,4 +520,4 @@ class MageBase_DpsPaymentExpress_Model_Method_Pxpay extends Mage_Payment_Model_M
|
|
519 |
return Mage::getStoreConfig('payment/'.$this->_code.'/debug');
|
520 |
}
|
521 |
|
522 |
-
}
|
208 |
* @param string $result [encrypted]
|
209 |
* @return SimpleXMLElement
|
210 |
*/
|
211 |
+
public function processFailResponse($result)
|
212 |
+
{
|
213 |
+
if (!$this->_isActive()) {
|
214 |
throw new Exception("Payment method is not available.");
|
215 |
}
|
216 |
$responseXml = $this->getRealResponse($result);
|
452 |
'ResponseText' => (string)$responseXml->ResponseText
|
453 |
);
|
454 |
$payment->setAdditionalData(serialize($data));
|
|
|
455 |
}
|
456 |
|
457 |
/**
|
505 |
$order = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
|
506 |
}
|
507 |
if ($order->getId() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED) {
|
508 |
+
$order->registerCancellation(Mage::helper('magebasedps')->__('There has been an error processing your payment. Please try later or contact us for help.'), false)
|
509 |
+
->save();
|
510 |
}
|
511 |
}
|
512 |
|
520 |
return Mage::getStoreConfig('payment/'.$this->_code.'/debug');
|
521 |
}
|
522 |
|
523 |
+
}
|
app/code/community/MageBase/DpsPaymentExpress/Model/Method/Pxpost.php
CHANGED
@@ -498,4 +498,4 @@ class MageBase_DpsPaymentExpress_Model_Method_Pxpost extends Mage_Payment_Model_
|
|
498 |
return $this->_order;
|
499 |
}
|
500 |
|
501 |
-
}
|
498 |
return $this->_order;
|
499 |
}
|
500 |
|
501 |
+
}
|
app/code/community/MageBase/DpsPaymentExpress/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<MageBase_DpsPaymentExpress>
|
5 |
-
<version>1.
|
6 |
</MageBase_DpsPaymentExpress>
|
7 |
</modules>
|
8 |
<global>
|
@@ -119,4 +119,4 @@
|
|
119 |
</magebasedpspxpay>
|
120 |
</payment>
|
121 |
</default>
|
122 |
-
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<MageBase_DpsPaymentExpress>
|
5 |
+
<version>1.1.0</version>
|
6 |
</MageBase_DpsPaymentExpress>
|
7 |
</modules>
|
8 |
<global>
|
119 |
</magebasedpspxpay>
|
120 |
</payment>
|
121 |
</default>
|
122 |
+
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MageBase_DpsPaymentExpress</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Accept credit card payments via Payment Express from DPS - this extension supports PxPay and PxPost.</description>
|
11 |
<notes>First stable release</notes>
|
12 |
<authors><author><name>Kristof Ringleff</name><user>auto-converted</user><email>info@magebase.com</email></author></authors>
|
13 |
-
<date>2010-06-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="MageBase_DpsPaymentExpress.xml" hash="fae6ba260c006016d14d9a508d17cf14"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MageBase_DpsPaymentExpress</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Accept credit card payments via Payment Express from DPS - this extension supports PxPay and PxPost.</description>
|
11 |
<notes>First stable release</notes>
|
12 |
<authors><author><name>Kristof Ringleff</name><user>auto-converted</user><email>info@magebase.com</email></author></authors>
|
13 |
+
<date>2010-06-25</date>
|
14 |
+
<time>02:01:54</time>
|
15 |
+
<contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="MageBase_DpsPaymentExpress.xml" hash="fae6ba260c006016d14d9a508d17cf14"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="magebase"><dir name="dps"><file name="AmexLogo.png" hash="775a3f26a4b5f7a6201b1331e4fe5579"/><file name="DinersLogo.png" hash="64500fdde86e960ac894f7cf0c44b2d8"/><file name="dpslogo.png" hash="8cc607a6a0bb32cea44d71fdc6086970"/><file name="dpspxlogo.png" hash="2f4e2d293b1e67f4a380f034bb49c788"/><file name="JCBLogo.png" hash="73f9e8b87c6c2dbf252bbb0de43591bc"/><file name="MasterCardLogo.png" hash="801014f81e405cec951076f4080b04f5"/><file name="MCSecureCodeLogo.png" hash="9f31e5ccadd98dc15d0110d0e3b450f7"/><file name="VisaLogo.png" hash="17173fb8723d34cea61a50c01c4845ed"/><file name="VisaVerifiedLogo.png" hash="af7f6a27a6449a50d1d623d925585c47"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="MageBase"><dir name="DpsPaymentExpress"><dir name="Block"><dir name="Form"><file name="Pxpay.php" hash="cfee1e51334484335b8f4b6640a502c6"/><file name="Pxpost.php" hash="d16ec81082d5a3c3f7a9f0ec017c1138"/></dir><dir name="Info"><file name="Pxpay.php" hash="9807aac8b02f40efa157c0afceb54438"/><file name="Pxpost.php" hash="cca613e91361f3411e4bcd56bc02b56f"/></dir><dir name="Pxpay"><file name="Form.php" hash="0513bd45150f03dab2c2b08dc0456de8"/><file name="Info.php" hash="68328c0824a4666c618cf3742dd4baff"/><file name="Redirect.php" hash="6b14c55b1f8aa8361891e7816bcb95b8"/></dir><dir name="Pxpost"><file name="Form.php" hash="48cda517e5c97bf8b031d195b79d76f9"/><file name="Info.php" hash="498c831213c26a78c12e28203273e937"/></dir></dir><dir name="controllers"><file name="PxpayController.php" hash="3cbf83bd7bc38dcea6667be113f814f7"/></dir><dir name="etc"><file name="config.xml" hash="b93eaa11723750631a534e466c603fa2"/><file name="system.xml" hash="87051f2d48e3720938b28142e7f37bb1"/></dir><dir name="Helper"><file name="Data.php" hash="0eea8b0b6d3c48e7e64666d4576d9a30"/></dir><dir name="Model"><dir name="Method"><file name="Common.php" hash="1261a0121dff3725f85d9a7c955ada7c"/><file name="Pxpay.php" hash="98fdb1b3b569d081588b25586690113a"/><file name="Pxpost.php" hash="37c817dce1dacc8caedd8cf07c9800fc"/></dir><dir name="Mysql4"><dir name="Debug"><file name="Collection.php" hash="6ef2919222f3dcb32599349245e76214"/></dir><file name="Debug.php" hash="56eb2bc341b9cb4ba8d9ae239169766e"/><file name="Setup.php" hash="8a395090a44fda7530548abd2d87835e"/></dir><dir name="System"><file name="Logos.php" hash="bfca463fa7d292fbd2b69a33d332d55a"/><file name="PaymentAction.php" hash="0be4f9a5c602b2d2723203ec56f51a8c"/><file name="PendingOrder.php" hash="31d7bd6f5fad8e1fa4315d32d123be0f"/></dir><file name="Debug.php" hash="dadf96f68c9cf4d09aad73ff0bacab0e"/></dir><dir name="sql"><dir name="magebasedps_setup"><file name="mysql4-install-0.5.0.php" hash="c512ded8c0dd63b1dcd8e8cbfb5893e8"/><file name="mysql4-upgrade-0.5.0-1.0.0.php" hash="6dbc67541449a0f2d43460acb9b6bbff"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
skin/frontend/{default → base}/default/images/magebase/dps/AmexLogo.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/images/magebase/dps/DinersLogo.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/images/magebase/dps/JCBLogo.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/images/magebase/dps/MCSecureCodeLogo.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/images/magebase/dps/MasterCardLogo.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/images/magebase/dps/VisaLogo.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/images/magebase/dps/VisaVerifiedLogo.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/images/magebase/dps/dpslogo.png
RENAMED
File without changes
|
skin/frontend/{default → base}/default/images/magebase/dps/dpspxlogo.png
RENAMED
File without changes
|