Version Notes
## [1.0.0] - 2016-03-27
### Initial Release
- Raven MarketDirect payments
- Merged Raven API payments
## [1.0.1] - 2016-05-16
### Minor updates
- Raven API admin payment block now shows same info as MarketDirect
- Updated Access Key Id/Secret terminology
Download this release
Release Info
Developer | Joerg Beekmann |
Extension | pacnet_raven |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/PacNet/Raven/Block/Api/Info.php +57 -0
- app/code/community/PacNet/Raven/Model/Api.php +2 -0
- app/code/community/PacNet/Raven/etc/config.xml +1 -1
- app/design/adminhtml/default/default/template/pacnet/raven/api/info.phtml +50 -0
- app/design/adminhtml/default/default/template/pacnet/raven/api/pdf/info.phtml +43 -0
- app/design/adminhtml/default/default/template/pacnet/raven/marketdirect/info.phtml +3 -3
- package.xml +10 -5
app/code/community/PacNet/Raven/Block/Api/Info.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* PacNet's Raven Payment Gateway
|
4 |
+
*
|
5 |
+
* MIT License
|
6 |
+
*
|
7 |
+
* Copyright (c) 2016, PacNet Services Ltd
|
8 |
+
*
|
9 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
10 |
+
* of this software and associated documentation files (the "Software"), to deal
|
11 |
+
* in the Software without restriction, including without limitation the rights
|
12 |
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13 |
+
* copies of the Software, and to permit persons to whom the Software is
|
14 |
+
* furnished to do so, subject to the following conditions:
|
15 |
+
*
|
16 |
+
* The above copyright notice and this permission notice shall be included in all
|
17 |
+
* copies or substantial portions of the Software.
|
18 |
+
*
|
19 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22 |
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24 |
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25 |
+
* SOFTWARE.
|
26 |
+
*
|
27 |
+
* @category PacNet
|
28 |
+
* @package PacNet_Raven
|
29 |
+
* @author Joerg Beekmann <joerg@deepcovelabs.com>
|
30 |
+
* @link https://pacnetservices.com/
|
31 |
+
* @copyright Copyright (c) 2016, PacNet Services Ltd
|
32 |
+
* @license https://opensource.org/licenses/MIT MIT License
|
33 |
+
*/
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Raven Api payment info block
|
37 |
+
*/
|
38 |
+
class PacNet_Raven_Block_Api_Info extends Mage_Payment_Block_Info {
|
39 |
+
|
40 |
+
protected function _construct()
|
41 |
+
{
|
42 |
+
parent::_construct();
|
43 |
+
$this->setTemplate('pacnet/raven/api/info.phtml');
|
44 |
+
}
|
45 |
+
|
46 |
+
public function getMethodCode()
|
47 |
+
{
|
48 |
+
return $this->getInfo()->getMethodInstance()->getCode();
|
49 |
+
}
|
50 |
+
|
51 |
+
public function toPdf()
|
52 |
+
{
|
53 |
+
$this->setTemplate('pacnet/raven/api/pdf/info.phtml');
|
54 |
+
return $this->toHtml();
|
55 |
+
}
|
56 |
+
|
57 |
+
}
|
app/code/community/PacNet/Raven/Model/Api.php
CHANGED
@@ -50,6 +50,8 @@ class PacNet_Raven_Model_Api extends Mage_Payment_Model_Method_Cc
|
|
50 |
protected $_canUseForMultishipping = true;
|
51 |
protected $_canSaveCc = false;
|
52 |
|
|
|
|
|
53 |
protected $_ravenConfig;
|
54 |
protected $_ravenService;
|
55 |
protected $_trackingNumber;
|
50 |
protected $_canUseForMultishipping = true;
|
51 |
protected $_canSaveCc = false;
|
52 |
|
53 |
+
protected $_infoBlockType = 'pacnet_raven/Api_Info';
|
54 |
+
|
55 |
protected $_ravenConfig;
|
56 |
protected $_ravenService;
|
57 |
protected $_trackingNumber;
|
app/code/community/PacNet/Raven/etc/config.xml
CHANGED
@@ -36,7 +36,7 @@
|
|
36 |
<config>
|
37 |
<modules>
|
38 |
<PacNet_Raven>
|
39 |
-
<version>1.0.
|
40 |
</PacNet_Raven>
|
41 |
</modules>
|
42 |
<global>
|
36 |
<config>
|
37 |
<modules>
|
38 |
<PacNet_Raven>
|
39 |
+
<version>1.0.1</version>
|
40 |
</PacNet_Raven>
|
41 |
</modules>
|
42 |
<global>
|
app/design/adminhtml/default/default/template/pacnet/raven/api/info.phtml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* PacNet's Raven Payment Gateway
|
4 |
+
*
|
5 |
+
* MIT License
|
6 |
+
*
|
7 |
+
* Copyright (c) 2016, PacNet Services Ltd
|
8 |
+
*
|
9 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
10 |
+
* of this software and associated documentation files (the "Software"), to deal
|
11 |
+
* in the Software without restriction, including without limitation the rights
|
12 |
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13 |
+
* copies of the Software, and to permit persons to whom the Software is
|
14 |
+
* furnished to do so, subject to the following conditions:
|
15 |
+
*
|
16 |
+
* The above copyright notice and this permission notice shall be included in all
|
17 |
+
* copies or substantial portions of the Software.
|
18 |
+
*
|
19 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22 |
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24 |
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25 |
+
* SOFTWARE.
|
26 |
+
*
|
27 |
+
* @category PacNet
|
28 |
+
* @package PacNet_Raven
|
29 |
+
* @author Joerg Beekmann <joerg@deepcovelabs.com>
|
30 |
+
* @link https://pacnetservices.com/
|
31 |
+
* @copyright Copyright (c) 2016, PacNet Services Ltd
|
32 |
+
* @license https://opensource.org/licenses/MIT MIT License
|
33 |
+
*/
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Template for displaying payment information in the admin order
|
37 |
+
*
|
38 |
+
* @see PacNet_Raven_Block_Api_Info
|
39 |
+
*/
|
40 |
+
?>
|
41 |
+
<?php
|
42 |
+
echo $this->getMethod()->getTitle() . '<br/>';
|
43 |
+
if ($this->getInfo()->getLastTransId() == '') {
|
44 |
+
echo Mage::helper('pacnet_raven')->__('Payment has not been processed yet.') . '<br/>';
|
45 |
+
} else {
|
46 |
+
$ccTypes = PacNet_Raven_Model_MarketDirect_Transaction::$ccTypes;
|
47 |
+
$ccType = array_key_exists($this->getInfo()->getCcType(), $ccTypes) ? $ccTypes[$this->getInfo()->getCcType()] : 'Unknown';
|
48 |
+
echo Mage::helper('pacnet_raven')->__('Credit Card Type: %s', $this->htmlEscape($ccType)) . '<br/>';
|
49 |
+
echo Mage::helper('pacnet_raven')->__('Raven Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) . '<br/>';
|
50 |
+
}
|
app/design/adminhtml/default/default/template/pacnet/raven/api/pdf/info.phtml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* PacNet's Raven Payment Gateway
|
4 |
+
*
|
5 |
+
* MIT License
|
6 |
+
*
|
7 |
+
* Copyright (c) 2016, PacNet Services Ltd
|
8 |
+
*
|
9 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
10 |
+
* of this software and associated documentation files (the "Software"), to deal
|
11 |
+
* in the Software without restriction, including without limitation the rights
|
12 |
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13 |
+
* copies of the Software, and to permit persons to whom the Software is
|
14 |
+
* furnished to do so, subject to the following conditions:
|
15 |
+
*
|
16 |
+
* The above copyright notice and this permission notice shall be included in all
|
17 |
+
* copies or substantial portions of the Software.
|
18 |
+
*
|
19 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22 |
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24 |
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25 |
+
* SOFTWARE.
|
26 |
+
*
|
27 |
+
* @category PacNet
|
28 |
+
* @package PacNet_Raven
|
29 |
+
* @author Joerg Beekmann <joerg@deepcovelabs.com>
|
30 |
+
* @link https://pacnetservices.com/
|
31 |
+
* @copyright Copyright (c) 2016, PacNet Services Ltd
|
32 |
+
* @license https://opensource.org/licenses/MIT MIT License
|
33 |
+
*/
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Template for displaying payment information on the invoice PDF
|
37 |
+
*
|
38 |
+
* @see PacNet_Raven_Block_Api_Info
|
39 |
+
*/
|
40 |
+
?>
|
41 |
+
|
42 |
+
<?php
|
43 |
+
echo $this->getMethod()->getTitle();
|
app/design/adminhtml/default/default/template/pacnet/raven/marketdirect/info.phtml
CHANGED
@@ -32,10 +32,10 @@
|
|
32 |
* @license https://opensource.org/licenses/MIT MIT License
|
33 |
*/
|
34 |
|
35 |
-
/**
|
36 |
* Template for displaying payment information in the admin order
|
37 |
*
|
38 |
-
* @see PacNet_Raven_Block_MarketDirect_Info
|
39 |
*/
|
40 |
?>
|
41 |
<?php
|
@@ -43,6 +43,6 @@ echo $this->getMethod()->getTitle() . '<br/>';
|
|
43 |
if ($this->getInfo()->getLastTransId() == '') {
|
44 |
echo Mage::helper('pacnet_raven')->__('Payment has not been processed yet.') . '<br/>';
|
45 |
} else {
|
46 |
-
|
47 |
echo Mage::helper('pacnet_raven')->__('Raven Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) . '<br/>';
|
48 |
}
|
32 |
* @license https://opensource.org/licenses/MIT MIT License
|
33 |
*/
|
34 |
|
35 |
+
/**
|
36 |
* Template for displaying payment information in the admin order
|
37 |
*
|
38 |
+
* @see PacNet_Raven_Block_MarketDirect_Info
|
39 |
*/
|
40 |
?>
|
41 |
<?php
|
43 |
if ($this->getInfo()->getLastTransId() == '') {
|
44 |
echo Mage::helper('pacnet_raven')->__('Payment has not been processed yet.') . '<br/>';
|
45 |
} else {
|
46 |
+
echo Mage::helper('pacnet_raven')->__('Credit Card Type: %s', $this->htmlEscape($this->getInfo()->getCcType())) . '<br/>';
|
47 |
echo Mage::helper('pacnet_raven')->__('Raven Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) . '<br/>';
|
48 |
}
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>pacnet_raven</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/MIT">MIT License (MIT)</license>
|
7 |
<channel>community</channel>
|
@@ -36,11 +36,16 @@ Raven Documentation: https://pacnetservices.com/documentation</description>
|
|
36 |
<notes>## [1.0.0] - 2016-03-27
|
37 |
### Initial Release
|
38 |
- Raven MarketDirect payments
|
39 |
-
- Merged Raven API payments
|
|
|
|
|
|
|
|
|
|
|
40 |
<authors><author><name>Joerg Beekmann</name><user>PacN3t</user><email>christinek@pacnetservices.com</email></author></authors>
|
41 |
-
<date>2016-
|
42 |
-
<time>
|
43 |
-
<contents><target name="magecommunity"><dir name="PacNet"><dir name="Raven"><dir name="Block"><dir name="MarketDirect"><file name="Form.php" hash="81c8fb9acda4e63bd5a2be1446f4faef"/><file name="Info.php" hash="85546f1f005e91bcd82312ee8e19fc1d"/></dir></dir><file name="Exception.php" hash="1f2b1c9a471ca584ef53616d7effa2fd"/><dir name="Helper"><file name="Data.php" hash="744aaafe84165b840e7672bccb2a5869"/></dir><dir name="Model"><dir name="Api"><dir name="Service"><dir name="Request"><file name="Abstract.php" hash="0fbd81ae4098922e2a322ea34e654be9"/><file name="Exception.php" hash="53888eafadceafe4fd78dc4d8feed5cf"/><file name="Hello.php" hash="8d3510efc32a10fabefae86c4688b62e"/><file name="Response.php" hash="e4c1c71c3cbcb399d5cb7f4866778e9d"/><file name="Submit.php" hash="d531f90a7b2d4d96968f8c2257d3713e"/></dir><dir name="Response"><dir name="Codes"><file name="CVV2.php" hash="fdd42b390e7f9be7bd00575f555b2eae"/><file name="Status.php" hash="a3dde758331bd59ab2c2bb3f7e55f5c6"/></dir><file name="Exception.php" hash="0dd0b17cf0f792a376eb67b219eba28d"/></dir><file name="Response.php" hash="0e81ca74231e438bc6eeb3f177a2a637"/></dir><file name="Service.php" hash="42865ecc90b97193238721537aa52f0c"/><dir name="Source"><file name="Paymentaction.php" hash="d287e9045482c542f36e19c1013eeb72"/></dir></dir><file name="Api.php" hash="
|
44 |
<compatible/>
|
45 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
46 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>pacnet_raven</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/MIT">MIT License (MIT)</license>
|
7 |
<channel>community</channel>
|
36 |
<notes>## [1.0.0] - 2016-03-27
|
37 |
### Initial Release
|
38 |
- Raven MarketDirect payments
|
39 |
+
- Merged Raven API payments
|
40 |
+

|
41 |
+
## [1.0.1] - 2016-05-16
|
42 |
+
### Minor updates
|
43 |
+
- Raven API admin payment block now shows same info as MarketDirect
|
44 |
+
- Updated Access Key Id/Secret terminology</notes>
|
45 |
<authors><author><name>Joerg Beekmann</name><user>PacN3t</user><email>christinek@pacnetservices.com</email></author></authors>
|
46 |
+
<date>2016-05-26</date>
|
47 |
+
<time>16:58:52</time>
|
48 |
+
<contents><target name="magecommunity"><dir name="PacNet"><dir name="Raven"><dir name="Block"><dir name="Api"><file name="Info.php" hash="fa2ce334c6fccaaa3e0bc414c70624fa"/></dir><dir name="MarketDirect"><file name="Form.php" hash="81c8fb9acda4e63bd5a2be1446f4faef"/><file name="Info.php" hash="85546f1f005e91bcd82312ee8e19fc1d"/></dir></dir><file name="Exception.php" hash="1f2b1c9a471ca584ef53616d7effa2fd"/><dir name="Helper"><file name="Data.php" hash="744aaafe84165b840e7672bccb2a5869"/></dir><dir name="Model"><dir name="Api"><dir name="Service"><dir name="Request"><file name="Abstract.php" hash="0fbd81ae4098922e2a322ea34e654be9"/><file name="Exception.php" hash="53888eafadceafe4fd78dc4d8feed5cf"/><file name="Hello.php" hash="8d3510efc32a10fabefae86c4688b62e"/><file name="Response.php" hash="e4c1c71c3cbcb399d5cb7f4866778e9d"/><file name="Submit.php" hash="d531f90a7b2d4d96968f8c2257d3713e"/></dir><dir name="Response"><dir name="Codes"><file name="CVV2.php" hash="fdd42b390e7f9be7bd00575f555b2eae"/><file name="Status.php" hash="a3dde758331bd59ab2c2bb3f7e55f5c6"/></dir><file name="Exception.php" hash="0dd0b17cf0f792a376eb67b219eba28d"/></dir><file name="Response.php" hash="0e81ca74231e438bc6eeb3f177a2a637"/></dir><file name="Service.php" hash="42865ecc90b97193238721537aa52f0c"/><dir name="Source"><file name="Paymentaction.php" hash="d287e9045482c542f36e19c1013eeb72"/></dir></dir><file name="Api.php" hash="9456a6c61be65d24610ae87c02092773"/><dir name="MarketDirect"><file name="Abstract.php" hash="ce4549825dcade10cc7a2589bb59f5c0"/><file name="Response.php" hash="f270410937acb6fd54ba17a4cec15ff4"/><dir name="Source"><file name="PaymentType.php" hash="0f945b717446c5d5b099a2dbc2df53be"/></dir><file name="Transaction.php" hash="07b78e678e753a3a0fbf4ebda05adf9c"/></dir><file name="MarketDirect.php" hash="470da58172d76c550c973cca7727178f"/></dir><dir name="controllers"><file name="MarketdirectController.php" hash="ddf05372520d4a8c349d4d7ddf08cf63"/></dir><dir name="etc"><file name="config.xml" hash="2222ebed90f81319bc86ceb60f901101"/><file name="system.xml" hash="97b94c67e58d6ddfc1111393ec597d72"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pacnet"><dir name="raven"><dir name="api"><file name="info.phtml" hash="8ee6752beed47a1dea852fd2ac9a7526"/><dir name="pdf"><file name="info.phtml" hash="7a5df22ba098134f474643d2a7497ed1"/></dir></dir><dir name="marketdirect"><file name="info.phtml" hash="e7ba52c242f912a7d0295cf90231eb98"/><dir name="pdf"><file name="info.phtml" hash="27d2865889a3be0074d80d310e29799a"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="pacnet"><dir name="raven"><file name="marketdirect.xml" hash="527057af370e49fa25a7c1cde04be74e"/></dir></dir></dir><dir name="template"><dir name="pacnet"><dir name="raven"><dir name="marketdirect"><file name="form.phtml" hash="27a19d4b2b3bf12e560750768d1895fd"/><file name="redirect.phtml" hash="21da7f23c7b6e7e63f102335db2c2e10"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PacNet_Raven.xml" hash="e3909b1c66130c3db85996d17744b5da"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="pacnet"><dir name="images"><file name="ajax-loader.gif" hash="f48ee069890b16455c3ddcacee9b5f75"/></dir></dir></dir></dir></dir></target></contents>
|
49 |
<compatible/>
|
50 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
51 |
</package>
|