Version Notes
Stable Release Date : 27th Nov 2012
Download this release
Release Info
Developer | Etamar Sean Oren |
Extension | Pelepay_Payment_Gateway |
Version | 0.1.2 |
Comparing to | |
See all releases |
Version 0.1.2
- app/code/community/Eoi/Pelepay/Block/Cancel.php +32 -0
- app/code/community/Eoi/Pelepay/Block/Failure.php +33 -0
- app/code/community/Eoi/Pelepay/Block/Form.php +36 -0
- app/code/community/Eoi/Pelepay/Block/Info.php +36 -0
- app/code/community/Eoi/Pelepay/Block/Redirect.php +64 -0
- app/code/community/Eoi/Pelepay/Block/Success.php +33 -0
- app/code/community/Eoi/Pelepay/Helper/Data.php +26 -0
- app/code/community/Eoi/Pelepay/Model/Config.php +33 -0
- app/code/community/Eoi/Pelepay/Model/Paymentmethod.php +295 -0
- app/code/community/Eoi/Pelepay/Model/Source/RequestType.php +27 -0
- app/code/community/Eoi/Pelepay/Model/Source/SignatureType.php +26 -0
- app/code/community/Eoi/Pelepay/Model/Source/TransactionMode.php +32 -0
- app/code/community/Eoi/Pelepay/controllers/ProcessingController.php +319 -0
- app/code/community/Eoi/Pelepay/etc/config.xml +141 -0
- app/code/community/Eoi/Pelepay/etc/system.xml +153 -0
- app/design/adminhtml/default/default/template/pelepay/info.phtml +28 -0
- app/design/adminhtml/default/default/template/pelepay/pdf/info.phtml +17 -0
- app/design/frontend/base/default/layout/pelepay.xml +39 -0
- app/design/frontend/base/default/template/pelepay/blank.phtml +25 -0
- app/design/frontend/base/default/template/pelepay/cancel.phtml +25 -0
- app/design/frontend/base/default/template/pelepay/failure.phtml +31 -0
- app/design/frontend/base/default/template/pelepay/form.phtml +25 -0
- app/design/frontend/base/default/template/pelepay/info.phtml +26 -0
- app/design/frontend/base/default/template/pelepay/mark.phtml +27 -0
- app/design/frontend/base/default/template/pelepay/redirect.phtml +32 -0
- app/etc/modules/Eoi_Pelepay.xml +25 -0
- package.xml +20 -0
app/code/community/Eoi/Pelepay/Block/Cancel.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
class Eoi_Pelepay_Block_Cancel extends Mage_Core_Block_Template
|
18 |
+
{
|
19 |
+
protected function _construct()
|
20 |
+
{
|
21 |
+
parent::_construct();
|
22 |
+
$this->setTemplate('pelepay/cancel.phtml');
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Get continue shopping url
|
27 |
+
*/
|
28 |
+
public function getContinueShoppingUrl()
|
29 |
+
{
|
30 |
+
return Mage::getUrl('checkout/cart', array('_nosid' => true));
|
31 |
+
}
|
32 |
+
}
|
app/code/community/Eoi/Pelepay/Block/Failure.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
|
18 |
+
class Eoi_Pelepay_Block_Failure extends Mage_Core_Block_Template
|
19 |
+
{
|
20 |
+
protected function _construct()
|
21 |
+
{
|
22 |
+
parent::_construct();
|
23 |
+
$this->setTemplate('pelepay/failure.phtml');
|
24 |
+
}
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Get continue shopping url
|
28 |
+
*/
|
29 |
+
public function getContinueShoppingUrl()
|
30 |
+
{
|
31 |
+
return Mage::getUrl('checkout/cart', array('_nosid' => true));
|
32 |
+
}
|
33 |
+
}
|
app/code/community/Eoi/Pelepay/Block/Form.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
|
18 |
+
class Eoi_Pelepay_Block_Form extends Mage_Payment_Block_Form
|
19 |
+
{
|
20 |
+
protected function _construct()
|
21 |
+
{
|
22 |
+
//parent::_construct();
|
23 |
+
$mark = Mage::getConfig()->getBlockClassName('core/template');
|
24 |
+
$mark = new $mark;
|
25 |
+
$mark->setTemplate('pelepay/mark.phtml');
|
26 |
+
$this->setTemplate('pelepay/form.phtml')
|
27 |
+
->setMethodTitle('') // Output PelePay mark, omit title
|
28 |
+
->setMethodLabelAfterHtml($mark->toHtml());
|
29 |
+
return parent::_construct();
|
30 |
+
}
|
31 |
+
|
32 |
+
protected function _getConfig()
|
33 |
+
{
|
34 |
+
return Mage::getSingleton('pelepay/config');
|
35 |
+
}
|
36 |
+
}
|
app/code/community/Eoi/Pelepay/Block/Info.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
|
18 |
+
class Eoi_Pelepay_Block_Info extends Mage_Payment_Block_Info
|
19 |
+
{
|
20 |
+
protected function _construct()
|
21 |
+
{
|
22 |
+
parent::_construct();
|
23 |
+
$this->setTemplate('pelepay/info.phtml');
|
24 |
+
}
|
25 |
+
|
26 |
+
public function getMethodCode()
|
27 |
+
{
|
28 |
+
return $this->getInfo()->getMethodInstance()->getCode();
|
29 |
+
}
|
30 |
+
|
31 |
+
public function toPdf()
|
32 |
+
{
|
33 |
+
$this->setTemplate('pelepay/pdf/info.phtml');
|
34 |
+
return $this->toHtml();
|
35 |
+
}
|
36 |
+
}
|
app/code/community/Eoi/Pelepay/Block/Redirect.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
class Eoi_Pelepay_Block_Redirect extends Mage_Core_Block_Template
|
18 |
+
{
|
19 |
+
/**
|
20 |
+
* Return checkout session instance
|
21 |
+
*
|
22 |
+
* @return Mage_Checkout_Model_Session
|
23 |
+
*/
|
24 |
+
protected function _getCheckout()
|
25 |
+
{
|
26 |
+
return Mage::getSingleton('checkout/session');
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Return order instance
|
31 |
+
*
|
32 |
+
* @return Mage_Sales_Model_Order|null
|
33 |
+
*/
|
34 |
+
protected function _getOrder()
|
35 |
+
{
|
36 |
+
if ($this->getOrder()) {
|
37 |
+
return $this->getOrder();
|
38 |
+
} elseif ($orderIncrementId = $this->_getCheckout()->getLastRealOrderId()) {
|
39 |
+
return Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
|
40 |
+
} else {
|
41 |
+
return null;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Get form data
|
47 |
+
*
|
48 |
+
* @return array
|
49 |
+
*/
|
50 |
+
public function getFormData()
|
51 |
+
{
|
52 |
+
return $this->_getOrder()->getPayment()->getMethodInstance()->getFormFields();
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Getting gateway url
|
57 |
+
*
|
58 |
+
* @return string
|
59 |
+
*/
|
60 |
+
public function getFormAction()
|
61 |
+
{
|
62 |
+
return $this->_getOrder()->getPayment()->getMethodInstance()->getUrl();
|
63 |
+
}
|
64 |
+
}
|
app/code/community/Eoi/Pelepay/Block/Success.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
|
18 |
+
class Eoi_Pelepay_Block_Success extends Mage_Core_Block_Abstract
|
19 |
+
{
|
20 |
+
protected function _toHtml()
|
21 |
+
{
|
22 |
+
$successUrl = Mage::getUrl('*/*/success', array('_nosid' => true));
|
23 |
+
|
24 |
+
$html = '<html>'
|
25 |
+
. '<meta http-equiv="refresh" content="0; URL='.$successUrl.'">'
|
26 |
+
. '<body>'
|
27 |
+
. '<p>' . $this->__('Your payment has been successfully processed by our shop system.') . '</p>'
|
28 |
+
. '<p>' . $this->__('Please click <a href="%s">here</a> if you are not redirected automatically.', $successUrl) . '</p>'
|
29 |
+
. '</body></html>';
|
30 |
+
|
31 |
+
return $html;
|
32 |
+
}
|
33 |
+
}
|
app/code/community/Eoi/Pelepay/Helper/Data.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
class Eoi_Pelepay_Helper_Data extends Mage_Payment_Helper_Data
|
18 |
+
{
|
19 |
+
public function getPendingPaymentStatus()
|
20 |
+
{
|
21 |
+
if (version_compare(Mage::getVersion(), '1.4.0', '<')) {
|
22 |
+
return Mage_Sales_Model_Order::STATE_HOLDED;
|
23 |
+
}
|
24 |
+
return Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;
|
25 |
+
}
|
26 |
+
}
|
app/code/community/Eoi/Pelepay/Model/Config.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
class Eoi_Pelepay_Model_Config extends Mage_Payment_Model_Config
|
18 |
+
{
|
19 |
+
/**
|
20 |
+
* Retrieve array of credit card types
|
21 |
+
*
|
22 |
+
* @return array
|
23 |
+
*/
|
24 |
+
public function getTransactionModes()
|
25 |
+
{
|
26 |
+
$modes = array();
|
27 |
+
foreach (Mage::getConfig()->getNode('global/payment/transaction/modes')->asArray() as $data) {
|
28 |
+
$modes[$data['code']] = $data['name'];
|
29 |
+
}
|
30 |
+
return $modes;
|
31 |
+
}
|
32 |
+
|
33 |
+
}
|
app/code/community/Eoi/Pelepay/Model/Paymentmethod.php
ADDED
@@ -0,0 +1,295 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
|
18 |
+
class Eoi_Pelepay_Model_Paymentmethod extends Mage_Payment_Model_Method_Abstract
|
19 |
+
{
|
20 |
+
const SIGNATURE_TYPE_STATIC = 1;
|
21 |
+
const SIGNATURE_TYPE_DYNAMIC = 2;
|
22 |
+
|
23 |
+
/**
|
24 |
+
* unique internal payment method identifier
|
25 |
+
*
|
26 |
+
* @var string [a-z0-9_]
|
27 |
+
**/
|
28 |
+
protected $_code = 'pelepay_paymentmethod';
|
29 |
+
|
30 |
+
protected $_isGateway = false;
|
31 |
+
protected $_canAuthorize = true;
|
32 |
+
protected $_canCapture = true;
|
33 |
+
protected $_canVoid = false;
|
34 |
+
protected $_canUseInternal = false;
|
35 |
+
protected $_canUseCheckout = true;
|
36 |
+
protected $_canUseForMultishipping = false;
|
37 |
+
|
38 |
+
protected $_paymentMethod = 'paymentmethod';
|
39 |
+
protected $_defaultLocale = 'en';
|
40 |
+
|
41 |
+
protected $_testUrl = '';//'https://www.pelepay.co.il/pay/custompaypage.aspx';
|
42 |
+
protected $_liveUrl = '';//'https://www.pelepay.co.il/pay/custompaypage.aspx';
|
43 |
+
|
44 |
+
protected $_testAdminUrl = '';
|
45 |
+
protected $_liveAdminUrl = '';
|
46 |
+
|
47 |
+
protected $_formBlockType = 'pelepay/form';
|
48 |
+
protected $_infoBlockType = 'pelepay/info';
|
49 |
+
|
50 |
+
protected $_order;
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Set Gateway Url
|
54 |
+
*
|
55 |
+
* @return Gateway Url
|
56 |
+
*/
|
57 |
+
|
58 |
+
function __construct()
|
59 |
+
{
|
60 |
+
$this->_testUrl = $this->getConfigData('submit_url');
|
61 |
+
$this->_liveUrl = $this->getConfigData('submit_url');
|
62 |
+
$pelepay_button_url = $this->getConfigData('pelepay_button_url');
|
63 |
+
Mage::getSingleton('core/session')->setPelepayBtnUrl($pelepay_button_url);
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Get order model
|
68 |
+
*
|
69 |
+
* @return Mage_Sales_Model_Order
|
70 |
+
*/
|
71 |
+
public function getOrder()
|
72 |
+
{
|
73 |
+
if (!$this->_order) {
|
74 |
+
$this->_order = $this->getInfoInstance()->getOrder();
|
75 |
+
}
|
76 |
+
return $this->_order;
|
77 |
+
}
|
78 |
+
|
79 |
+
public function getOrderPlaceRedirectUrl()
|
80 |
+
{
|
81 |
+
return Mage::getUrl('pelepay/processing/redirect');
|
82 |
+
}
|
83 |
+
|
84 |
+
/**
|
85 |
+
* Return payment method type string
|
86 |
+
*
|
87 |
+
* @return string
|
88 |
+
*/
|
89 |
+
public function getPaymentMethodType()
|
90 |
+
{
|
91 |
+
return $this->_paymentMethod;
|
92 |
+
}
|
93 |
+
|
94 |
+
public function getUrl()
|
95 |
+
{
|
96 |
+
if ($this->getConfigData('transaction_mode') == 'live')
|
97 |
+
return $this->_liveUrl;
|
98 |
+
return $this->_testUrl;
|
99 |
+
}
|
100 |
+
|
101 |
+
public function getAdminUrl()
|
102 |
+
{
|
103 |
+
if ($this->getConfigData('transaction_mode') == 'live')
|
104 |
+
return $this->_liveAdminUrl;
|
105 |
+
return $this->_testAdminUrl;
|
106 |
+
}
|
107 |
+
|
108 |
+
|
109 |
+
/**
|
110 |
+
* prepare params array to send it to gateway page via POST
|
111 |
+
*
|
112 |
+
* @return array
|
113 |
+
*/
|
114 |
+
public function getFormFields()
|
115 |
+
{
|
116 |
+
// get transaction amount and currency
|
117 |
+
if ($this->getConfigData('use_store_currency')) {
|
118 |
+
$price = number_format($this->getOrder()->getGrandTotal(),2,'.','');
|
119 |
+
$currency = $this->getOrder()->getOrderCurrencyCode();
|
120 |
+
} else {
|
121 |
+
$price = number_format($this->getOrder()->getBaseGrandTotal(),2,'.','');
|
122 |
+
$currency = $this->getOrder()->getBaseCurrencyCode();
|
123 |
+
}
|
124 |
+
|
125 |
+
$billing = $this->getOrder()->getBillingAddress();
|
126 |
+
|
127 |
+
$locale = explode('_', Mage::app()->getLocale()->getLocaleCode());
|
128 |
+
if (is_array($locale) && !empty($locale))
|
129 |
+
$locale = $locale[0];
|
130 |
+
else
|
131 |
+
$locale = $this->getDefaultLocale();
|
132 |
+
|
133 |
+
$params = array(
|
134 |
+
'business' => $this->getConfigData('business_name'),
|
135 |
+
'orderid' => $this->getOrder()->getRealOrderId(),
|
136 |
+
'testMode' => ($this->getConfigData('transaction_mode') == 'test') ? '100' : '0',
|
137 |
+
'amount' => $price,
|
138 |
+
'description' => Mage::helper('pelepay')->__('Your purchase at') . ' ' . Mage::app()->getStore()->getName(),
|
139 |
+
'Max_payments' => $this->getConfigData('max_payments'),
|
140 |
+
'address' => Mage::helper('core')->removeAccents($billing->getStreet(-1)).' '.Mage::helper('core')->removeAccents($billing->getCity()),
|
141 |
+
'postcode' => $billing->getPostcode() ,
|
142 |
+
'country' => $billing->getCountry(),
|
143 |
+
'phone' => $billing->getTelephone(),
|
144 |
+
'email' => $this->getOrder()->getCustomerEmail(),
|
145 |
+
'firstname' => Mage::helper('core')->removeAccents($billing->getFirstname()),
|
146 |
+
'lastname' => Mage::helper('core')->removeAccents($billing->getLastname()),
|
147 |
+
'cancel_return' => Mage::getUrl($this->getConfigData('cancel_return_url')),
|
148 |
+
'fail_return' => Mage::getUrl($this->getConfigData('fail_return_url')),
|
149 |
+
'success_return' => Mage::getUrl($this->getConfigData('success_return_url')) //success_return_url
|
150 |
+
);
|
151 |
+
|
152 |
+
return $params;
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Refund money
|
157 |
+
*
|
158 |
+
* @param Varien_Object $invoicePayment
|
159 |
+
* @return Mage_GoogleCheckout_Model_Payment
|
160 |
+
*/
|
161 |
+
public function refund(Varien_Object $payment, $amount)
|
162 |
+
{
|
163 |
+
$transactionId = $payment->getLastTransId();
|
164 |
+
$params = $this->_prepareAdminRequestParams();
|
165 |
+
|
166 |
+
$params['cartId'] = 'Refund';
|
167 |
+
$params['op'] = 'refund-partial';
|
168 |
+
$params['index'] = $transactionId;
|
169 |
+
$params['amount'] = $amount;
|
170 |
+
$params['currency'] = $payment->getOrder()->getBaseCurrencyCode();
|
171 |
+
|
172 |
+
/*$responseBody = $this->processAdminRequest($params);
|
173 |
+
$response = explode(',', $responseBody);
|
174 |
+
if (count($response) <= 0 || $response[0] != 'A' || $response[1] != $transactionId) {
|
175 |
+
$message = $this->_getHelper()->__('Error during refunding online. Server response: %s', $responseBody);
|
176 |
+
$this->_debug($message);
|
177 |
+
Mage::throwException($message);
|
178 |
+
}*/
|
179 |
+
return $this;
|
180 |
+
}
|
181 |
+
|
182 |
+
/**
|
183 |
+
* Capture preatutharized amount
|
184 |
+
* @param Varien_Object $payment
|
185 |
+
* @param <type> $amount
|
186 |
+
*/
|
187 |
+
public function capture(Varien_Object $payment, $amount)
|
188 |
+
{
|
189 |
+
if (!$this->canCapture()) {
|
190 |
+
return $this;
|
191 |
+
}
|
192 |
+
|
193 |
+
if (Mage::app()->getRequest()->getParam('transId')) {
|
194 |
+
// Capture is called from response action
|
195 |
+
$payment->setStatus(self::STATUS_APPROVED);
|
196 |
+
return $this;
|
197 |
+
}
|
198 |
+
$transactionId = $payment->getLastTransId();
|
199 |
+
$params = $this->_prepareAdminRequestParams();
|
200 |
+
$params['index'] = $transactionId;
|
201 |
+
/*$responseBody = $this->processAdminRequest($params);
|
202 |
+
$response = explode(',', $responseBody);
|
203 |
+
|
204 |
+
if (count($response) <= 0 || $response[0] != 'A' || $response[1] != $transactionId) {
|
205 |
+
$message = $this->_getHelper()->__('Error during capture online. Server response: %s', $responseBody);
|
206 |
+
$this->_debug($message);
|
207 |
+
Mage::throwException($message);
|
208 |
+
} else {
|
209 |
+
$payment->getOrder()->addStatusToHistory($payment->getOrder()->getStatus(), $this->_getHelper()->__('WonderFaye transaction has been captured.'));
|
210 |
+
}*/
|
211 |
+
}
|
212 |
+
|
213 |
+
|
214 |
+
/**
|
215 |
+
* Check refund availability
|
216 |
+
*
|
217 |
+
* @return bool
|
218 |
+
*/
|
219 |
+
public function canRefund ()
|
220 |
+
{
|
221 |
+
return $this->getConfigData('enable_online_operations');
|
222 |
+
}
|
223 |
+
|
224 |
+
public function canRefundInvoicePartial()
|
225 |
+
{
|
226 |
+
return $this->getConfigData('enable_online_operations');
|
227 |
+
}
|
228 |
+
|
229 |
+
public function canRefundPartialPerInvoice()
|
230 |
+
{
|
231 |
+
return $this->canRefundInvoicePartial();
|
232 |
+
}
|
233 |
+
|
234 |
+
public function canCapturePartial()
|
235 |
+
{
|
236 |
+
if (Mage::app()->getFrontController()->getAction()->getFullActionName() != 'adminhtml_sales_order_creditmemo_new'){
|
237 |
+
return false;
|
238 |
+
}
|
239 |
+
return $this->getConfigData('enable_online_operations');
|
240 |
+
}
|
241 |
+
|
242 |
+
protected function processAdminRequest($params, $requestTimeout = 60)
|
243 |
+
{
|
244 |
+
try {
|
245 |
+
$client = new Varien_Http_Client();
|
246 |
+
$client->setUri($this->getAdminUrl())
|
247 |
+
->setConfig(array('timeout'=>$requestTimeout,))
|
248 |
+
->setParameterPost($params)
|
249 |
+
->setMethod(Zend_Http_Client::POST);
|
250 |
+
|
251 |
+
$response = $client->request();
|
252 |
+
$responseBody = $response->getBody();
|
253 |
+
|
254 |
+
if (empty($responseBody))
|
255 |
+
Mage::throwException($this->_getHelper()->__('Pele-Pay API failure. The request has not been processed.'));
|
256 |
+
// create array out of response
|
257 |
+
|
258 |
+
} catch (Exception $e) {
|
259 |
+
$this->_debug('Pele-Pay API connection error: '.$e->getMessage());
|
260 |
+
Mage::throwException($this->_getHelper()->__('Pele-Pay API connection error. The request has not been processed.'));
|
261 |
+
}
|
262 |
+
|
263 |
+
return $responseBody;
|
264 |
+
}
|
265 |
+
|
266 |
+
protected function _prepareAdminRequestParams()
|
267 |
+
{
|
268 |
+
$params = array (
|
269 |
+
'index' => @$this->getConfigData('admin_index_id'),
|
270 |
+
);
|
271 |
+
if ($this->getConfigData('transaction_mode') == 'test') {
|
272 |
+
$params['testMode'] = 100;
|
273 |
+
}
|
274 |
+
return $params;
|
275 |
+
}
|
276 |
+
|
277 |
+
/**
|
278 |
+
* Log debug data to file
|
279 |
+
*
|
280 |
+
* Prior Magento 1.4.1 this method doesn't exists. So it is mainly to provide
|
281 |
+
* BC.
|
282 |
+
*
|
283 |
+
* @param mixed $debugData
|
284 |
+
*/
|
285 |
+
protected function _debug($debugData)
|
286 |
+
{
|
287 |
+
if (method_exists($this, 'getDebugFlag')) {
|
288 |
+
return parent::_debug($debugData);
|
289 |
+
}
|
290 |
+
|
291 |
+
if ($this->getConfigData('debug')) {
|
292 |
+
Mage::log($debugData, null, 'payment_' . $this->getCode() . '.log', true);
|
293 |
+
}
|
294 |
+
}
|
295 |
+
}
|
app/code/community/Eoi/Pelepay/Model/Source/RequestType.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
|
18 |
+
class Eoi_Pelepay_Model_Source_RequestType
|
19 |
+
{
|
20 |
+
public function toOptionArray()
|
21 |
+
{
|
22 |
+
return array(
|
23 |
+
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE, 'label' => Mage::helper('pelepay')->__('Preauthorization')),
|
24 |
+
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE, 'label' => Mage::helper('pelepay')->__('Authorization')),
|
25 |
+
);
|
26 |
+
}
|
27 |
+
}
|
app/code/community/Eoi/Pelepay/Model/Source/SignatureType.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
class Eoi_Pelepay_Model_Source_SignatureType
|
18 |
+
{
|
19 |
+
public function toOptionArray()
|
20 |
+
{
|
21 |
+
return array(
|
22 |
+
array('value' => Eoi_Pelepay_Model_PaymentMethod::SIGNATURE_TYPE_STATIC, 'label' => Mage::helper('pelepay')->__('Static')),
|
23 |
+
array('value' => Eoi_Pelepay_Model_PaymentMethod::SIGNATURE_TYPE_DYNAMIC, 'label' => Mage::helper('pelepay')->__('Dynamic')),
|
24 |
+
);
|
25 |
+
}
|
26 |
+
}
|
app/code/community/Eoi/Pelepay/Model/Source/TransactionMode.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
|
18 |
+
class Eoi_Pelepay_Model_Source_TransactionMode
|
19 |
+
{
|
20 |
+
public function toOptionArray()
|
21 |
+
{
|
22 |
+
$options = array(); ;
|
23 |
+
foreach (Mage::getSingleton('pelepay/config')->getTransactionModes() as $code => $name) {
|
24 |
+
$options[] = array(
|
25 |
+
'value' => $code,
|
26 |
+
'label' => $name
|
27 |
+
);
|
28 |
+
}
|
29 |
+
|
30 |
+
return $options;
|
31 |
+
}
|
32 |
+
}
|
app/code/community/Eoi/Pelepay/controllers/ProcessingController.php
ADDED
@@ -0,0 +1,319 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
class Eoi_Pelepay_ProcessingController extends Mage_Core_Controller_Front_Action
|
18 |
+
{
|
19 |
+
protected $_successBlockType = 'pelepay/success';
|
20 |
+
protected $_failureBlockType = 'pelepay/failure';
|
21 |
+
protected $_cancelBlockType = 'pelepay/cancel';
|
22 |
+
|
23 |
+
protected $_order = NULL;
|
24 |
+
protected $_paymentInst = NULL;
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Get singleton of Checkout Session Model
|
30 |
+
*
|
31 |
+
* @return Mage_Checkout_Model_Session
|
32 |
+
*/
|
33 |
+
protected function _getCheckout()
|
34 |
+
{
|
35 |
+
return Mage::getSingleton('checkout/session');
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* when customer selects Pele-Pay payment method
|
40 |
+
*/
|
41 |
+
public function redirectAction()
|
42 |
+
{
|
43 |
+
try {
|
44 |
+
$session = $this->_getCheckout();
|
45 |
+
|
46 |
+
$order = Mage::getModel('sales/order');
|
47 |
+
$order->loadByIncrementId($session->getLastRealOrderId());
|
48 |
+
if (!$order->getId()) {
|
49 |
+
Mage::throwException('No order for processing found');
|
50 |
+
}
|
51 |
+
if ($order->getState() != Mage_Sales_Model_Order::STATE_PENDING_PAYMENT) {
|
52 |
+
$order->setState(
|
53 |
+
Mage_Sales_Model_Order::STATE_PENDING_PAYMENT,
|
54 |
+
$this->_getPendingPaymentStatus(),
|
55 |
+
Mage::helper('pelepay')->__('Customer was redirected to Pele-Pay.')
|
56 |
+
)->save();
|
57 |
+
}
|
58 |
+
|
59 |
+
if ($session->getQuoteId() && $session->getLastSuccessQuoteId()) {
|
60 |
+
$session->setPelepayQuoteId($session->getQuoteId());
|
61 |
+
$session->setPelepaySuccessQuoteId($session->getLastSuccessQuoteId());
|
62 |
+
$session->setPelepayRealOrderId($session->getLastRealOrderId());
|
63 |
+
$session->getQuote()->setIsActive(false)->save();
|
64 |
+
$session->clear();
|
65 |
+
}
|
66 |
+
|
67 |
+
$this->loadLayout();
|
68 |
+
$this->renderLayout();
|
69 |
+
return;
|
70 |
+
} catch (Mage_Core_Exception $e) {
|
71 |
+
$this->_getCheckout()->addError($e->getMessage());
|
72 |
+
} catch(Exception $e) {
|
73 |
+
$this->_debug('Pelepay error: ' . $e->getMessage());
|
74 |
+
Mage::logException($e);
|
75 |
+
}
|
76 |
+
$this->_redirect('checkout/cart');
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Pelepay returns POST variables to this action
|
81 |
+
*/
|
82 |
+
public function responseAction()
|
83 |
+
{
|
84 |
+
//print_r($_REQUEST);
|
85 |
+
try {
|
86 |
+
$request = $this->_checkReturnedPost();
|
87 |
+
if ($request['Response'] == '000') { // successfull
|
88 |
+
$this->_processSale($request);
|
89 |
+
}elseif ($request['Response'] != '000') { // Failure;
|
90 |
+
$msg = '';
|
91 |
+
/*START - THE ERROR CODES TO BE DISPLAYED*/
|
92 |
+
switch(trim($request['Response'])) {
|
93 |
+
case '003':
|
94 |
+
$msg = Mage::helper('pelepay')->__('התקשר לחברת האשראי.');
|
95 |
+
break;
|
96 |
+
case '004':
|
97 |
+
$msg = Mage::helper('pelepay')->__('סירוב של חברת האשראי.');
|
98 |
+
break;
|
99 |
+
case '033':
|
100 |
+
$msg = Mage::helper('pelepay')->__('הכרטיס אינו תקין.');
|
101 |
+
break;
|
102 |
+
case '001':
|
103 |
+
$msg = Mage::helper('pelepay')->__('כרטיס אשראי חסום.');
|
104 |
+
break;
|
105 |
+
case '002':
|
106 |
+
$msg = Mage::helper('pelepay')->__('כרטיס אשראי גנוב.');
|
107 |
+
break;
|
108 |
+
case '039':
|
109 |
+
$msg = Mage::helper('pelepay')->__('ספרת הביקורת של הכרטיס אינה תקינה.');
|
110 |
+
break;
|
111 |
+
case '101':
|
112 |
+
$msg = Mage::helper('pelepay')->__('לא מכבדים דיינרס.');
|
113 |
+
break;
|
114 |
+
case '061':
|
115 |
+
$msg = Mage::helper('pelepay')->__('לא הוזן מספר כרטיס אשראי.');
|
116 |
+
break;
|
117 |
+
case '157':
|
118 |
+
$msg = Mage::helper('pelepay')->__('כרטיס אשראי תייר.');
|
119 |
+
break;
|
120 |
+
case '133':
|
121 |
+
$msg = Mage::helper('pelepay')->__('כרטיס אשראי תייר.');
|
122 |
+
break;
|
123 |
+
case '036':
|
124 |
+
$msg = Mage::helper('pelepay')->__('פג תוקף הכרטיס.');
|
125 |
+
break;
|
126 |
+
}
|
127 |
+
/*END - THE ERROR CODES TO BE DISPLAYED */
|
128 |
+
$session = $this->_getCheckout();
|
129 |
+
$pelepay_response_msg = $msg;
|
130 |
+
$pelepay_response_msgcode = $request['Response'];
|
131 |
+
$session->addError(Mage::helper('pelepay')->__("The Error Response From PelePay is : ".$pelepay_response_msgcode." - ".$msg));
|
132 |
+
Mage::getSingleton('core/session')->setPelepayResMsgCode($pelepay_response_msgcode);
|
133 |
+
Mage::getSingleton('core/session')->setPelepayResMsg($pelepay_response_msg);
|
134 |
+
$this->getResponse()->setBody(
|
135 |
+
$this->getLayout()
|
136 |
+
->createBlock($this->_failureBlockType)
|
137 |
+
->setOrder($this->_order)
|
138 |
+
->toHtml()
|
139 |
+
);
|
140 |
+
}
|
141 |
+
else {
|
142 |
+
Mage::throwException('Transaction was not successfull.');
|
143 |
+
}
|
144 |
+
} catch (Mage_Core_Exception $e) {
|
145 |
+
$this->_debug('Pelepay response error: ' . $e->getMessage());
|
146 |
+
$this->getResponse()->setBody(
|
147 |
+
$this->getLayout()
|
148 |
+
->createBlock($this->_failureBlockType)
|
149 |
+
->setOrder($this->_order)
|
150 |
+
->toHtml()
|
151 |
+
);
|
152 |
+
}
|
153 |
+
}
|
154 |
+
|
155 |
+
/**
|
156 |
+
* Pelepay return action
|
157 |
+
*/
|
158 |
+
public function successAction()
|
159 |
+
{
|
160 |
+
try {
|
161 |
+
$session = $this->_getCheckout();
|
162 |
+
$session->unsPelepayRealOrderId();
|
163 |
+
$session->setQuoteId($session->getPelepayQuoteId(true));
|
164 |
+
$session->setLastSuccessQuoteId($session->getPelepaySuccessQuoteId(true));
|
165 |
+
$request = $this->_checkReturnedPost();
|
166 |
+
if ($request['Response'] == '000') { // successfull
|
167 |
+
$this->_processSale($request);
|
168 |
+
}
|
169 |
+
$this->_redirect('checkout/onepage/success');
|
170 |
+
return;
|
171 |
+
} catch (Mage_Core_Exception $e) {
|
172 |
+
$this->_getCheckout()->addError($e->getMessage());
|
173 |
+
} catch(Exception $e) {
|
174 |
+
$this->_debug('Pelepay error: ' . $e->getMessage());
|
175 |
+
Mage::logException($e);
|
176 |
+
}
|
177 |
+
$this->_redirect('checkout/cart');
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Pelepay return action
|
182 |
+
*/
|
183 |
+
public function cancelAction()
|
184 |
+
{
|
185 |
+
// set quote to active
|
186 |
+
$session = $this->_getCheckout();
|
187 |
+
$this->_order = Mage::getModel('sales/order')->loadByIncrementId($session->getLastRealOrderId());
|
188 |
+
if ($quoteId = $session->getPelepayQuoteId()) {
|
189 |
+
$quote = Mage::getModel('sales/quote')->load($quoteId);
|
190 |
+
if ($quote->getId()) {
|
191 |
+
$quote->setIsActive(true)->save();
|
192 |
+
$session->setQuoteId($quoteId);
|
193 |
+
}
|
194 |
+
}
|
195 |
+
$request = '';
|
196 |
+
$session->addError(Mage::helper('pelepay')->__('The order has been canceled.'));
|
197 |
+
$this->_processCancel($request);
|
198 |
+
}
|
199 |
+
|
200 |
+
|
201 |
+
/**
|
202 |
+
* Checking POST variables.
|
203 |
+
* Creating invoice if payment was successfull or cancel order if payment was declined
|
204 |
+
*/
|
205 |
+
protected function _checkReturnedPost()
|
206 |
+
{
|
207 |
+
// check request type
|
208 |
+
if (!$this->getRequest()->isGet())
|
209 |
+
Mage::throwException('Wrong request type.');
|
210 |
+
|
211 |
+
|
212 |
+
$helper = Mage::helper('core/http');
|
213 |
+
// get request variables
|
214 |
+
$request = $this->getRequest()->getParams();
|
215 |
+
|
216 |
+
if (empty($request))
|
217 |
+
Mage::throwException('Request doesn\'t contain POST elements.');
|
218 |
+
|
219 |
+
// check order id
|
220 |
+
if (empty($request['orderid']) || strlen($request['orderid']) > 50)
|
221 |
+
Mage::throwException('Missing or invalid order ID');
|
222 |
+
|
223 |
+
// load order for further validation
|
224 |
+
$this->_order = Mage::getModel('sales/order')->loadByIncrementId($request['orderid']);
|
225 |
+
if (!$this->_order->getId())
|
226 |
+
Mage::throwException('Order not found');
|
227 |
+
|
228 |
+
$this->_paymentInst = $this->_order->getPayment()->getMethodInstance();
|
229 |
+
|
230 |
+
return $request;
|
231 |
+
}
|
232 |
+
|
233 |
+
/**
|
234 |
+
* Process success response
|
235 |
+
*/
|
236 |
+
protected function _processSale($request)
|
237 |
+
{
|
238 |
+
// check transaction amount and currency
|
239 |
+
if ($this->_paymentInst->getConfigData('use_store_currency')) {
|
240 |
+
$price = number_format($this->_order->getGrandTotal(),2,'.','');
|
241 |
+
$currency = $this->_order->getOrderCurrencyCode();
|
242 |
+
} else {
|
243 |
+
$price = number_format($this->_order->getBaseGrandTotal(),2,'.','');
|
244 |
+
$currency = $this->_order->getBaseCurrencyCode();
|
245 |
+
}
|
246 |
+
|
247 |
+
// check transaction amount
|
248 |
+
if ($price != $request['amount'])
|
249 |
+
Mage::throwException('Transaction currency doesn\'t match.');
|
250 |
+
|
251 |
+
// save transaction information
|
252 |
+
$this->_order->getPayment()
|
253 |
+
->setTransactionId($request['index'])
|
254 |
+
->setLastTransId($request['index']);
|
255 |
+
//->setCcAvsStatus($request['AVS'])
|
256 |
+
//->setCcType($request['cardType']);
|
257 |
+
|
258 |
+
if ($this->_order->canInvoice()) {
|
259 |
+
$invoice = $this->_order->prepareInvoice();
|
260 |
+
$invoice->register()->capture();
|
261 |
+
Mage::getModel('core/resource_transaction')
|
262 |
+
->addObject($invoice)
|
263 |
+
->addObject($invoice->getOrder())
|
264 |
+
->save();
|
265 |
+
}
|
266 |
+
$Ordstatus_tmp = $this->_paymentInst->getConfigData('order_status');
|
267 |
+
if($Ordstatus_tmp == '')
|
268 |
+
$Ordstatus_tmp = Mage_Sales_Model_Order::STATE_PROCESSING;
|
269 |
+
$this->_order->addStatusToHistory($Ordstatus_tmp,Mage::helper('pelepay')->__('Customer returned successfully'));
|
270 |
+
$this->_order->sendNewOrderEmail();
|
271 |
+
$this->_order->setEmailSent(true);
|
272 |
+
|
273 |
+
$this->_order->save();
|
274 |
+
|
275 |
+
/*$this->getResponse()->setBody(
|
276 |
+
$this->getLayout()
|
277 |
+
->createBlock($this->_successBlockType)
|
278 |
+
->setOrder($this->_order)
|
279 |
+
->toHtml()
|
280 |
+
);*/
|
281 |
+
}
|
282 |
+
|
283 |
+
/**
|
284 |
+
* Process success response
|
285 |
+
*/
|
286 |
+
protected function _processCancel($request)
|
287 |
+
{
|
288 |
+
// cancel order
|
289 |
+
if ($this->_order->canCancel()) {
|
290 |
+
$this->_order->cancel();
|
291 |
+
$this->_order->addStatusToHistory(Mage_Sales_Model_Order::STATE_CANCELED, Mage::helper('pelepay')->__('Payment was canceled'));
|
292 |
+
$this->_order->save();
|
293 |
+
}
|
294 |
+
|
295 |
+
$this->getResponse()->setBody(
|
296 |
+
$this->getLayout()
|
297 |
+
->createBlock($this->_cancelBlockType)
|
298 |
+
->setOrder($this->_order)
|
299 |
+
->toHtml()
|
300 |
+
);
|
301 |
+
}
|
302 |
+
|
303 |
+
protected function _getPendingPaymentStatus()
|
304 |
+
{
|
305 |
+
return Mage::helper('pelepay')->getPendingPaymentStatus();
|
306 |
+
}
|
307 |
+
|
308 |
+
/**
|
309 |
+
* Log debug data to file
|
310 |
+
*
|
311 |
+
* @param mixed $debugData
|
312 |
+
*/
|
313 |
+
protected function _debug($debugData)
|
314 |
+
{
|
315 |
+
if (Mage::getStoreConfigFlag('payment/pelepay_paymentmethod/debug')) {
|
316 |
+
Mage::log($debugData, null, 'payment_pelepay_paymentmethod.log', true);
|
317 |
+
}
|
318 |
+
}
|
319 |
+
}
|
app/code/community/Eoi/Pelepay/etc/config.xml
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
*
|
13 |
+
* @category EOI
|
14 |
+
* @package EOI_WonderFaye
|
15 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
16 |
+
*/
|
17 |
+
|
18 |
+
-->
|
19 |
+
<config>
|
20 |
+
<modules>
|
21 |
+
<Eoi_Pelepay>
|
22 |
+
<version>1.4.1</version>
|
23 |
+
</Eoi_Pelepay>
|
24 |
+
</modules>
|
25 |
+
<global>
|
26 |
+
<models>
|
27 |
+
<pelepay>
|
28 |
+
<class>Eoi_Pelepay_Model</class>
|
29 |
+
</pelepay>
|
30 |
+
</models>
|
31 |
+
<helpers>
|
32 |
+
<pelepay>
|
33 |
+
<class>Eoi_Pelepay_Helper</class>
|
34 |
+
</pelepay>
|
35 |
+
</helpers>
|
36 |
+
<resources>
|
37 |
+
<pelepay_setup>
|
38 |
+
<setup>
|
39 |
+
<module>Eoi_Pelepay</module>
|
40 |
+
</setup>
|
41 |
+
<connection>
|
42 |
+
<use>core_setup</use>
|
43 |
+
</connection>
|
44 |
+
</pelepay_setup>
|
45 |
+
<pelepay_write>
|
46 |
+
<connection>
|
47 |
+
<use>core_write</use>
|
48 |
+
</connection>
|
49 |
+
</pelepay_write>
|
50 |
+
<pelepay_read>
|
51 |
+
<connection>
|
52 |
+
<use>core_read</use>
|
53 |
+
</connection>
|
54 |
+
</pelepay_read>
|
55 |
+
</resources>
|
56 |
+
<blocks>
|
57 |
+
<pelepay><class>Eoi_Pelepay_Block</class></pelepay>
|
58 |
+
</blocks>
|
59 |
+
<payment>
|
60 |
+
<url>https://www.pelepay.co.il/pay/custompaypage.aspx</url>
|
61 |
+
<transaction>
|
62 |
+
<modes>
|
63 |
+
<LIVE>
|
64 |
+
<code>live</code>
|
65 |
+
<name>Live mode</name>
|
66 |
+
</LIVE>
|
67 |
+
<TEST>
|
68 |
+
<code>test</code>
|
69 |
+
<name>Test mode</name>
|
70 |
+
</TEST>
|
71 |
+
</modes>
|
72 |
+
</transaction>
|
73 |
+
</payment>
|
74 |
+
</global>
|
75 |
+
<frontend>
|
76 |
+
<secure_url>
|
77 |
+
<pelepay_processing>/pelepay/processing</pelepay_processing>
|
78 |
+
</secure_url>
|
79 |
+
<routers>
|
80 |
+
<pelepay>
|
81 |
+
<use>standard</use>
|
82 |
+
<args>
|
83 |
+
<module>Eoi_Pelepay</module>
|
84 |
+
<frontName>pelepay</frontName>
|
85 |
+
</args>
|
86 |
+
</pelepay>
|
87 |
+
</routers>
|
88 |
+
<translate>
|
89 |
+
<modules>
|
90 |
+
<Eoi_Pelepay>
|
91 |
+
<files>
|
92 |
+
<default>Eoi_Pelepay.csv</default>
|
93 |
+
</files>
|
94 |
+
</Eoi_Pelepay>
|
95 |
+
</modules>
|
96 |
+
</translate>
|
97 |
+
<layout>
|
98 |
+
<updates>
|
99 |
+
<pelepay>
|
100 |
+
<file>pelepay.xml</file>
|
101 |
+
</pelepay>
|
102 |
+
</updates>
|
103 |
+
</layout>
|
104 |
+
</frontend>
|
105 |
+
<adminhtml>
|
106 |
+
<translate>
|
107 |
+
<modules>
|
108 |
+
<Eoi_Pelepay>
|
109 |
+
<files>
|
110 |
+
<default>Eoi_Pelepay.csv</default>
|
111 |
+
</files>
|
112 |
+
</Eoi_Pelepay>
|
113 |
+
</modules>
|
114 |
+
</translate>
|
115 |
+
</adminhtml>
|
116 |
+
<default>
|
117 |
+
<payment>
|
118 |
+
<pelepay_paymentmethod>
|
119 |
+
<active>0</active>
|
120 |
+
<model>pelepay/paymentmethod</model>
|
121 |
+
<order_status>1</order_status>
|
122 |
+
<title>PelePay</title>
|
123 |
+
<submit_url>https://www.pelepay.co.il/pay/custompaypage.aspx</submit_url>
|
124 |
+
<!--<email_id></email_id>-->
|
125 |
+
<max_payments>1</max_payments>
|
126 |
+
<business_name> Please insert your pelepay email adress </business_name>
|
127 |
+
<cancel_return_url>pelepay/processing/cancel</cancel_return_url>
|
128 |
+
<success_return_url>pelepay/processing/success</success_return_url>
|
129 |
+
<fail_return_url>pelepay/processing/response</fail_return_url>
|
130 |
+
<pelepay_button_url>https://www.pelepay.co.il/images/banners/respect_pp_8C.gif</pelepay_button_url>
|
131 |
+
<allowspecific>0</allowspecific>
|
132 |
+
<use_store_currency>0</use_store_currency>
|
133 |
+
<!--<request_type>authorize</request_type>
|
134 |
+
<transaction_mode>test</transaction_mode>-->
|
135 |
+
<fix_contact>1</fix_contact>
|
136 |
+
<hide_contact>0</hide_contact>
|
137 |
+
<enable_online_operations>0</enable_online_operations>
|
138 |
+
</pelepay_paymentmethod>
|
139 |
+
</payment>
|
140 |
+
</default>
|
141 |
+
</config>
|
app/code/community/Eoi/Pelepay/etc/system.xml
ADDED
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
*
|
13 |
+
* @category EOI
|
14 |
+
* @package EOI_WonderFaye
|
15 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
16 |
+
*/
|
17 |
+
|
18 |
+
-->
|
19 |
+
<config>
|
20 |
+
<sections>
|
21 |
+
<payment>
|
22 |
+
<groups>
|
23 |
+
<pelepay_paymentmethod translate="label" module="pelepay">
|
24 |
+
<label>Pele-Pay</label>
|
25 |
+
<frontend_type>text</frontend_type>
|
26 |
+
<sort_order>1</sort_order>
|
27 |
+
<show_in_default>1</show_in_default>
|
28 |
+
<show_in_website>1</show_in_website>
|
29 |
+
<show_in_store>0</show_in_store>
|
30 |
+
<fields>
|
31 |
+
<active translate="label">
|
32 |
+
<label>Enabled</label>
|
33 |
+
<frontend_type>select</frontend_type>
|
34 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
35 |
+
<sort_order>1</sort_order>
|
36 |
+
<show_in_default>1</show_in_default>
|
37 |
+
<show_in_website>1</show_in_website>
|
38 |
+
<show_in_store>0</show_in_store>
|
39 |
+
</active>
|
40 |
+
<order_status translate="label">
|
41 |
+
<label>New order status</label>
|
42 |
+
<frontend_type>select</frontend_type>
|
43 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
44 |
+
<sort_order>2</sort_order>
|
45 |
+
<show_in_default>1</show_in_default>
|
46 |
+
<show_in_website>1</show_in_website>
|
47 |
+
<show_in_store>0</show_in_store>
|
48 |
+
</order_status>
|
49 |
+
<title translate="label">
|
50 |
+
<label>Title</label>
|
51 |
+
<frontend_type>text</frontend_type>
|
52 |
+
<sort_order>4</sort_order>
|
53 |
+
<show_in_default>1</show_in_default>
|
54 |
+
<show_in_website>1</show_in_website>
|
55 |
+
<show_in_store>0</show_in_store>
|
56 |
+
</title>
|
57 |
+
<submit_url>
|
58 |
+
<label>Gateway URL</label>
|
59 |
+
<frontend_type>text</frontend_type>
|
60 |
+
<sort_order>58</sort_order>
|
61 |
+
<show_in_default>1</show_in_default>
|
62 |
+
<show_in_website>1</show_in_website>
|
63 |
+
<show_in_store>0</show_in_store>
|
64 |
+
</submit_url>
|
65 |
+
<!--<email_id>
|
66 |
+
<label>Email Address</label>
|
67 |
+
<frontend_type>text</frontend_type>
|
68 |
+
<sort_order>59</sort_order>
|
69 |
+
<show_in_default>1</show_in_default>
|
70 |
+
<show_in_website>1</show_in_website>
|
71 |
+
<show_in_store>0</show_in_store>
|
72 |
+
</email_id>-->
|
73 |
+
<max_payments>
|
74 |
+
<label>Payment Number (1-12)</label>
|
75 |
+
<frontend_type>text</frontend_type>
|
76 |
+
<sort_order>60</sort_order>
|
77 |
+
<show_in_default>1</show_in_default>
|
78 |
+
<show_in_website>1</show_in_website>
|
79 |
+
<show_in_store>0</show_in_store>
|
80 |
+
</max_payments>
|
81 |
+
<business_name>
|
82 |
+
<label>Business Name</label>
|
83 |
+
<frontend_type>text</frontend_type>
|
84 |
+
<sort_order>61</sort_order>
|
85 |
+
<show_in_default>1</show_in_default>
|
86 |
+
<show_in_website>1</show_in_website>
|
87 |
+
<show_in_store>0</show_in_store>
|
88 |
+
</business_name>
|
89 |
+
<cancel_return_url>
|
90 |
+
<label>Cancel Return Url</label>
|
91 |
+
<frontend_type>text</frontend_type>
|
92 |
+
<sort_order>62</sort_order>
|
93 |
+
<show_in_default>1</show_in_default>
|
94 |
+
<show_in_website>1</show_in_website>
|
95 |
+
<show_in_store>0</show_in_store>
|
96 |
+
</cancel_return_url>
|
97 |
+
<success_return_url>
|
98 |
+
<label>Success Return Url</label>
|
99 |
+
<frontend_type>text</frontend_type>
|
100 |
+
<sort_order>63</sort_order>
|
101 |
+
<show_in_default>1</show_in_default>
|
102 |
+
<show_in_website>1</show_in_website>
|
103 |
+
<show_in_store>0</show_in_store>
|
104 |
+
</success_return_url>
|
105 |
+
<fail_return_url>
|
106 |
+
<label>Fail Return Url</label>
|
107 |
+
<frontend_type>text</frontend_type>
|
108 |
+
<sort_order>64</sort_order>
|
109 |
+
<show_in_default>1</show_in_default>
|
110 |
+
<show_in_website>1</show_in_website>
|
111 |
+
<show_in_store>0</show_in_store>
|
112 |
+
</fail_return_url>
|
113 |
+
<pelepay_button_url>
|
114 |
+
<label>PelePay Button Url</label>
|
115 |
+
<frontend_type>text</frontend_type>
|
116 |
+
<sort_order>64</sort_order>
|
117 |
+
<show_in_default>1</show_in_default>
|
118 |
+
<show_in_website>1</show_in_website>
|
119 |
+
<show_in_store>0</show_in_store>
|
120 |
+
</pelepay_button_url>
|
121 |
+
<!--<request_type translate="label">
|
122 |
+
<label>Request Type</label>
|
123 |
+
<frontend_type>select</frontend_type>
|
124 |
+
<source_model>pelepay/source_requestType</source_model>
|
125 |
+
<sort_order>12</sort_order>
|
126 |
+
<show_in_default>1</show_in_default>
|
127 |
+
<show_in_website>1</show_in_website>
|
128 |
+
<show_in_store>0</show_in_store>
|
129 |
+
</request_type>
|
130 |
+
<transaction_mode translate="label">
|
131 |
+
<label>Transaction Mode</label>
|
132 |
+
<frontend_type>select</frontend_type>
|
133 |
+
<source_model>pelepay/source_transactionMode</source_model>
|
134 |
+
<sort_order>13</sort_order>
|
135 |
+
<show_in_default>1</show_in_default>
|
136 |
+
<show_in_website>1</show_in_website>
|
137 |
+
<show_in_store>0</show_in_store>
|
138 |
+
</transaction_mode>-->
|
139 |
+
<debug translate="label">
|
140 |
+
<label>Debug</label>
|
141 |
+
<frontend_type>select</frontend_type>
|
142 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
143 |
+
<sort_order>20</sort_order>
|
144 |
+
<show_in_default>1</show_in_default>
|
145 |
+
<show_in_website>1</show_in_website>
|
146 |
+
<show_in_store>1</show_in_store>
|
147 |
+
</debug>
|
148 |
+
</fields>
|
149 |
+
</pelepay_paymentmethod>
|
150 |
+
</groups>
|
151 |
+
</payment>
|
152 |
+
</sections>
|
153 |
+
</config>
|
app/design/adminhtml/default/default/template/pelepay/info.phtml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
<?php
|
17 |
+
echo $this->getMethod()->getTitle() . '<br/>';
|
18 |
+
if ($this->getInfo()->getLastTransId() == '') {
|
19 |
+
echo Mage::helper('pelepay')->__('Payment has not been processed yet.') . '<br/>';
|
20 |
+
} else {
|
21 |
+
echo Mage::helper('pelepay')->__('Credit Card Type: %s', $this->htmlEscape($this->getInfo()->getCcType())) . '<br/>';
|
22 |
+
echo Mage::helper('pelepay')->__('Pele-Pay Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) . '<br/>';
|
23 |
+
echo Mage::helper('pelepay')->__('AVS status: %s', $this->htmlEscape($this->getInfo()->getCcAvsStatus())) . '<br/>';
|
24 |
+
if ($additional_data = $this->getInfo()->getAdditionalData()) {
|
25 |
+
echo Mage::helper('pelepay')->__('Fraud status: %s', $this->htmlEscape($additional_data)) . '<br/>';
|
26 |
+
}
|
27 |
+
}
|
28 |
+
?>
|
app/design/adminhtml/default/default/template/pelepay/pdf/info.phtml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
<?php echo $this->getMethod()->getTitle() ?>
|
17 |
+
|
app/design/frontend/base/default/layout/pelepay.xml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
*
|
13 |
+
* @category EOI
|
14 |
+
* @package EOI_WonderFaye
|
15 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
16 |
+
*/
|
17 |
+
|
18 |
+
-->
|
19 |
+
<layout version="0.1.0">
|
20 |
+
<!--
|
21 |
+
Wonderfaye Failure Response Review
|
22 |
+
-->
|
23 |
+
<pelepay_processing_failure>
|
24 |
+
<reference name="root">
|
25 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
26 |
+
</reference>
|
27 |
+
<reference name="content">
|
28 |
+
<block type="pelepay/failure" name="pelepay_failure" template="pelepay/failure.phtml" />
|
29 |
+
</reference>
|
30 |
+
</pelepay_processing_failure>
|
31 |
+
<pelepay_processing_redirect>
|
32 |
+
<reference name="root">
|
33 |
+
<action method="setTemplate"><template>pelepay/blank.phtml</template></action>
|
34 |
+
</reference>
|
35 |
+
<reference name="content">
|
36 |
+
<block type="pelepay/redirect" name="pelepay_redirect" template="pelepay/redirect.phtml" />
|
37 |
+
</reference>
|
38 |
+
</pelepay_processing_redirect>
|
39 |
+
</layout>
|
app/design/frontend/base/default/template/pelepay/blank.phtml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
?>
|
18 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
19 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
|
20 |
+
<head>
|
21 |
+
</head>
|
22 |
+
<body>
|
23 |
+
<?php echo $this->getChildHtml('content') ?>
|
24 |
+
</body>
|
25 |
+
</html>
|
app/design/frontend/base/default/template/pelepay/cancel.phtml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
?>
|
17 |
+
<html>
|
18 |
+
<meta http-equiv="refresh" content="0; URL=<?php echo $this->getContinueShoppingUrl()?>">
|
19 |
+
<body>
|
20 |
+
<div class="page-head">
|
21 |
+
<h3><?php echo Mage::helper('pelepay')->__('Payment was canceled') ?></h3>
|
22 |
+
</div>
|
23 |
+
<p><?php echo Mage::helper('pelepay')->__('Please <a href="%s">continue shopping</a>.', $this->getContinueShoppingUrl()) ?></p>
|
24 |
+
</body>
|
25 |
+
</html>
|
app/design/frontend/base/default/template/pelepay/failure.phtml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
$pelepay_resp_msg = Mage::getSingleton('core/session')->getPelepayResMsg();
|
17 |
+
$pelepay_resp_msg_code = Mage::getSingleton('core/session')->getPelepayResMsgCode();
|
18 |
+
?>
|
19 |
+
<html>
|
20 |
+
<meta http-equiv="refresh" content="0; URL=<?php echo $this->getContinueShoppingUrl()?>">
|
21 |
+
<body>
|
22 |
+
<div class="page-head">
|
23 |
+
<h3><?php echo Mage::helper('pelepay')->__('PelePay Transaction Error occurred') ?></h3>
|
24 |
+
<BR />
|
25 |
+
<p><?php echo Mage::helper('pelepay')->__('The Error Response Code From PelePay is :')?> <span style="color:red"><b><?php echo Mage::helper('pelepay')->__($pelepay_resp_msg_code) ?></b></span></p>
|
26 |
+
<BR />
|
27 |
+
<p><?php echo Mage::helper('pelepay')->__('The Error Response From PelePay is :')?> <span style="color:red"><b><?php echo Mage::helper('pelepay')->__($pelepay_resp_msg) ?></b></span></p>
|
28 |
+
</div>
|
29 |
+
<p><?php echo Mage::helper('pelepay')->__('Please <a href="%s">continue shopping</a>.', $this->getContinueShoppingUrl()) ?></p>
|
30 |
+
</body>
|
31 |
+
</html>
|
app/design/frontend/base/default/template/pelepay/form.phtml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
?>
|
18 |
+
<fieldset class="form-list">
|
19 |
+
<?php $_code=$this->getMethodCode() ?>
|
20 |
+
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
21 |
+
<li>
|
22 |
+
<?php echo Mage::helper('pelepay')->__('You will be redirected to Pele-Pay website to enter your credit card information, when you place an order.') // to enter your credit card information.?>
|
23 |
+
</li>
|
24 |
+
</ul>
|
25 |
+
</fieldset>
|
app/design/frontend/base/default/template/pelepay/info.phtml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
?>
|
18 |
+
<?php
|
19 |
+
echo $this->getMethod()->getTitle() . '<br/>';
|
20 |
+
if ($this->getInfo()->getLastTransId() == '') {
|
21 |
+
echo '<em>' . Mage::helper('pelepay')->__($this->getMethodCode().':You will be redirected to Pele-Pay website when you place an order.') . '</em>';
|
22 |
+
} else {
|
23 |
+
echo Mage::helper('pelepay')->__('Credit Card Type: %s', $this->htmlEscape($this->getInfo()->getCcType())) . '<br/>';
|
24 |
+
echo Mage::helper('pelepay')->__('Pele-Pay Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) . '<br/>';
|
25 |
+
}
|
26 |
+
?>
|
app/design/frontend/base/default/template/pelepay/mark.phtml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
?>
|
17 |
+
<?php
|
18 |
+
/**
|
19 |
+
* Note: This mark is a requirement of PelePay
|
20 |
+
* @see Prideglobe_WonderFaye_Block_Form
|
21 |
+
*/
|
22 |
+
$pelepay_button_url = Mage::getSingleton('core/session')->getPelepayBtnUrl();
|
23 |
+
?>
|
24 |
+
<!-- PelePay Logo -->
|
25 |
+
<img src="<?php echo $pelepay_button_url?>" alt="<?php echo Mage::helper('pelepay')->__('Pele-Pay') ?>" class="v-middle" />
|
26 |
+
<a href="#" onclick="javascript:window.open('https://www.pelepay.co.il/','olcwhatispelepay','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, ,left=0, top=0, width=400, height=350'); return false;"><?php echo Mage::helper('pelepay')->__('What is PelePay?') ?></a>
|
27 |
+
<!-- PelePay Logo -->
|
app/design/frontend/base/default/template/pelepay/redirect.phtml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category EOI
|
13 |
+
* @package EOI_WonderFaye
|
14 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
15 |
+
*/
|
16 |
+
|
17 |
+
?>
|
18 |
+
<b><?php echo Mage::helper('pelepay')->__('You will be redirected to Pele-Pay site in a few seconds.'); ?></b>
|
19 |
+
<form name="pelepay_checkout" id="pelepay_checkout" action="<?php echo $this->getFormAction();?>" method="POST">
|
20 |
+
<?php if (is_array($this->getFormData())): ?>
|
21 |
+
<?php foreach ($this->getFormData() as $name => $value): ?>
|
22 |
+
<input type="hidden" name="<?php echo $name; ?>" <?php if (!is_null($value)) { echo 'value="'. $value . '"'; } ?> />
|
23 |
+
<?php endforeach; ?>
|
24 |
+
<?php endif; ?>
|
25 |
+
</form>
|
26 |
+
|
27 |
+
<script type="text/javascript">
|
28 |
+
//<![CDATA[
|
29 |
+
var paymentform = document.getElementById('pelepay_checkout');
|
30 |
+
window.onload = paymentform.submit();
|
31 |
+
//]]>
|
32 |
+
</script>
|
app/etc/modules/Eoi_Pelepay.xml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
*
|
13 |
+
* @category EOI
|
14 |
+
* @package EOI_WonderFaye
|
15 |
+
* @copyright Copyright (c) 2012 EOI (http://www.eoi.com)
|
16 |
+
*/
|
17 |
+
-->
|
18 |
+
<config>
|
19 |
+
<modules>
|
20 |
+
<Eoi_Pelepay>
|
21 |
+
<active>true</active>
|
22 |
+
<codePool>community</codePool>
|
23 |
+
</Eoi_Pelepay>
|
24 |
+
</modules>
|
25 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Pelepay_Payment_Gateway</name>
|
4 |
+
<version>0.1.2</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>A pelepay payment gateway extension adds support to accept payment via Pelepay payment gateway</summary>
|
10 |
+
<description>This extension will add support for pelepay payment gateway. It is Israel based payment gateway.
|
11 |
+

|
12 |
+
</description>
|
13 |
+
<notes>Stable Release Date : 27th Nov 2012</notes>
|
14 |
+
<authors><author><name>Etamar Sean Oren</name><user>Sean</user><email>etamaro@eoi.co.il</email></author></authors>
|
15 |
+
<date>2012-11-27</date>
|
16 |
+
<time>11:01:46</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Eoi"><dir name="Pelepay"><dir name="Block"><file name="Cancel.php" hash="a54772e58ee661252f37e2528cccb542"/><file name="Failure.php" hash="3e3ffc013764d69f1bbc8b843c683be7"/><file name="Form.php" hash="641a4d7136da527dbf6f90f1285ca1e6"/><file name="Info.php" hash="2f6276da2f800f6bfe854bb383cae037"/><file name="Redirect.php" hash="bc791d5369fa65da9324eff7ce1ad717"/><file name="Success.php" hash="c39059a50c53c0859e1036db6a3e33ff"/></dir><dir name="Helper"><file name="Data.php" hash="8c3572afa0d76e3535c0f551fa048b8d"/></dir><dir name="Model"><file name="Config.php" hash="67c9c6e836c27b815287b187102cdadc"/><file name="Paymentmethod.php" hash="23ca425f189291c13bdd364b38d05f89"/><dir name="Source"><file name="RequestType.php" hash="ead64f506ccc51eb48eb76c5c838528d"/><file name="SignatureType.php" hash="e3d5826bf12b8894f32dec8dc81d65ae"/><file name="TransactionMode.php" hash="112a001d2b69f6af9731761e7e94c17b"/></dir></dir><dir name="controllers"><file name="ProcessingController.php" hash="57b1d3a219cb006e8ab5805b479e4e87"/></dir><dir name="etc"><file name="config.xml" hash="2b66af7674167a91243993702424b2e5"/><file name="system.xml" hash="433034dfd36d82019b9543c63ceffe5c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eoi_Pelepay.xml" hash="1bef45de5bb9c9e7e60663855f86f629"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pelepay"><file name="info.phtml" hash="1d366cbd6f35b5ea0da657830e0668a2"/><dir name="pdf"><file name="info.phtml" hash="a6419b1373c4856effe01dae20e05e9a"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pelepay.xml" hash="e5cab5db1850e7673c4caa7f02d39a49"/></dir><dir name="template"><dir name="pelepay"><file name="blank.phtml" hash="e763cc06e78fab78ce034f1462188ae8"/><file name="cancel.phtml" hash="203e69652380c5341ec8e2ab65444250"/><file name="failure.phtml" hash="b71f7657725712450310bd22b568e2da"/><file name="form.phtml" hash="50d13a62f40e8976d81b930ea9440e54"/><file name="info.phtml" hash="4548a60cb5828ed4d0b1a5e61263f16c"/><file name="mark.phtml" hash="7a6057c1fa08d239f6d8834309f1c359"/><file name="redirect.phtml" hash="ab2cec83225a66ae2e179f9feee31bc2"/></dir></dir></dir></dir></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|