Version Notes
Camel casing changed and Controller functions amended.
Download this release
Release Info
Developer | VirtualPayer |
Extension | VirtualPayer_AuthipayRedirect |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/local/{VirtualPayer/AuthipayRedirect/Block/Adminhtml/AuthipayRedirect.php → Virtualpayer/Authipayredirect/Block/Adminhtml/Authipayredirect.php} +2 -2
- app/code/local/{VirtualPayer/AuthipayRedirect/Block/Adminhtml/AuthipayRedirect → Virtualpayer/Authipayredirect/Block/Adminhtml/Authipayredirect}/Grid.php +1 -1
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Block/Redirect/Error.php +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Block/Redirect/Form.php +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Block/Redirect/Redirect.php +5 -5
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Block/Redirect/Success.php +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Helper/Data.php +5 -7
- app/code/local/{VirtualPayer/AuthipayRedirect/Model/AuthipayRedirect.php → Virtualpayer/Authipayredirect/Model/Authipayredirect.php} +1 -1
- app/code/local/{VirtualPayer/AuthipayRedirect/Model/Mysql4/AuthipayRedirect.php → Virtualpayer/Authipayredirect/Model/Mysql4/Authipayredirect.php} +1 -1
- app/code/local/{VirtualPayer/AuthipayRedirect/Model/Mysql4/AuthipayRedirect → Virtualpayer/Authipayredirect/Model/Mysql4/Authipayredirect}/Collection.php +1 -1
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Redirect.php +10 -11
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Setup.php +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/Cctype.php +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/Currency.php +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/OrderStatus.php +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/PaymentAction.php +6 -6
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/PaymentMode.php +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect/controllers/Adminhtml/AuthipayRedirectController.php → Virtualpayer/Authipayredirect/controllers/Adminhtml/AuthipayredirectController.php} +1 -1
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/controllers/RedirectController.php +20 -22
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/controllers/ResponseController.php +31 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/etc/config.xml +14 -23
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/etc/system.xml +4 -4
- app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/sql/authipayredirect_setup/mysql4-install-0.1.0.php +0 -0
- app/design/frontend/base/default/layout/authipayredirect.xml +1 -0
- app/design/frontend/base/default/template/authipayredirect/redirect/form.phtml +1 -1
- app/etc/modules/{VirtualPayer_AuthipayRedirect.xml → Virtualpayer_Authipayredirect.xml} +5 -5
- package.xml +11 -9
app/code/local/{VirtualPayer/AuthipayRedirect/Block/Adminhtml/AuthipayRedirect.php → Virtualpayer/Authipayredirect/Block/Adminhtml/Authipayredirect.php}
RENAMED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
6 |
$this->_controller = 'adminhtml_authipayredirect';
|
7 |
$this->_blockGroup = 'authipayredirect';
|
8 |
-
$this->_headerText = Mage::helper('authipayredirect')->__('Authipay
|
9 |
parent::__construct();
|
10 |
$this->_removeButton('add');
|
11 |
}
|
1 |
<?php
|
2 |
+
class Virtualpayer_Authipayredirect_Block_Adminhtml_Authipayredirect extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
{
|
4 |
public function __construct()
|
5 |
{
|
6 |
$this->_controller = 'adminhtml_authipayredirect';
|
7 |
$this->_blockGroup = 'authipayredirect';
|
8 |
+
$this->_headerText = Mage::helper('authipayredirect')->__('Authipay Transactions');
|
9 |
parent::__construct();
|
10 |
$this->_removeButton('add');
|
11 |
}
|
app/code/local/{VirtualPayer/AuthipayRedirect/Block/Adminhtml/AuthipayRedirect → Virtualpayer/Authipayredirect/Block/Adminhtml/Authipayredirect}/Grid.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
public function __construct()
|
6 |
{
|
1 |
<?php
|
2 |
|
3 |
+
class Virtualpayer_Authipayredirect_Block_Adminhtml_Authipayredirect_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
4 |
{
|
5 |
public function __construct()
|
6 |
{
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Block/Redirect/Error.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
/**
|
20 |
* @return string
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Block_Redirect_Error extends Mage_Core_Block_Abstract
|
18 |
{
|
19 |
/**
|
20 |
* @return string
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Block/Redirect/Form.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
/**
|
20 |
* @return void
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Block_Redirect_Form extends Mage_Payment_Block_Form
|
18 |
{
|
19 |
/**
|
20 |
* @return void
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Block/Redirect/Redirect.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
/**
|
20 |
* @return string
|
@@ -251,7 +251,7 @@ class VirtualPayer_AuthipayRedirect_Block_Redirect_Redirect extends Mage_Core_Bl
|
|
251 |
|
252 |
$form->addField('txntype', 'hidden', array('name'=>'txntype', 'value'=>'sale'));
|
253 |
$form->addField('oid', 'hidden', array('name'=>'oid', 'value'=>$orderid));
|
254 |
-
$form->addField('timezone', 'hidden', array('name'=>'timezone', 'value'=>date(T)));
|
255 |
$form->addField('txndatetime', 'hidden', array('name'=>'txndatetime', 'value'=>$dateTime));
|
256 |
$form->addField('hash', 'hidden', array('name'=>'hash', 'value'=>$sha1hash));
|
257 |
$form->addField('storename', 'hidden', array('name'=>'storename', 'value'=>$storeid));
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Block_Redirect_Redirect extends Mage_Core_Block_Abstract
|
18 |
{
|
19 |
/**
|
20 |
* @return string
|
251 |
|
252 |
$form->addField('txntype', 'hidden', array('name'=>'txntype', 'value'=>'sale'));
|
253 |
$form->addField('oid', 'hidden', array('name'=>'oid', 'value'=>$orderid));
|
254 |
+
$form->addField('timezone', 'hidden', array('name'=>'timezone', 'value'=>date('T')));
|
255 |
$form->addField('txndatetime', 'hidden', array('name'=>'txndatetime', 'value'=>$dateTime));
|
256 |
$form->addField('hash', 'hidden', array('name'=>'hash', 'value'=>$sha1hash));
|
257 |
$form->addField('storename', 'hidden', array('name'=>'storename', 'value'=>$storeid));
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Block/Redirect/Success.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
/**
|
20 |
* @return string
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Block_Redirect_Success extends Mage_Core_Block_Abstract
|
18 |
{
|
19 |
/**
|
20 |
* @return string
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Helper/Data.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
|
20 |
/**
|
@@ -51,6 +51,4 @@ class VirtualPayer_AuthipayRedirect_Helper_Data extends Mage_Core_Helper_Abstrac
|
|
51 |
$filter->setVariables($variables);
|
52 |
return $filter->filter($block->toHtml());
|
53 |
}
|
54 |
-
}
|
55 |
-
|
56 |
-
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Helper_Data extends Mage_Core_Helper_Abstract
|
18 |
{
|
19 |
|
20 |
/**
|
51 |
$filter->setVariables($variables);
|
52 |
return $filter->filter($block->toHtml());
|
53 |
}
|
54 |
+
}
|
|
|
|
app/code/local/{VirtualPayer/AuthipayRedirect/Model/AuthipayRedirect.php → Virtualpayer/Authipayredirect/Model/Authipayredirect.php}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
public function _construct()
|
6 |
{
|
1 |
<?php
|
2 |
|
3 |
+
class Virtualpayer_Authipayredirect_Model_Authipayredirect extends Mage_Core_Model_Abstract
|
4 |
{
|
5 |
public function _construct()
|
6 |
{
|
app/code/local/{VirtualPayer/AuthipayRedirect/Model/Mysql4/AuthipayRedirect.php → Virtualpayer/Authipayredirect/Model/Mysql4/Authipayredirect.php}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
public function _construct()
|
6 |
{
|
1 |
<?php
|
2 |
|
3 |
+
class Virtualpayer_Authipayredirect_Model_Mysql4_Authipayredirect extends Mage_Core_Model_Mysql4_Abstract
|
4 |
{
|
5 |
public function _construct()
|
6 |
{
|
app/code/local/{VirtualPayer/AuthipayRedirect/Model/Mysql4/AuthipayRedirect → Virtualpayer/Authipayredirect/Model/Mysql4/Authipayredirect}/Collection.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
public function _construct()
|
6 |
{
|
1 |
<?php
|
2 |
|
3 |
+
class Virtualpayer_Authipayredirect_Model_Mysql4_Authipayredirect_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
{
|
5 |
public function _construct()
|
6 |
{
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Redirect.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
|
19 |
protected $_code = 'authipayredirect';
|
20 |
protected $_formBlockType = 'authipayredirect/redirect_form';
|
@@ -22,7 +22,7 @@ class VirtualPayer_AuthipayRedirect_Model_Redirect extends Mage_Payment_Model_Me
|
|
22 |
|
23 |
/**
|
24 |
* @param $data
|
25 |
-
* @return
|
26 |
*/
|
27 |
public function assignData($data)
|
28 |
{
|
@@ -86,9 +86,8 @@ class VirtualPayer_AuthipayRedirect_Model_Redirect extends Mage_Payment_Model_Me
|
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
-
* Validate the currency code is available to use for FdmsConnect or not
|
90 |
*
|
91 |
-
* @return
|
92 |
*/
|
93 |
|
94 |
public function validate()
|
@@ -102,7 +101,7 @@ class VirtualPayer_AuthipayRedirect_Model_Redirect extends Mage_Payment_Model_Me
|
|
102 |
|
103 |
/**
|
104 |
* @param Mage_Sales_Model_Order_Payment $payment
|
105 |
-
* @return
|
106 |
*/
|
107 |
public function onOrderValidate(Mage_Sales_Model_Order_Payment $payment)
|
108 |
{
|
@@ -139,7 +138,7 @@ class VirtualPayer_AuthipayRedirect_Model_Redirect extends Mage_Payment_Model_Me
|
|
139 |
* @return string
|
140 |
*/
|
141 |
public function getSuccessUrl(){
|
142 |
-
return Mage::getUrl('authipayredirect/
|
143 |
}
|
144 |
|
145 |
/**
|
@@ -187,7 +186,7 @@ class VirtualPayer_AuthipayRedirect_Model_Redirect extends Mage_Payment_Model_Me
|
|
187 |
*/
|
188 |
public function processRedirectResponse($post){
|
189 |
Mage::log($post);
|
190 |
-
$this->
|
191 |
|
192 |
$timestamp = $post['tdate'];
|
193 |
$result = $post['processor_response_code'];
|
@@ -247,7 +246,7 @@ class VirtualPayer_AuthipayRedirect_Model_Redirect extends Mage_Payment_Model_Me
|
|
247 |
}
|
248 |
}
|
249 |
|
250 |
-
public function
|
251 |
$authipayredirect = Mage::getModel('authipayredirect/authipayredirect');
|
252 |
|
253 |
try{
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Model_Redirect extends Mage_Payment_Model_Method_Abstract{
|
18 |
|
19 |
protected $_code = 'authipayredirect';
|
20 |
protected $_formBlockType = 'authipayredirect/redirect_form';
|
22 |
|
23 |
/**
|
24 |
* @param $data
|
25 |
+
* @return Virtualpayer_Authipayredirect_Model_Redirect
|
26 |
*/
|
27 |
public function assignData($data)
|
28 |
{
|
86 |
}
|
87 |
|
88 |
/**
|
|
|
89 |
*
|
90 |
+
* @return Virtualpayer_Authipayredirect_Model_Redirect
|
91 |
*/
|
92 |
|
93 |
public function validate()
|
101 |
|
102 |
/**
|
103 |
* @param Mage_Sales_Model_Order_Payment $payment
|
104 |
+
* @return Virtualpayer_Authipayredirect_Model_Redirect
|
105 |
*/
|
106 |
public function onOrderValidate(Mage_Sales_Model_Order_Payment $payment)
|
107 |
{
|
138 |
* @return string
|
139 |
*/
|
140 |
public function getSuccessUrl(){
|
141 |
+
return Mage::getUrl('authipayredirect/redirect/success');
|
142 |
}
|
143 |
|
144 |
/**
|
186 |
*/
|
187 |
public function processRedirectResponse($post){
|
188 |
Mage::log($post);
|
189 |
+
$this->saveAuthipayredirectTransaction($post);
|
190 |
|
191 |
$timestamp = $post['tdate'];
|
192 |
$result = $post['processor_response_code'];
|
246 |
}
|
247 |
}
|
248 |
|
249 |
+
public function saveAuthipayredirectTransaction($post){
|
250 |
$authipayredirect = Mage::getModel('authipayredirect/authipayredirect');
|
251 |
|
252 |
try{
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Setup.php
RENAMED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
|
6 |
public function createStaticBlocks(){
|
7 |
$error = Mage::getModel('cms/block');
|
8 |
-
$error->setTitle('
|
9 |
->setIdentifier('authipayredirect_error')
|
10 |
->setContent('{{var response.message}}')
|
11 |
->setCreationTime(date('Y-m-d H:i:s'))
|
@@ -15,7 +15,7 @@ class VirtualPayer_AuthipayRedirect_Model_Setup extends Mage_Eav_Model_Entity_Se
|
|
15 |
->save();
|
16 |
|
17 |
$success = Mage::getModel('cms/block');
|
18 |
-
$success->setTitle('
|
19 |
->setIdentifier('authipayredirect_success')
|
20 |
->setContent('{{var response.message}}')
|
21 |
->setCreationTime(date('Y-m-d H:i:s'))
|
@@ -25,7 +25,7 @@ class VirtualPayer_AuthipayRedirect_Model_Setup extends Mage_Eav_Model_Entity_Se
|
|
25 |
->save();
|
26 |
|
27 |
$redirect = Mage::getModel('cms/block');
|
28 |
-
$redirect->setTitle('
|
29 |
->setIdentifier('authipayredirect_redirect')
|
30 |
->setContent('You will be redirected to Authipay in a few seconds.')
|
31 |
->setCreationTime(date('Y-m-d H:i:s'))
|
1 |
<?php
|
2 |
|
3 |
+
class Virtualpayer_Authipayredirect_Model_Setup extends Mage_Eav_Model_Entity_Setup
|
4 |
{
|
5 |
|
6 |
public function createStaticBlocks(){
|
7 |
$error = Mage::getModel('cms/block');
|
8 |
+
$error->setTitle('Authipayredirect Error Message')
|
9 |
->setIdentifier('authipayredirect_error')
|
10 |
->setContent('{{var response.message}}')
|
11 |
->setCreationTime(date('Y-m-d H:i:s'))
|
15 |
->save();
|
16 |
|
17 |
$success = Mage::getModel('cms/block');
|
18 |
+
$success->setTitle('Authipayredirect Success Message')
|
19 |
->setIdentifier('authipayredirect_success')
|
20 |
->setContent('{{var response.message}}')
|
21 |
->setCreationTime(date('Y-m-d H:i:s'))
|
25 |
->save();
|
26 |
|
27 |
$redirect = Mage::getModel('cms/block');
|
28 |
+
$redirect->setTitle('Authipayredirect Redirect Message')
|
29 |
->setIdentifier('authipayredirect_redirect')
|
30 |
->setContent('You will be redirected to Authipay in a few seconds.')
|
31 |
->setCreationTime(date('Y-m-d H:i:s'))
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/Cctype.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
public function getAllowedTypes()
|
20 |
{
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Model_Source_Cctype extends Mage_Payment_Model_Source_Cctype
|
18 |
{
|
19 |
public function getAllowedTypes()
|
20 |
{
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/Currency.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
public function toOptionArray()
|
20 |
{
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Model_Source_Currency
|
18 |
{
|
19 |
public function toOptionArray()
|
20 |
{
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/OrderStatus.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
|
19 |
public function toOptionArray()
|
20 |
{
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Model_Source_OrderStatus{
|
18 |
|
19 |
public function toOptionArray()
|
20 |
{
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/PaymentAction.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,22 +9,22 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
public function toOptionArray()
|
20 |
{
|
21 |
return array(
|
22 |
array(
|
23 |
-
'value' =>
|
24 |
'label' => Mage::helper('authipayredirect')->__('Defer Settlement')
|
25 |
),
|
26 |
array(
|
27 |
-
'value' =>
|
28 |
'label' => Mage::helper('authipayredirect')->__('Settle Immediately')
|
29 |
),
|
30 |
);
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Model_Source_PaymentAction
|
18 |
{
|
19 |
public function toOptionArray()
|
20 |
{
|
21 |
return array(
|
22 |
array(
|
23 |
+
'value' => Mage_Authipayredirect_Model_Redirect::ACTION_AUTHORIZE,
|
24 |
'label' => Mage::helper('authipayredirect')->__('Defer Settlement')
|
25 |
),
|
26 |
array(
|
27 |
+
'value' => Mage_Authipayredirect_Model_Redirect::ACTION_AUTHORIZE_CAPTURE,
|
28 |
'label' => Mage::helper('authipayredirect')->__('Settle Immediately')
|
29 |
),
|
30 |
);
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/Model/Source/PaymentMode.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
public function toOptionArray()
|
20 |
{
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_Model_Source_PaymentMode
|
18 |
{
|
19 |
public function toOptionArray()
|
20 |
{
|
app/code/local/{VirtualPayer/AuthipayRedirect/controllers/Adminhtml/AuthipayRedirectController.php → Virtualpayer/Authipayredirect/controllers/Adminhtml/AuthipayredirectController.php}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
|
6 |
protected function _initAction() {
|
1 |
<?php
|
2 |
|
3 |
+
class Virtualpayer_Authipayredirect_Adminhtml_AuthipayredirectController extends Mage_Adminhtml_Controller_Action
|
4 |
{
|
5 |
|
6 |
protected function _initAction() {
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/controllers/RedirectController.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -10,11 +10,11 @@
|
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category VirtualPayer
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
/**
|
20 |
* Order instance
|
@@ -60,7 +60,7 @@ class VirtualPayer_AuthipayRedirect_RedirectController extends Mage_Core_Control
|
|
60 |
public function indexAction()
|
61 |
{
|
62 |
$session = Mage::getSingleton('checkout/session');
|
63 |
-
$session->
|
64 |
$session->unsQuoteId();
|
65 |
|
66 |
$this->loadLayout();
|
@@ -80,7 +80,7 @@ class VirtualPayer_AuthipayRedirect_RedirectController extends Mage_Core_Control
|
|
80 |
if ($session->getLastRealOrderId()) {
|
81 |
$order = Mage::getModel('sales/order')->loadByIncrementId($session->getLastRealOrderId());
|
82 |
if ($order->getId()) {
|
83 |
-
$session->addNotice($this->__('Your
|
84 |
$order->cancel()->save();
|
85 |
}
|
86 |
}
|
@@ -93,25 +93,23 @@ class VirtualPayer_AuthipayRedirect_RedirectController extends Mage_Core_Control
|
|
93 |
*/
|
94 |
public function successAction()
|
95 |
{
|
96 |
-
$session =
|
97 |
-
|
98 |
-
$this->_redirect('checkout/cart');
|
99 |
-
return;
|
100 |
-
}
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
-
|
110 |
-
$session->clear();
|
111 |
-
$this->loadLayout();
|
112 |
-
$this->_initLayoutMessages('checkout/session');
|
113 |
-
Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($lastOrderId)));
|
114 |
-
$this->renderLayout();
|
115 |
}
|
116 |
|
117 |
public function failureAction()
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
10 |
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category VirtualPayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_RedirectController extends Mage_Core_Controller_Front_Action
|
18 |
{
|
19 |
/**
|
20 |
* Order instance
|
60 |
public function indexAction()
|
61 |
{
|
62 |
$session = Mage::getSingleton('checkout/session');
|
63 |
+
$session->setAuthipayredirectRedirectQuoteId($session->getQuoteId());
|
64 |
$session->unsQuoteId();
|
65 |
|
66 |
$this->loadLayout();
|
80 |
if ($session->getLastRealOrderId()) {
|
81 |
$order = Mage::getModel('sales/order')->loadByIncrementId($session->getLastRealOrderId());
|
82 |
if ($order->getId()) {
|
83 |
+
$session->addNotice($this->__('Your Order has been declined, please try again or contact us'));
|
84 |
$order->cancel()->save();
|
85 |
}
|
86 |
}
|
93 |
*/
|
94 |
public function successAction()
|
95 |
{
|
96 |
+
$session = Mage::getSingleton('checkout/session');
|
97 |
+
$post = $this->getRequest()->getPost();
|
|
|
|
|
|
|
98 |
|
99 |
+
if($post){
|
100 |
+
if (isset($post['oid'])) {
|
101 |
+
if(Mage::getModel('authipayredirect/redirect')->processRedirectResponse($post)){
|
102 |
+
$session->setQuoteId($session->getAuthipayredirectRedirectQuoteId());
|
103 |
+
$this->getResponse()->setBody($this->getLayout()->createBlock('authipayredirect/redirect_success')->toHtml());
|
104 |
+
}else{
|
105 |
+
$this->getResponse()->setBody($this->getLayout()->createBlock('authipayredirect/redirect_error')->toHtml());
|
106 |
+
}
|
107 |
+
}
|
108 |
+
}else{
|
109 |
+
//set the quote as inactive after back from AIBMS
|
110 |
+
$session->getQuote()->setIsActive(false)->save();
|
111 |
+
$this->_redirect('checkout/onepage/success', array('_secure'=>true));
|
112 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
}
|
114 |
|
115 |
public function failureAction()
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/controllers/ResponseController.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -9,12 +9,12 @@
|
|
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
|
13 |
-
* @package
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
-
class
|
18 |
{
|
19 |
/**
|
20 |
* @return void
|
@@ -43,6 +43,33 @@ class VirtualPayer_AuthipayRedirect_ResponseController extends Mage_Core_Control
|
|
43 |
/**
|
44 |
* @return
|
45 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
public function failureAction(){
|
47 |
$session = Mage::getSingleton('checkout/session');
|
48 |
$lastQuoteId = $session->getLastQuoteId();
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Virtualpayer_Authipayredirect extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
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 Virtualpayer
|
13 |
+
* @package Virtualpayer_Authipayredirect
|
14 |
* @copyright Copyright (c) 2016 VirtualPayer
|
15 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
+
class Virtualpayer_Authipayredirect_ResponseController extends Mage_Core_Controller_Front_Action
|
18 |
{
|
19 |
/**
|
20 |
* @return void
|
43 |
/**
|
44 |
* @return
|
45 |
*/
|
46 |
+
public function successAction(){
|
47 |
+
$session = $this->getOnepage()->getCheckout();
|
48 |
+
if (!$session->getLastSuccessQuoteId()) {
|
49 |
+
$this->_redirect('checkout/cart');
|
50 |
+
return;
|
51 |
+
}
|
52 |
+
|
53 |
+
$lastQuoteId = $session->getLastQuoteId();
|
54 |
+
$lastOrderId = $session->getLastOrderId();
|
55 |
+
$lastRecurringProfiles = $session->getLastRecurringProfileIds();
|
56 |
+
if (!$lastQuoteId || (!$lastOrderId && empty($lastRecurringProfiles))) {
|
57 |
+
$this->_redirect('checkout/cart');
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
$session->clear();
|
62 |
+
$this->loadLayout();
|
63 |
+
$this->_initLayoutMessages('checkout/session');
|
64 |
+
Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($lastOrderId)));
|
65 |
+
$this->renderLayout();
|
66 |
+
var_dump($this->getLayout()->getUpdate()->getHandles());
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* @return
|
71 |
+
*/
|
72 |
+
|
73 |
public function failureAction(){
|
74 |
$session = Mage::getSingleton('checkout/session');
|
75 |
$lastQuoteId = $session->getLastQuoteId();
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/etc/config.xml
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
@@ -10,26 +10,26 @@
|
|
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
|
14 |
-
* @package
|
15 |
* @copyright Copyright (c) 2016 VirtualPayer
|
16 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
*/
|
18 |
-->
|
19 |
<config>
|
20 |
<modules>
|
21 |
-
<
|
22 |
-
<version>1.0.
|
23 |
-
</
|
24 |
</modules>
|
25 |
<global>
|
26 |
<models>
|
27 |
<authipayredirect>
|
28 |
-
<class>
|
29 |
<resourceModel>authipayredirect_mysql4</resourceModel>
|
30 |
</authipayredirect>
|
31 |
<authipayredirect_mysql4>
|
32 |
-
<class>
|
33 |
<entities>
|
34 |
<authipayredirect>
|
35 |
<table>authipayredirect</table>
|
@@ -39,19 +39,19 @@
|
|
39 |
</models>
|
40 |
<blocks>
|
41 |
<authipayredirect>
|
42 |
-
<class>
|
43 |
</authipayredirect>
|
44 |
</blocks>
|
45 |
<helpers>
|
46 |
<authipayredirect>
|
47 |
-
<class>
|
48 |
</authipayredirect>
|
49 |
</helpers>
|
50 |
<resources>
|
51 |
<authipayredirect_setup>
|
52 |
<setup>
|
53 |
-
<module>
|
54 |
-
<class>
|
55 |
</setup>
|
56 |
<connection>
|
57 |
<use>core_setup</use>
|
@@ -95,7 +95,7 @@
|
|
95 |
<authipayredirect>
|
96 |
<use>standard</use>
|
97 |
<args>
|
98 |
-
<module>
|
99 |
<frontName>authipayredirect</frontName>
|
100 |
</args>
|
101 |
</authipayredirect>
|
@@ -111,15 +111,6 @@
|
|
111 |
</frontend>
|
112 |
|
113 |
<adminhtml>
|
114 |
-
<!--<routers>
|
115 |
-
<authipayredirect>
|
116 |
-
<use>admin</use>
|
117 |
-
<args>
|
118 |
-
<module>VirtualPayer_AuthipayRedirect</module>
|
119 |
-
<frontName>authipayredirect</frontName>
|
120 |
-
</args>
|
121 |
-
</authipayredirect>
|
122 |
-
</routers>-->
|
123 |
<menu>
|
124 |
<sales module="sales">
|
125 |
<children>
|
@@ -162,7 +153,7 @@
|
|
162 |
<payment>
|
163 |
<authipayredirect>
|
164 |
<active>0</active>
|
165 |
-
<title>Authipay Payment Gateway</title>
|
166 |
<model>authipayredirect/redirect</model>
|
167 |
<order_status>processing</order_status>
|
168 |
<payment_action>authorize</payment_action>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* Virtualpayer_Authipayredirect extension
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
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 Virtualpayer
|
14 |
+
* @package Virtualpayer_Authipayredirect
|
15 |
* @copyright Copyright (c) 2016 VirtualPayer
|
16 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
*/
|
18 |
-->
|
19 |
<config>
|
20 |
<modules>
|
21 |
+
<Virtualpayer_Authipayredirect>
|
22 |
+
<version>1.0.1</version>
|
23 |
+
</Virtualpayer_Authipayredirect>
|
24 |
</modules>
|
25 |
<global>
|
26 |
<models>
|
27 |
<authipayredirect>
|
28 |
+
<class>Virtualpayer_Authipayredirect_Model</class>
|
29 |
<resourceModel>authipayredirect_mysql4</resourceModel>
|
30 |
</authipayredirect>
|
31 |
<authipayredirect_mysql4>
|
32 |
+
<class>Virtualpayer_Authipayredirect_Model_Mysql4</class>
|
33 |
<entities>
|
34 |
<authipayredirect>
|
35 |
<table>authipayredirect</table>
|
39 |
</models>
|
40 |
<blocks>
|
41 |
<authipayredirect>
|
42 |
+
<class>Virtualpayer_Authipayredirect_Block</class>
|
43 |
</authipayredirect>
|
44 |
</blocks>
|
45 |
<helpers>
|
46 |
<authipayredirect>
|
47 |
+
<class>Virtualpayer_Authipayredirect_Helper</class>
|
48 |
</authipayredirect>
|
49 |
</helpers>
|
50 |
<resources>
|
51 |
<authipayredirect_setup>
|
52 |
<setup>
|
53 |
+
<module>Virtualpayer_Authipayredirect</module>
|
54 |
+
<class>Virtualpayer_Authipayredirect_Model_Setup</class>
|
55 |
</setup>
|
56 |
<connection>
|
57 |
<use>core_setup</use>
|
95 |
<authipayredirect>
|
96 |
<use>standard</use>
|
97 |
<args>
|
98 |
+
<module>Virtualpayer_Authipayredirect</module>
|
99 |
<frontName>authipayredirect</frontName>
|
100 |
</args>
|
101 |
</authipayredirect>
|
111 |
</frontend>
|
112 |
|
113 |
<adminhtml>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
<menu>
|
115 |
<sales module="sales">
|
116 |
<children>
|
153 |
<payment>
|
154 |
<authipayredirect>
|
155 |
<active>0</active>
|
156 |
+
<title>Authipay Connect Payment Gateway</title>
|
157 |
<model>authipayredirect/redirect</model>
|
158 |
<order_status>processing</order_status>
|
159 |
<payment_action>authorize</payment_action>
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/etc/system.xml
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
@@ -10,8 +10,8 @@
|
|
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
|
14 |
-
* @package
|
15 |
* @copyright Copyright (c) 2016 VirtualPayer
|
16 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
*/
|
@@ -21,7 +21,7 @@
|
|
21 |
<payment>
|
22 |
<groups>
|
23 |
<authipayredirect translate="label" module="paygate">
|
24 |
-
<label>Authipay Payment Gateway</label>
|
25 |
<sort_order>670</sort_order>
|
26 |
<show_in_default>1</show_in_default>
|
27 |
<show_in_website>1</show_in_website>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* Virtualpayer_Authipayredirect extension
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
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 Virtualpayer
|
14 |
+
* @package Virtualpayer_Authipayredirect
|
15 |
* @copyright Copyright (c) 2016 VirtualPayer
|
16 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
*/
|
21 |
<payment>
|
22 |
<groups>
|
23 |
<authipayredirect translate="label" module="paygate">
|
24 |
+
<label>Authipay Connect Payment Gateway</label>
|
25 |
<sort_order>670</sort_order>
|
26 |
<show_in_default>1</show_in_default>
|
27 |
<show_in_website>1</show_in_website>
|
app/code/local/{VirtualPayer/AuthipayRedirect → Virtualpayer/Authipayredirect}/sql/authipayredirect_setup/mysql4-install-0.1.0.php
RENAMED
File without changes
|
app/design/frontend/base/default/layout/authipayredirect.xml
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
<layout version="0.1.0">
|
2 |
<authipayredirect_redirect_success>
|
3 |
<reference name="root">
|
1 |
+
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
<authipayredirect_redirect_success>
|
4 |
<reference name="root">
|
app/design/frontend/base/default/template/authipayredirect/redirect/form.phtml
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
<?php $redirect = Mage::getModel('authipayredirect/redirect'); ?>
|
8 |
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
9 |
<li>
|
10 |
-
<?php echo $this->__('You will be redirected to Authipay secured hosted
|
11 |
</li>
|
12 |
</ul>
|
13 |
</fieldset>
|
7 |
<?php $redirect = Mage::getModel('authipayredirect/redirect'); ?>
|
8 |
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
9 |
<li>
|
10 |
+
<?php echo $this->__('You will be redirected to our payment processor Authipay secured hosted payment page.') ?>
|
11 |
</li>
|
12 |
</ul>
|
13 |
</fieldset>
|
app/etc/modules/{VirtualPayer_AuthipayRedirect.xml → Virtualpayer_Authipayredirect.xml}
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
*
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
@@ -10,20 +10,20 @@
|
|
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
|
14 |
-
* @package
|
15 |
* @copyright Copyright (c) 2016 VirtualPayer
|
16 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
*/
|
18 |
-->
|
19 |
<config>
|
20 |
<modules>
|
21 |
-
<
|
22 |
<active>true</active>
|
23 |
<codePool>local</codePool>
|
24 |
<depends>
|
25 |
<Mage_Payment />
|
26 |
</depends>
|
27 |
-
</
|
28 |
</modules>
|
29 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* Virtualpayer_Authipayredirect extension
|
5 |
*
|
6 |
* NOTICE OF LICENSE
|
7 |
*
|
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 Virtualpayer
|
14 |
+
* @package Virtualpayer_Authipayredirect
|
15 |
* @copyright Copyright (c) 2016 VirtualPayer
|
16 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
17 |
*/
|
18 |
-->
|
19 |
<config>
|
20 |
<modules>
|
21 |
+
<Virtualpayer_Authipayredirect>
|
22 |
<active>true</active>
|
23 |
<codePool>local</codePool>
|
24 |
<depends>
|
25 |
<Mage_Payment />
|
26 |
</depends>
|
27 |
+
</Virtualpayer_Authipayredirect>
|
28 |
</modules>
|
29 |
</config>
|
package.xml
CHANGED
@@ -1,19 +1,21 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>VirtualPayer_AuthipayRedirect</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
|
12 |
-
|
|
|
|
|
13 |
<authors><author><name>VirtualPayer</name><user>VirtualPayer</user><email>support@virtualpayer.com</email></author></authors>
|
14 |
-
<date>2016-
|
15 |
-
<time>13:
|
16 |
-
<contents><target name="magelocal"><dir name="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>VirtualPayer_AuthipayRedirect</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Customer can now redirect to Magento success and failure pages</summary>
|
10 |
+
<description>The customer will now be redirected to Success or Fail page based on the status of the transaction after processing with Authipay payment gateway.
|
11 |
+

|
12 |
+
Camel casing of module name has been changed.
|
13 |
+
</description>
|
14 |
+
<notes>Camel casing changed and Controller functions amended.</notes>
|
15 |
<authors><author><name>VirtualPayer</name><user>VirtualPayer</user><email>support@virtualpayer.com</email></author></authors>
|
16 |
+
<date>2016-05-28</date>
|
17 |
+
<time>13:59:50</time>
|
18 |
+
<contents><target name="magelocal"><dir name="Virtualpayer"><dir name="Authipayredirect"><dir name="Block"><dir name="Adminhtml"><dir name="Authipayredirect"><file name="Grid.php" hash="b352e6e3418493244419e5b8ba39ff85"/></dir><file name="Authipayredirect.php" hash="0e7f9177dd9b7a5ff724343dc96071d7"/></dir><dir name="Redirect"><file name="Error.php" hash="97bf406912bf5c25f6fed639e6d96bb2"/><file name="Form.php" hash="13baae73baa58f9e94d3557fac7ee4ec"/><file name="Redirect.php" hash="54c29f3279077c7997ce19504c48506e"/><file name="Success.php" hash="13e7fe9533c677a91f9ad01d992152a9"/></dir></dir><dir name="Helper"><file name="Data.php" hash="16291c3773c90fc234fa47958fda2a12"/></dir><dir name="Model"><file name="Authipayredirect.php" hash="7b3ac780e93d010905edabec7e5b2957"/><dir name="Mysql4"><dir name="Authipayredirect"><file name="Collection.php" hash="826b7de42941e77af69c4b86c24478a4"/></dir><file name="Authipayredirect.php" hash="a5b97d0d8a68b77cad93991ffa6abf12"/></dir><file name="Redirect.php" hash="2076fec04d03cb85a2d90848357ab1e9"/><file name="Setup.php" hash="15c3f26481e914baa91f4c4b7ebaaafc"/><dir name="Source"><file name="Cctype.php" hash="6f0b8510c6772c9ce6b54dba2d43170d"/><file name="Currency.php" hash="9336c06b496d056abab16247b351ff94"/><file name="OrderStatus.php" hash="1c1b72da6ad32ccb707e9a7ac04cfd45"/><file name="PaymentAction.php" hash="ca7924cdf0d123874409114303d85382"/><file name="PaymentMode.php" hash="d45c9ba62a440faac614436a7373b07a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="AuthipayredirectController.php" hash="073fabe52285aae2e4027ec2532a90a4"/></dir><file name="RedirectController.php" hash="6a56625e078f9abb51d25eef360ef4c8"/><file name="ResponseController.php" hash="a48ac96eb9783a595e6b98fe8afb78a9"/></dir><dir name="etc"><file name="config.xml" hash="216d4c808a33c97f68a6093ac5df4bc3"/><file name="system.xml" hash="cfc68348d180cd4961af8a68268cbf15"/></dir><dir name="sql"><dir name="authipayredirect_setup"><file name="mysql4-install-0.1.0.php" hash="e28cb69776d9cd431921154be6b6ddf9"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="authipayredirect.xml" hash="bc2f12134d8bd247c2349a9a091613f5"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="authipayredirect.xml" hash="2f1f2c141f8dc41ba659261dfc2837e2"/></dir><dir name="template"><dir name="authipayredirect"><dir name="redirect"><file name="failure.phtml" hash="15e0232fde04cc908a30272c6e25f44d"/><file name="form.phtml" hash="07263dcd603fd1a6de4feefe950b2387"/><file name="success.phtml" hash="90dfc664a6fd8cd021778c10d598c461"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Virtualpayer_Authipayredirect.xml" hash="28b7878d59f196d156f792a519087e1c"/></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|