Version Notes
Download this release
Release Info
Developer | Kassim Belghait |
Extension | Allopass_Hipay |
Version | 1.7.0 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.7.0
- app/code/community/Allopass/Hipay/Block/Adminhtml/Field/MappingCategory.php +137 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/Field/MappingShippingMethod.php +155 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/Field/Renderer/Label.php +18 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/Field/Renderer/List.php +44 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/Expanded.php +23 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/Information.php +34 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/Notice.php +43 -26
- app/code/community/Allopass/Hipay/Block/Form/Abstract.php +9 -0
- app/code/community/Allopass/Hipay/Helper/Collection.php +308 -0
- app/code/community/Allopass/Hipay/Helper/Data.php +345 -69
- app/code/community/Allopass/Hipay/Model/Config.php +308 -285
- app/code/community/Allopass/Hipay/Model/Field/CategoryMapping.php +5 -0
- app/code/community/Allopass/Hipay/Model/Field/MappingShippingMethod.php +27 -0
- app/code/community/Allopass/Hipay/Model/Method/Abstract.php +155 -98
- app/code/community/Allopass/Hipay/Model/Method/AbstractOrder.php +86 -0
- app/code/community/Allopass/Hipay/Model/Method/Astropay.php +51 -0
- app/code/community/Allopass/Hipay/Model/Method/Aura.php +8 -0
- app/code/community/Allopass/Hipay/Model/Method/Banamex.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Banco.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Bbva.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Boleto.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Bradesco.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Caixa.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Cc.php +30 -6
- app/code/community/Allopass/Hipay/Model/Method/Dexia.php +1 -1
- app/code/community/Allopass/Hipay/Model/Method/Discover.php +5 -0
- app/code/community/Allopass/Hipay/Model/Method/Facilipay3x.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Facilipay4x.php +8 -0
- app/code/community/Allopass/Hipay/Model/Method/Itau.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Oxxo.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/PaypalApi.php +1 -81
- app/code/community/Allopass/Hipay/Model/Method/PostfinancecardApi.php +4 -87
- app/code/community/Allopass/Hipay/Model/Method/PostfinanceefinanceApi.php +1 -84
- app/code/community/Allopass/Hipay/Model/Method/Przelewy24Api.php +1 -84
- app/code/community/Allopass/Hipay/Model/Method/Santander.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/Santandercash.php +7 -0
- app/code/community/Allopass/Hipay/Model/Method/SisalApi.php +1 -80
- app/code/community/Allopass/Hipay/Model/Method/SofortApi.php +1 -83
- app/code/community/Allopass/Hipay/Model/Method/WebmoneyApi.php +2 -84
- app/code/community/Allopass/Hipay/Model/Method/YandexApi.php +2 -84
- app/code/community/Allopass/Hipay/Model/Observer.php +87 -37
- app/code/community/Allopass/Hipay/Model/Source/Product/Facilipay3x.php +15 -0
- app/code/community/Allopass/Hipay/Model/Source/Product/Facilipay4x.php +15 -0
- app/code/community/Allopass/Hipay/Model/SplitPayment.php +23 -23
- app/code/community/Allopass/Hipay/controllers/Adminhtml/PaymentController.php +94 -114
- app/code/community/Allopass/Hipay/controllers/AuraController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/BanamexController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/BancoController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/BbvaController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/BoletoController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/BradescoController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/CaixaController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/DiscoverController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/Facilipay3xController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/Facilipay4xController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/ItauController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/OxxoController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/SantanderCashController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/SantanderController.php +8 -0
- app/code/community/Allopass/Hipay/etc/config.xml +491 -20
- app/code/community/Allopass/Hipay/etc/system.xml +4769 -232
- app/design/adminhtml/default/default/layout/hipay.xml +3 -0
- app/design/adminhtml/default/default/template/hipay/mapping.phtml +130 -0
- app/design/adminhtml/default/default/template/hipay/system/config/form/field/information.phtml +13 -0
- app/design/adminhtml/default/default/template/hipay/system/config/form/field/notice.phtml +2 -8
- app/design/frontend/base/default/template/hipay/form/cc.phtml +41 -2
- app/locale/en_US/Allopass_Hipay.csv +2 -0
- app/locale/fr_FR/Allopass_Hipay.csv +4 -2
- package.xml +1 -1
- skin/adminhtml/base/default/hipay/css/hipay.css +50 -0
app/code/community/Allopass/Hipay/Block/Adminhtml/Field/MappingCategory.php
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Block_Adminhtml_Field_MappingCategory extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* Renderer for List Category
|
7 |
+
*
|
8 |
+
* @var Allopass_Hipay_Block_Adminhtml_Field_Renderer_List
|
9 |
+
*/
|
10 |
+
protected $_listRenderer;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Renderer for Label
|
14 |
+
*
|
15 |
+
* @var Allopass_Hipay_Block_Adminhtml_Field_Renderer_Label
|
16 |
+
*/
|
17 |
+
protected $_labelRenderer;
|
18 |
+
|
19 |
+
/**
|
20 |
+
*
|
21 |
+
* @inheritdoc
|
22 |
+
*/
|
23 |
+
public function getArrayRows()
|
24 |
+
{
|
25 |
+
$options = array();
|
26 |
+
$categories = Mage::helper('hipay')->getMagentoCategories();
|
27 |
+
$mappingSaved = $this->getElement()->getValue();
|
28 |
+
|
29 |
+
// Add All Magento categories in Array Rows
|
30 |
+
if (!array_key_exists($mappingSaved[key($mappingSaved)], 'magento_code')) {
|
31 |
+
if (!empty($categories) && is_array($categories)) {
|
32 |
+
foreach ($categories as $code => $label) {
|
33 |
+
$mapping = $this->_getHipayCategoryMapping($code);
|
34 |
+
$options[$code] = array(
|
35 |
+
'magento_code' => $code,
|
36 |
+
'magento_label' => $label,
|
37 |
+
'hipay_category' => $this->_getHipayCategoryMapping($code),
|
38 |
+
'class' => empty($mapping) ? 'warning-mapping' : ''
|
39 |
+
);
|
40 |
+
}
|
41 |
+
}
|
42 |
+
} else {
|
43 |
+
$options = $mappingSaved;
|
44 |
+
}
|
45 |
+
|
46 |
+
$this->getElement()->setValue($options);
|
47 |
+
return parent::getArrayRows();
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Prepare to render for Mapping category
|
53 |
+
*/
|
54 |
+
public function _prepareToRender()
|
55 |
+
{
|
56 |
+
$this->_addAfter = false;
|
57 |
+
$this->setTemplate('hipay/mapping.phtml');
|
58 |
+
$this->addColumn(
|
59 |
+
'magento_category',
|
60 |
+
array(
|
61 |
+
'label' => Mage::helper('hipay')->__('Magento category'),
|
62 |
+
'renderer' => $this->_getLabelRenderer()
|
63 |
+
)
|
64 |
+
);
|
65 |
+
|
66 |
+
$this->addColumn(
|
67 |
+
'hipay_category',
|
68 |
+
array(
|
69 |
+
'label' => Mage::helper('hipay')->__('Hipay category'),
|
70 |
+
'renderer' => $this->_getListOptionsRenderer()
|
71 |
+
)
|
72 |
+
);
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Get Label Renderer ( No input select )
|
78 |
+
*
|
79 |
+
* @return Allopass_Hipay_Block_Adminhtml_Field_Renderer_Label
|
80 |
+
*/
|
81 |
+
public function _getLabelRenderer()
|
82 |
+
{
|
83 |
+
if (!$this->_labelRenderer) {
|
84 |
+
$this->_labelRenderer = $this->getLayout()->createBlock('hipay/adminhtml_field_renderer_label', '');
|
85 |
+
}
|
86 |
+
return $this->_labelRenderer;
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Get List Renderer
|
91 |
+
*
|
92 |
+
* @return Allopass_Hipay_Block_Adminhtml_Field_Renderer_Label
|
93 |
+
*/
|
94 |
+
public function _getListOptionsRenderer()
|
95 |
+
{
|
96 |
+
$options = Mage::helper('hipay/collection')->getItemsCategory();
|
97 |
+
if (!$this->_listRenderer) {
|
98 |
+
$this->_listRenderer = $this->getLayout()->createBlock('hipay/adminhtml_field_renderer_list',
|
99 |
+
'',
|
100 |
+
array('is_render_to_js_template' => true));
|
101 |
+
$this->_listRenderer->setListOptions($options);
|
102 |
+
}
|
103 |
+
return $this->_listRenderer;
|
104 |
+
}
|
105 |
+
|
106 |
+
/**
|
107 |
+
* Extract hipay category from Mapping
|
108 |
+
*
|
109 |
+
* @param $codeMagentoCategory
|
110 |
+
* @return null|int
|
111 |
+
*/
|
112 |
+
protected function _getHipayCategoryMapping($codeMagentoCategory)
|
113 |
+
{
|
114 |
+
$mappingSaved = $this->getElement()->getValue();
|
115 |
+
$id_hipay_category = null;
|
116 |
+
foreach ($mappingSaved as $mapping) {
|
117 |
+
if ($mapping['magento_category'] == $codeMagentoCategory) {
|
118 |
+
$id_hipay_category = $mapping['hipay_category'];
|
119 |
+
break;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
return $id_hipay_category;
|
123 |
+
}
|
124 |
+
|
125 |
+
|
126 |
+
/**
|
127 |
+
* @inheritdoc
|
128 |
+
*/
|
129 |
+
protected function _prepareArrayRow(Varien_Object $row)
|
130 |
+
{
|
131 |
+
$row->setData(
|
132 |
+
'option_extra_attr_' . $this->_getListOptionsRenderer()
|
133 |
+
->calcOptionHash($row->getData('hipay_category')),
|
134 |
+
'selected="selected"'
|
135 |
+
);
|
136 |
+
}
|
137 |
+
}
|
app/code/community/Allopass/Hipay/Block/Adminhtml/Field/MappingShippingMethod.php
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Block_Adminhtml_Field_MappingShippingMethod extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* Renderer for List Category
|
7 |
+
*
|
8 |
+
* @var Allopass_Hipay_Block_Adminhtml_Field_Renderer_List
|
9 |
+
*/
|
10 |
+
protected $_listRenderer;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Renderer for Label
|
14 |
+
*
|
15 |
+
* @var Allopass_Hipay_Block_Adminhtml_Field_Renderer_Label
|
16 |
+
*/
|
17 |
+
protected $_labelRenderer;
|
18 |
+
|
19 |
+
/**
|
20 |
+
*
|
21 |
+
* @inheritdoc
|
22 |
+
*/
|
23 |
+
public function getArrayRows()
|
24 |
+
{
|
25 |
+
$options = array();
|
26 |
+
$shippingMethod = Mage::helper('hipay')->getMagentoShippingMethods();
|
27 |
+
$mappingSaved = $this->getElement()->getValue();
|
28 |
+
|
29 |
+
// Add All Magento categories in Array Rows
|
30 |
+
if (!array_key_exists($mappingSaved[key($mappingSaved)], 'magento_code')) {
|
31 |
+
if (!empty($shippingMethod) && is_array($shippingMethod)) {
|
32 |
+
foreach ($shippingMethod as $code => $label) {
|
33 |
+
$mapping = $this->_getHipayDeliveryMapping($code);
|
34 |
+
$options[$code] =
|
35 |
+
array(
|
36 |
+
'magento_code' => $code,
|
37 |
+
'magento_label' => $label,
|
38 |
+
'hipay_delivery_method' => $mapping['hipay_delivery_method'],
|
39 |
+
'delay_preparation' => $mapping['delay_preparation'],
|
40 |
+
'delay_delivery' => $mapping['delay_delivery'],
|
41 |
+
'class' => empty($mapping) || (empty($mapping['hipay_delivery_method'])
|
42 |
+
|| empty($mapping['delay_preparation']) || empty($mapping['delay_delivery']) ) ? 'warning-mapping' : ''
|
43 |
+
);
|
44 |
+
}
|
45 |
+
}
|
46 |
+
} else {
|
47 |
+
$options = $mappingSaved;
|
48 |
+
}
|
49 |
+
|
50 |
+
$this->getElement()->setValue($options);
|
51 |
+
return parent::getArrayRows();
|
52 |
+
}
|
53 |
+
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Prepare to render for Shipping Method Mapping
|
57 |
+
*/
|
58 |
+
public function _prepareToRender()
|
59 |
+
{
|
60 |
+
$this->_addAfter = false;
|
61 |
+
$this->setTemplate('hipay/mapping.phtml');
|
62 |
+
$this->addColumn(
|
63 |
+
'magento_shipping_method',
|
64 |
+
array(
|
65 |
+
'label' => Mage::helper('hipay')->__('Magento shipping method'),
|
66 |
+
'style' => 'width: 400px;',
|
67 |
+
'renderer' => $this->_getLabelRenderer()
|
68 |
+
)
|
69 |
+
);
|
70 |
+
|
71 |
+
$this->addColumn(
|
72 |
+
'hipay_delivery_method',
|
73 |
+
array(
|
74 |
+
'label' => Mage::helper('hipay')->__('Hipay delivery method'),
|
75 |
+
'renderer' => $this->_getListOptionsRenderer()
|
76 |
+
)
|
77 |
+
);
|
78 |
+
|
79 |
+
$this->addColumn(
|
80 |
+
'delay_preparation',
|
81 |
+
array(
|
82 |
+
'label' => Mage::helper('hipay')->__('Order preparation delay'),
|
83 |
+
'style' => 'width: 50px;',
|
84 |
+
)
|
85 |
+
);
|
86 |
+
$this->addColumn(
|
87 |
+
'delay_delivery',
|
88 |
+
array(
|
89 |
+
'label' => Mage::helper('hipay')->__('Delivery delay'),
|
90 |
+
'style' => 'width: 50px;',
|
91 |
+
)
|
92 |
+
);
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Get Label Renderer ( No input select )
|
97 |
+
*
|
98 |
+
* @return Allopass_Hipay_Block_Adminhtml_Field_Renderer_Label
|
99 |
+
*/
|
100 |
+
public function _getLabelRenderer()
|
101 |
+
{
|
102 |
+
if (!$this->_labelRenderer) {
|
103 |
+
$this->_labelRenderer = $this->getLayout()->createBlock('hipay/adminhtml_field_renderer_label', '');
|
104 |
+
}
|
105 |
+
return $this->_labelRenderer;
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Get List Renderer
|
110 |
+
*
|
111 |
+
* @return Allopass_Hipay_Block_Adminhtml_Field_Renderer_Label
|
112 |
+
*/
|
113 |
+
public function _getListOptionsRenderer()
|
114 |
+
{
|
115 |
+
if (!$this->_listRenderer) {
|
116 |
+
$options = Mage::helper('hipay/collection')->getItemsDelivery();
|
117 |
+
$this->_listRenderer = $this->getLayout()->createBlock('hipay/adminhtml_field_renderer_list',
|
118 |
+
'',
|
119 |
+
array('is_render_to_js_template' => true));
|
120 |
+
$this->_listRenderer->setListOptions($options);
|
121 |
+
}
|
122 |
+
return $this->_listRenderer;
|
123 |
+
}
|
124 |
+
|
125 |
+
/**
|
126 |
+
* Extract hipay delivery method from Mapping
|
127 |
+
*
|
128 |
+
* @param $codeMagentoCategory
|
129 |
+
* @return null|int
|
130 |
+
*/
|
131 |
+
protected function _getHipayDeliveryMapping($codeMagentoCategory)
|
132 |
+
{
|
133 |
+
$mappingSaved = $this->getElement()->getValue();
|
134 |
+
foreach ($mappingSaved as $mapping) {
|
135 |
+
if ($mapping['magento_shipping_method'] == $codeMagentoCategory) {
|
136 |
+
return $mapping;
|
137 |
+
break;
|
138 |
+
}
|
139 |
+
}
|
140 |
+
return null;
|
141 |
+
}
|
142 |
+
|
143 |
+
|
144 |
+
/**
|
145 |
+
* @inheritdoc
|
146 |
+
*/
|
147 |
+
protected function _prepareArrayRow(Varien_Object $row)
|
148 |
+
{
|
149 |
+
$row->setData(
|
150 |
+
'option_extra_attr_' . $this->_getListOptionsRenderer()
|
151 |
+
->calcOptionHash($row->getData('hipay_delivery_method')),
|
152 |
+
'selected="selected"'
|
153 |
+
);
|
154 |
+
}
|
155 |
+
}
|
app/code/community/Allopass/Hipay/Block/Adminhtml/Field/Renderer/Label.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Block_Adminhtml_Field_Renderer_Label extends Mage_Core_Block_Text
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* Simple block to display just label with hidden input
|
7 |
+
*
|
8 |
+
* @return string
|
9 |
+
*/
|
10 |
+
protected function _toHtml()
|
11 |
+
{
|
12 |
+
$html = '<div style="width: 300px;" class="#{class}">';
|
13 |
+
$html .= '<input type="text" value="#{magento_code}" name="' . $this->inputName . '" style="visibility: hidden;width: 0px ;height: 0px">';
|
14 |
+
$html .= '#{magento_label}';
|
15 |
+
$html .= '</div>';
|
16 |
+
return $html;
|
17 |
+
}
|
18 |
+
}
|
app/code/community/Allopass/Hipay/Block/Adminhtml/Field/Renderer/List.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Block_Adminhtml_Field_Renderer_List extends Mage_Core_Block_Html_Select
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* Original data source
|
7 |
+
*
|
8 |
+
* @var array
|
9 |
+
*/
|
10 |
+
protected $_listOptions;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Return block List with prepared select
|
14 |
+
*
|
15 |
+
* @return string
|
16 |
+
*/
|
17 |
+
public function _toHtml()
|
18 |
+
{
|
19 |
+
$this->setName($this->inputName);
|
20 |
+
|
21 |
+
switch ($this->column_name){
|
22 |
+
case "hipay_category":
|
23 |
+
$defaultValue = Mage::helper('hipay')->__('- Please select one category - ');
|
24 |
+
break;
|
25 |
+
case "hipay_delivery_method":
|
26 |
+
$defaultValue = Mage::helper('hipay')->__('- Please select one delivery method - ');
|
27 |
+
break;
|
28 |
+
}
|
29 |
+
$this->addOption('', $defaultValue);
|
30 |
+
foreach ($this->_listOptions as $key => $value) {
|
31 |
+
$this->addOption($key, $value);
|
32 |
+
}
|
33 |
+
return parent::_toHtml();
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Init initial list of options
|
38 |
+
*
|
39 |
+
* @param $options
|
40 |
+
*/
|
41 |
+
public function setListOptions($options){
|
42 |
+
$this->_listOptions = $options;
|
43 |
+
}
|
44 |
+
}
|
app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/Expanded.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Class Allopass_Hipay_Block_Adminhtml_System_Config_Form_Field_Expanded
|
4 |
+
*/
|
5 |
+
class Allopass_Hipay_Block_Adminhtml_System_Config_Form_Field_Expanded
|
6 |
+
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
7 |
+
{
|
8 |
+
/**
|
9 |
+
* Return collapse state
|
10 |
+
*
|
11 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
12 |
+
* @return bool
|
13 |
+
*/
|
14 |
+
protected function _getCollapseState($element)
|
15 |
+
{
|
16 |
+
$extra = Mage::getSingleton('admin/session')->getUser()->getExtra();
|
17 |
+
if (isset($extra['configState'][$element->getId()])) {
|
18 |
+
return $extra['configState'][$element->getId()];
|
19 |
+
}
|
20 |
+
|
21 |
+
return true;
|
22 |
+
}
|
23 |
+
}
|
app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/Information.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Allopass_Hipay_Block_Adminhtml_System_Config_Form_Field_Notice
|
5 |
+
*/
|
6 |
+
class Allopass_Hipay_Block_Adminhtml_System_Config_Form_Field_Information extends Mage_Adminhtml_Block_System_Config_Form_Field
|
7 |
+
{
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Check if columns are defined, set template
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
public function __construct()
|
14 |
+
{
|
15 |
+
parent::__construct();
|
16 |
+
|
17 |
+
if (!$this->getTemplate()) {
|
18 |
+
$this->setTemplate('hipay/system/config/form/field/information.phtml');
|
19 |
+
}
|
20 |
+
}
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Custom field
|
24 |
+
*
|
25 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
26 |
+
* @return string
|
27 |
+
*/
|
28 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
29 |
+
{
|
30 |
+
$element->setInformationsHipay($element->getData('tooltip'));
|
31 |
+
$this->setElement($element);
|
32 |
+
return $this->_toHtml();
|
33 |
+
}
|
34 |
+
}
|
app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/Notice.php
CHANGED
@@ -5,35 +5,52 @@
|
|
5 |
*/
|
6 |
class Allopass_Hipay_Block_Adminhtml_System_Config_Form_Field_Notice extends Mage_Adminhtml_Block_System_Config_Form_Field
|
7 |
{
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Check if columns are defined, set template
|
11 |
-
*
|
12 |
-
*/
|
13 |
-
public function __construct()
|
14 |
-
{
|
15 |
-
parent::__construct();
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
{
|
30 |
-
$notices = array();
|
31 |
-
if (!Mage::getStoreConfigFlag('hipay/hipay_basket/activate_basket', Mage::app()->getStore())) {
|
32 |
-
$notices[] = Mage::helper('adminhtml')->__('You have to activate and configuring the support of basket before activate the payment method klarna.');
|
33 |
}
|
34 |
|
35 |
$element->setNoticesHipay($notices);
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
}
|
5 |
*/
|
6 |
class Allopass_Hipay_Block_Adminhtml_System_Config_Form_Field_Notice extends Mage_Adminhtml_Block_System_Config_Form_Field
|
7 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
+
/**
|
10 |
+
* Set template
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
public function __construct()
|
14 |
+
{
|
15 |
+
parent::__construct();
|
16 |
+
if (!$this->getTemplate()) {
|
17 |
+
$this->setTemplate('hipay/system/config/form/field/notice.phtml');
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Custom field
|
23 |
+
*
|
24 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
25 |
+
* @return string
|
26 |
+
*/
|
27 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
28 |
+
{
|
29 |
+
$notices = array();
|
30 |
+
$commonWarning = Mage::helper('hipay')->__('All mappings are not filled in, please check the information you entered.
|
31 |
+
If the mappings are not filled in, then Oney transactions will be denied.');
|
32 |
+
|
33 |
+
// Notice for block Mapping shipping method
|
34 |
+
if (preg_match('/mapping_shipping_method/', $element->getId())){
|
35 |
+
$nbMappingMissing = Mage::helper('hipay')->checkMappingShippingMethod();
|
36 |
+
if ($nbMappingMissing > 0) {
|
37 |
+
$notices[] = $commonWarning . '<div class="nb-mapping-missing">
|
38 |
+
' . $nbMappingMissing . ' '. Mage::helper('hipay')->__('mappings delivery method are actually missing.') .'</div>';
|
39 |
+
|
40 |
+
}
|
41 |
+
}
|
42 |
|
43 |
+
// Notice for block Category
|
44 |
+
if (preg_match('/mapping_category/', $element->getId())){
|
45 |
+
$nbMappingMissing = Mage::helper('hipay')->checkMappingCategoryMethod();
|
46 |
+
if ($nbMappingMissing > 0) {
|
47 |
+
$notices[] = $commonWarning . '<div class="nb-mapping-missing">
|
48 |
+
' . $nbMappingMissing . ' '. Mage::helper('hipay')->__('mappings categories are actually missing.') . '</div>';
|
49 |
+
}
|
|
|
|
|
|
|
|
|
50 |
}
|
51 |
|
52 |
$element->setNoticesHipay($notices);
|
53 |
+
$this->setElement($element);
|
54 |
+
return $this->_toHtml();
|
55 |
+
}
|
56 |
}
|
app/code/community/Allopass/Hipay/Block/Form/Abstract.php
CHANGED
@@ -161,4 +161,13 @@ abstract class Allopass_Hipay_Block_Form_Abstract extends Mage_Payment_Block_For
|
|
161 |
));
|
162 |
return parent::_toHtml();
|
163 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
}
|
161 |
));
|
162 |
return parent::_toHtml();
|
163 |
}
|
164 |
+
|
165 |
+
/**
|
166 |
+
* Return the type for national identification number to BLOCK
|
167 |
+
* @return string
|
168 |
+
*/
|
169 |
+
public function getTypeNationalIdentification()
|
170 |
+
{
|
171 |
+
return $this->getMethod()->getTypeNationalIdentification();
|
172 |
+
}
|
173 |
}
|
app/code/community/Allopass/Hipay/Helper/Collection.php
ADDED
@@ -0,0 +1,308 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Helper_Collection extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
*
|
7 |
+
* @var string $_JSON Json collection
|
8 |
+
*/
|
9 |
+
private static $_JSON_CATEGORY = <<<EOT
|
10 |
+
|
11 |
+
[
|
12 |
+
{
|
13 |
+
"categoryCode":1,
|
14 |
+
"categoryName":"Home & Gardening"
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"categoryCode":2,
|
18 |
+
"categoryName":"Clothing & Accessories"
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"categoryCode":3,
|
22 |
+
"categoryName":"Home appliances"
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"categoryCode":4,
|
26 |
+
"categoryName":"Sports & Recreations"
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"categoryCode":5,
|
30 |
+
"categoryName":"Babies & Children"
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"categoryCode":6,
|
34 |
+
"categoryName":"Hi-Fi, Photo & Video equipment"
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"categoryCode":7,
|
38 |
+
"categoryName":"IT equipment"
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"categoryCode":8,
|
42 |
+
"categoryName":"Phone & Internet services"
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"categoryCode":9,
|
46 |
+
"categoryName":"Physical goods : Books, Media, Music & Movies"
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"categoryCode":10,
|
50 |
+
"categoryName":"Digital goods : Books, Media, Music & Movies"
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"categoryCode":11,
|
54 |
+
"categoryName":"Consoles & Video games"
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"categoryCode":12,
|
58 |
+
"categoryName":"Gifts & Flowers"
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"categoryCode":13,
|
62 |
+
"categoryName":"Health & Beauty"
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"categoryCode":14,
|
66 |
+
"categoryName":"Car & Motorcycle"
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"categoryCode":15,
|
70 |
+
"categoryName":"Traveling"
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"categoryCode":16,
|
74 |
+
"categoryName":"Food & Gastronomy"
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"categoryCode":17,
|
78 |
+
"categoryName":"Auctions & Group buying"
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"categoryCode":18,
|
82 |
+
"categoryName":"Services to professionals"
|
83 |
+
},
|
84 |
+
{
|
85 |
+
"categoryCode":19,
|
86 |
+
"categoryName":"Services to individuals"
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"categoryCode":20,
|
90 |
+
"categoryName":"Culture & Entertainment"
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"categoryCode":21,
|
94 |
+
"categoryName":"Games (digital goods)"
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"categoryCode":22,
|
98 |
+
"categoryName":"Games (physical goods)"
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"categoryCode":23,
|
102 |
+
"categoryName":"Ticketing"
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"categoryCode":24,
|
106 |
+
"categoryName":"Opticians, Opticians Goods and Eyeglasses"
|
107 |
+
}
|
108 |
+
]
|
109 |
+
|
110 |
+
EOT;
|
111 |
+
|
112 |
+
/**
|
113 |
+
* JSON OBJECT for delivery method
|
114 |
+
*
|
115 |
+
* @var string $_JSON Json collection
|
116 |
+
*/
|
117 |
+
private static $_JSON_DELIVERY = <<<EOT
|
118 |
+
|
119 |
+
[
|
120 |
+
{
|
121 |
+
"code":1,
|
122 |
+
"mode":"STORE",
|
123 |
+
"shipping":"STANDARD"
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"code":2,
|
127 |
+
"mode":"STORE",
|
128 |
+
"shipping":"EXPRESS"
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"code":3,
|
132 |
+
"mode":"STORE",
|
133 |
+
"shipping":"PRIORITY24H"
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"code":4,
|
137 |
+
"mode":"STORE",
|
138 |
+
"shipping":"PRIORITY2H"
|
139 |
+
},
|
140 |
+
{
|
141 |
+
"code":5,
|
142 |
+
"mode":"STORE",
|
143 |
+
"shipping":"PRIORITY1H"
|
144 |
+
},
|
145 |
+
{
|
146 |
+
"code":6,
|
147 |
+
"mode":"STORE",
|
148 |
+
"shipping":"INSTANT"
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"code":7,
|
152 |
+
"mode":"CARRIER",
|
153 |
+
"shipping":"STANDARD"
|
154 |
+
},
|
155 |
+
{
|
156 |
+
"code":8,
|
157 |
+
"mode":"CARRIER",
|
158 |
+
"shipping":"EXPRESS"
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"code":9,
|
162 |
+
"mode":"CARRIER",
|
163 |
+
"shipping":"PRIORITY24H"
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"code":10,
|
167 |
+
"mode":"CARRIER",
|
168 |
+
"shipping":"PRIORITY2H"
|
169 |
+
},
|
170 |
+
{
|
171 |
+
"code":11,
|
172 |
+
"mode":"STORE",
|
173 |
+
"shipping":"PRIORITY1H"
|
174 |
+
},
|
175 |
+
{
|
176 |
+
"code":12,
|
177 |
+
"mode":"CARRIER",
|
178 |
+
"shipping":"INSTANT"
|
179 |
+
},
|
180 |
+
{
|
181 |
+
"code":13,
|
182 |
+
"mode":"RELAYPOINT",
|
183 |
+
"shipping":"STANDARD"
|
184 |
+
},
|
185 |
+
{
|
186 |
+
"code":14,
|
187 |
+
"mode":"RELAYPOINT",
|
188 |
+
"shipping":"EXPRESS"
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"code":15,
|
192 |
+
"mode":"RELAYPOINT",
|
193 |
+
"shipping":"PRIORITY24H"
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"code":16,
|
197 |
+
"mode":"RELAYPOINT",
|
198 |
+
"shipping":"PRIORITY2H"
|
199 |
+
},
|
200 |
+
{
|
201 |
+
"code":17,
|
202 |
+
"mode":"RELAYPOINT",
|
203 |
+
"shipping":"PRIORITY1H"
|
204 |
+
},
|
205 |
+
{
|
206 |
+
"code":18,
|
207 |
+
"mode":"RELAYPOINT",
|
208 |
+
"shipping":"INSTANT"
|
209 |
+
},
|
210 |
+
{
|
211 |
+
"code":19,
|
212 |
+
"mode":"ELECTRONIC",
|
213 |
+
"shipping":"STANDARD"
|
214 |
+
},
|
215 |
+
{
|
216 |
+
"code":20,
|
217 |
+
"mode":"ELECTRONIC",
|
218 |
+
"shipping":"EXPRESS"
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"code":21,
|
222 |
+
"mode":"ELECTRONIC",
|
223 |
+
"shipping":"PRIORITY24H"
|
224 |
+
},
|
225 |
+
{
|
226 |
+
"code":22,
|
227 |
+
"mode":"ELECTRONIC",
|
228 |
+
"shipping":"PRIORITY2H"
|
229 |
+
},
|
230 |
+
{
|
231 |
+
"code":23,
|
232 |
+
"mode":"ELECTRONIC",
|
233 |
+
"shipping":"PRIORITY1H"
|
234 |
+
},
|
235 |
+
{
|
236 |
+
"code":24,
|
237 |
+
"mode":"ELECTRONIC",
|
238 |
+
"shipping":"INSTANT"
|
239 |
+
},
|
240 |
+
{
|
241 |
+
"code":25,
|
242 |
+
"mode":"TRAVEL",
|
243 |
+
"shipping":"STANDARD"
|
244 |
+
},
|
245 |
+
{
|
246 |
+
"code":26,
|
247 |
+
"mode":"TRAVEL",
|
248 |
+
"shipping":"EXPRESS"
|
249 |
+
},
|
250 |
+
{
|
251 |
+
"code":27,
|
252 |
+
"mode":"TRAVEL",
|
253 |
+
"shipping":"PRIORITY24H"
|
254 |
+
},
|
255 |
+
{
|
256 |
+
"code":28,
|
257 |
+
"mode":"TRAVEL",
|
258 |
+
"shipping":"PRIORITY1H"
|
259 |
+
},
|
260 |
+
{
|
261 |
+
"code":29,
|
262 |
+
"mode":"TRAVEL",
|
263 |
+
"shipping":"INSTANT"
|
264 |
+
}
|
265 |
+
]
|
266 |
+
|
267 |
+
EOT;
|
268 |
+
/**
|
269 |
+
* Return HiPay's Category
|
270 |
+
*
|
271 |
+
* @return array
|
272 |
+
*/
|
273 |
+
public function getItemsCategory()
|
274 |
+
{
|
275 |
+
$jsonArr = json_decode(self::$_JSON_CATEGORY, true);
|
276 |
+
$collection = array();
|
277 |
+
foreach ($jsonArr as $item) {
|
278 |
+
$collection[$item['categoryCode']] = $item['categoryName'];
|
279 |
+
}
|
280 |
+
return $collection;
|
281 |
+
}
|
282 |
+
|
283 |
+
/**
|
284 |
+
* Return HiPay's delivery method Full json
|
285 |
+
*
|
286 |
+
* @return array
|
287 |
+
*/
|
288 |
+
public static function getFullItemsDelivery()
|
289 |
+
{
|
290 |
+
return json_decode(self::$_JSON_DELIVERY, true);
|
291 |
+
}
|
292 |
+
|
293 |
+
/**
|
294 |
+
* Return HiPay's delivery method for listing
|
295 |
+
*
|
296 |
+
* @return array
|
297 |
+
*/
|
298 |
+
public static function getItemsDelivery()
|
299 |
+
{
|
300 |
+
$jsonArr = json_decode(self::$_JSON_DELIVERY, true);
|
301 |
+
$collection = array();
|
302 |
+
foreach ($jsonArr as $item) {
|
303 |
+
$collection[$item['code']] = $item['mode'] . '-' . $item['shipping'];
|
304 |
+
}
|
305 |
+
return $collection;
|
306 |
+
}
|
307 |
+
|
308 |
+
}
|
app/code/community/Allopass/Hipay/Helper/Data.php
CHANGED
@@ -26,6 +26,11 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
26 |
const STATE_AUTHORIZATION = '0';
|
27 |
const STATE_REFUND = '1';
|
28 |
const STATE_CAPTURE = '2';
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
/**
|
31 |
* Return to TPP Tax rate only if all products have the same tax
|
@@ -84,7 +89,7 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
84 |
* @param $capture
|
85 |
* @return array
|
86 |
*/
|
87 |
-
private function processDiscount($order
|
88 |
{
|
89 |
$coupon = $order->getCouponCode();
|
90 |
if (!empty($coupon)) {
|
@@ -96,6 +101,7 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
96 |
$item['total_amount'] = 0;
|
97 |
$item['quantity'] = '1';
|
98 |
$item['unit_price'] = '0';
|
|
|
99 |
$basket[] = $item;
|
100 |
}
|
101 |
|
@@ -110,35 +116,36 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
110 |
* @param $capture
|
111 |
* @return array
|
112 |
*/
|
113 |
-
private function processShipping($order, $action
|
114 |
{
|
115 |
-
|
116 |
-
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
117 |
-
|
118 |
-
$item = array();
|
119 |
-
$item['type'] = Allopass_Hipay_Helper_Data::TYPE_ITEM_BASKET_FEE;
|
120 |
-
$item['product_reference'] = $order->getShippingDescription();
|
121 |
-
$item['name'] = $order->getShippingDescription();
|
122 |
-
$item['quantity'] = '1';
|
123 |
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
$item['unit_price'] =round( $order->getShippingAmount(),3);
|
130 |
-
$item['total_amount'] = round($order->getShippingAmount(),3);
|
131 |
-
$item['tax_rate'] = round($order->getShippingTaxAmount() / $order->getShippingAmount() * 100 ,2);
|
132 |
-
}
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
-
|
|
|
|
|
140 |
}
|
141 |
|
|
|
|
|
|
|
|
|
142 |
return $basket;
|
143 |
}
|
144 |
|
@@ -148,12 +155,13 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
148 |
*@param $product
|
149 |
*@param $quantity
|
150 |
*/
|
151 |
-
private function returnUnitPrice($product
|
|
|
152 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
153 |
|
154 |
if (!$useOrderCurrency) {
|
155 |
return $product->getBasePrice() + $product->getBaseTaxAmount() / $quantity;
|
156 |
-
}else{
|
157 |
return $product->getPrice() + $product->getTaxAmount() / $quantity;
|
158 |
}
|
159 |
}
|
@@ -165,14 +173,14 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
165 |
* @param $product
|
166 |
* @param @action
|
167 |
*/
|
168 |
-
private function addItem($product, $action
|
169 |
{
|
170 |
$item = array();
|
171 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
|
|
172 |
|
173 |
// Select base Field according the action
|
174 |
-
switch ($action)
|
175 |
-
{
|
176 |
case Allopass_Hipay_Helper_Data::STATE_REFUND:
|
177 |
$base_discount = Allopass_Hipay_Helper_Data::FIELD_BASE_DISCOUNT_REFUNDED;
|
178 |
$base_hidden_tax = Allopass_Hipay_Helper_Data::FIELD_BASE_TAX_HIDDEN_REFUNDED;
|
@@ -192,32 +200,28 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
192 |
$taxPercent = $product->getData('tax_percent');
|
193 |
|
194 |
if (!$useOrderCurrency) {
|
195 |
-
$hidden_tax = $product->getData('base_'+ $base_hidden_tax);
|
196 |
-
$discount = $product->getData('base_'+ $base_discount);
|
197 |
$total_amount = $product->getBaseRowTotal() + $product->getBaseTaxAmount() + $product->getBaseHiddenTaxAmount() + Mage::helper('weee')->getRowWeeeAmountAfterDiscount($product) - $product->getBaseDiscountAmount();
|
198 |
-
}else{
|
199 |
-
$hidden_tax = $product->getData($base_hidden_tax);
|
200 |
-
$discount = $product->getData($base_discount);
|
201 |
$total_amount = $product->getRowTotal() + $product->getTaxAmount() + $product->getHiddenTaxAmount() + Mage::helper('weee')->getRowWeeeAmountAfterDiscount($product) - $product->getDiscountAmount();
|
202 |
}
|
203 |
// Add information in basket only if the product is simple
|
204 |
-
if ($item['quantity'] > 0 && $total_amount > 0
|
205 |
-
if ($action == Allopass_Hipay_Helper_Data::STATE_CAPTURE || $action == Allopass_Hipay_Helper_Data::STATE_REFUND){
|
206 |
// To avoid 0.001 between original authorization and capture
|
207 |
foreach ($products as $key => $original) {
|
208 |
-
if ($product->getSku() == $original->getSku()){
|
209 |
if ($original->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE && $original->isChildrenCalculated()) {
|
210 |
foreach ($original->getChildren() as $children) {
|
211 |
-
$unitPrice =
|
212 |
}
|
213 |
} else {
|
214 |
-
$unitPrice =
|
215 |
}
|
216 |
}
|
217 |
}
|
218 |
-
}else{
|
219 |
// Don't use unit price in product because we need a better precision
|
220 |
-
$unitPrice =
|
221 |
}
|
222 |
|
223 |
// if store support EAN ( Please set the attribute on hipay config )
|
@@ -225,7 +229,6 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
225 |
$attribute = Mage::getStoreConfig('hipay/hipay_basket/attribute_ean', Mage::app()->getStore());
|
226 |
|
227 |
if (Mage::getStoreConfig('hipay/hipay_basket/load_product_ean', Mage::app()->getStore())) {
|
228 |
-
$resource = Mage::getSingleton('catalog/product')->getResource();
|
229 |
$ean = $resource->getAttributeRawValue($product->getProductId(), $attribute,
|
230 |
Mage::app()->getStore());
|
231 |
} else {
|
@@ -248,11 +251,26 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
248 |
// According the configuration we use this trick to complete the discount with tax hidden
|
249 |
$item['discount'] = round($total_amount - ($unitPrice * $item['quantity']), 3);
|
250 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
return $item;
|
252 |
}
|
253 |
|
254 |
|
255 |
}
|
|
|
256 |
/**
|
257 |
* Return to TPP API basket informations
|
258 |
*
|
@@ -261,8 +279,11 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
261 |
* @return json
|
262 |
*
|
263 |
*/
|
264 |
-
public function getCartInformation(
|
265 |
-
|
|
|
|
|
|
|
266 |
$basket = array();
|
267 |
$products = $order->getAllVisibleItems();
|
268 |
|
@@ -270,10 +291,9 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
270 |
// Add each product in basket
|
271 |
// =============================================================== //
|
272 |
if ($action == Allopass_Hipay_Helper_Data::STATE_AUTHORIZATION) {
|
|
|
273 |
|
274 |
-
$basket = $this->
|
275 |
-
|
276 |
-
$basket = $this->processShipping($order, $action,$basket);
|
277 |
|
278 |
foreach ($products as $key => $product) {
|
279 |
if ($product->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) {
|
@@ -298,11 +318,11 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
298 |
// =============================================================== //
|
299 |
// Add Shipping in basket
|
300 |
// =============================================================== //
|
301 |
-
$basket = $this->processShipping($invoice, $action
|
302 |
|
303 |
foreach ($invoice->getAllItems() as $product) {
|
304 |
-
$item = $this->addItem($product, $action
|
305 |
-
if ($item){
|
306 |
$basket[] = $item;
|
307 |
}
|
308 |
}
|
@@ -316,10 +336,10 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
316 |
// =============================================================== //
|
317 |
// Add Shipping in basket
|
318 |
// =============================================================== //
|
319 |
-
$basket = $this->processShipping($creditMemo, $action
|
320 |
|
321 |
foreach ($creditMemo->getAllItems() as $product) {
|
322 |
-
$item = $this->addItem($product, $action
|
323 |
if ($item) {
|
324 |
$basket[] = $item;
|
325 |
}
|
@@ -455,7 +475,7 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
455 |
);
|
456 |
|
457 |
// First split is already paid
|
458 |
-
if ($numberSplit == 1){
|
459 |
$data['status'] = Allopass_Hipay_Model_SplitPayment::SPLIT_PAYMENT_STATUS_COMPLETE;
|
460 |
}
|
461 |
|
@@ -489,21 +509,6 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
489 |
return false;
|
490 |
}
|
491 |
|
492 |
-
public function getHipayMethods()
|
493 |
-
{
|
494 |
-
$methods = array();
|
495 |
-
|
496 |
-
foreach (Mage::getStoreConfig('payment') as $code => $data) {
|
497 |
-
if (strpos($code, 'hipay') !== false) {
|
498 |
-
if (isset($data['model'])) {
|
499 |
-
$methods[$code] = $data['model'];
|
500 |
-
}
|
501 |
-
}
|
502 |
-
}
|
503 |
-
|
504 |
-
return $methods;
|
505 |
-
}
|
506 |
-
|
507 |
public function checkSignature(
|
508 |
$signature,
|
509 |
$fromNotification = false,
|
@@ -554,6 +559,21 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
554 |
return false;
|
555 |
}
|
556 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
557 |
public function checkIfCcExpDateIsValid(
|
558 |
$customer
|
559 |
) {
|
@@ -823,7 +843,7 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
823 |
|
824 |
/**
|
825 |
* Send email id payment is in Fraud status
|
826 |
-
* @param Mage_Customer_Model_Customer $receiver
|
827 |
* @param Mage_Sales_Model_Order $order
|
828 |
* @param string $message
|
829 |
* @return Mage_Checkout_Helper_Data
|
@@ -1143,4 +1163,260 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
1143 |
|
1144 |
return $this;
|
1145 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1146 |
}
|
26 |
const STATE_AUTHORIZATION = '0';
|
27 |
const STATE_REFUND = '1';
|
28 |
const STATE_CAPTURE = '2';
|
29 |
+
const EPSYLON = 0.00001;
|
30 |
+
|
31 |
+
const DEFAULT_CATEGORY_CODE = 1 ;
|
32 |
+
|
33 |
+
const LOG_INTERNAL_HIPAY = 'hipay_general_debug';
|
34 |
|
35 |
/**
|
36 |
* Return to TPP Tax rate only if all products have the same tax
|
89 |
* @param $capture
|
90 |
* @return array
|
91 |
*/
|
92 |
+
private function processDiscount($order, $action, $basket)
|
93 |
{
|
94 |
$coupon = $order->getCouponCode();
|
95 |
if (!empty($coupon)) {
|
101 |
$item['total_amount'] = 0;
|
102 |
$item['quantity'] = '1';
|
103 |
$item['unit_price'] = '0';
|
104 |
+
$item['product_category'] = self::DEFAULT_CATEGORY_CODE;
|
105 |
$basket[] = $item;
|
106 |
}
|
107 |
|
116 |
* @param $capture
|
117 |
* @return array
|
118 |
*/
|
119 |
+
private function processShipping($order, $action, $basket)
|
120 |
{
|
121 |
+
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
+
$item = array();
|
124 |
+
$item['type'] = Allopass_Hipay_Helper_Data::TYPE_ITEM_BASKET_FEE;
|
125 |
+
$item['product_reference'] = $order->getShippingDescription();
|
126 |
+
$item['name'] = $order->getShippingDescription();
|
127 |
+
$item['quantity'] = '1';
|
|
|
|
|
|
|
|
|
128 |
|
129 |
+
if (!$useOrderCurrency) {
|
130 |
+
$item['unit_price'] = round($order->getBaseShippingAmount(), 3);
|
131 |
+
$item['total_amount'] = round($order->getBaseShippingAmount(), 3);
|
132 |
+
$item['tax_rate'] = round($order->getBaseShippingTaxAmount() / $order->getBaseShippingAmount() * 100,
|
133 |
+
2);
|
134 |
+
} else {
|
135 |
+
$item['unit_price'] = round($order->getShippingAmount(), 3);
|
136 |
+
$item['total_amount'] = round($order->getShippingAmount(), 3);
|
137 |
+
$item['tax_rate'] = round($order->getShippingTaxAmount() / $order->getShippingAmount() * 100, 2);
|
138 |
+
}
|
139 |
|
140 |
+
if ($action == Allopass_Hipay_Helper_Data::STATE_CAPTURE || $action == Allopass_Hipay_Helper_Data::STATE_REFUND) {
|
141 |
+
$item['product_reference'] = $order->getOrder()->getShippingDescription();
|
142 |
+
$item['name'] = $order->getOrder()->getShippingDescription();
|
143 |
}
|
144 |
|
145 |
+
$item['product_category'] = self::DEFAULT_CATEGORY_CODE;
|
146 |
+
$basket[] = $item;
|
147 |
+
|
148 |
+
|
149 |
return $basket;
|
150 |
}
|
151 |
|
155 |
*@param $product
|
156 |
*@param $quantity
|
157 |
*/
|
158 |
+
private function returnUnitPrice($product, $quantity)
|
159 |
+
{
|
160 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
161 |
|
162 |
if (!$useOrderCurrency) {
|
163 |
return $product->getBasePrice() + $product->getBaseTaxAmount() / $quantity;
|
164 |
+
} else {
|
165 |
return $product->getPrice() + $product->getTaxAmount() / $quantity;
|
166 |
}
|
167 |
}
|
173 |
* @param $product
|
174 |
* @param @action
|
175 |
*/
|
176 |
+
private function addItem($product, $action, $products = null)
|
177 |
{
|
178 |
$item = array();
|
179 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
180 |
+
$resource = Mage::getSingleton('catalog/product')->getResource();
|
181 |
|
182 |
// Select base Field according the action
|
183 |
+
switch ($action) {
|
|
|
184 |
case Allopass_Hipay_Helper_Data::STATE_REFUND:
|
185 |
$base_discount = Allopass_Hipay_Helper_Data::FIELD_BASE_DISCOUNT_REFUNDED;
|
186 |
$base_hidden_tax = Allopass_Hipay_Helper_Data::FIELD_BASE_TAX_HIDDEN_REFUNDED;
|
200 |
$taxPercent = $product->getData('tax_percent');
|
201 |
|
202 |
if (!$useOrderCurrency) {
|
|
|
|
|
203 |
$total_amount = $product->getBaseRowTotal() + $product->getBaseTaxAmount() + $product->getBaseHiddenTaxAmount() + Mage::helper('weee')->getRowWeeeAmountAfterDiscount($product) - $product->getBaseDiscountAmount();
|
204 |
+
} else {
|
|
|
|
|
205 |
$total_amount = $product->getRowTotal() + $product->getTaxAmount() + $product->getHiddenTaxAmount() + Mage::helper('weee')->getRowWeeeAmountAfterDiscount($product) - $product->getDiscountAmount();
|
206 |
}
|
207 |
// Add information in basket only if the product is simple
|
208 |
+
if ($item['quantity'] > 0 && $total_amount > 0) {
|
209 |
+
if ($action == Allopass_Hipay_Helper_Data::STATE_CAPTURE || $action == Allopass_Hipay_Helper_Data::STATE_REFUND) {
|
210 |
// To avoid 0.001 between original authorization and capture
|
211 |
foreach ($products as $key => $original) {
|
212 |
+
if ($product->getSku() == $original->getSku()) {
|
213 |
if ($original->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE && $original->isChildrenCalculated()) {
|
214 |
foreach ($original->getChildren() as $children) {
|
215 |
+
$unitPrice = $this->returnUnitPrice($children, $item);
|
216 |
}
|
217 |
} else {
|
218 |
+
$unitPrice = $this->returnUnitPrice($original, $original->getData('qty_ordered'));
|
219 |
}
|
220 |
}
|
221 |
}
|
222 |
+
} else {
|
223 |
// Don't use unit price in product because we need a better precision
|
224 |
+
$unitPrice = $this->returnUnitPrice($product, $item['quantity']);
|
225 |
}
|
226 |
|
227 |
// if store support EAN ( Please set the attribute on hipay config )
|
229 |
$attribute = Mage::getStoreConfig('hipay/hipay_basket/attribute_ean', Mage::app()->getStore());
|
230 |
|
231 |
if (Mage::getStoreConfig('hipay/hipay_basket/load_product_ean', Mage::app()->getStore())) {
|
|
|
232 |
$ean = $resource->getAttributeRawValue($product->getProductId(), $attribute,
|
233 |
Mage::app()->getStore());
|
234 |
} else {
|
251 |
// According the configuration we use this trick to complete the discount with tax hidden
|
252 |
$item['discount'] = round($total_amount - ($unitPrice * $item['quantity']), 3);
|
253 |
|
254 |
+
// Process an product load if needed
|
255 |
+
$product = Mage::getModel('catalog/product')->load($product->getProductId());
|
256 |
+
|
257 |
+
// Load Mapping Category
|
258 |
+
$categoryIds = $product->getCategoryIds();
|
259 |
+
if (is_array($categoryIds) && !empty($categoryIds)) {
|
260 |
+
if (isset($categoryIds[0]) && $categoryIds[0]) {
|
261 |
+
$mapping = $this->getMappingCategory($categoryIds[0],Mage::app()->getStore());
|
262 |
+
if ($mapping){
|
263 |
+
$item['product_category'] = (int) $mapping['hipay_category'];
|
264 |
+
}
|
265 |
+
}
|
266 |
+
}
|
267 |
+
|
268 |
return $item;
|
269 |
}
|
270 |
|
271 |
|
272 |
}
|
273 |
+
|
274 |
/**
|
275 |
* Return to TPP API basket informations
|
276 |
*
|
279 |
* @return json
|
280 |
*
|
281 |
*/
|
282 |
+
public function getCartInformation(
|
283 |
+
$order,
|
284 |
+
$action = Allopass_Hipay_Helper_Data::STATE_AUTHORIZATION,
|
285 |
+
$payment = null
|
286 |
+
) {
|
287 |
$basket = array();
|
288 |
$products = $order->getAllVisibleItems();
|
289 |
|
291 |
// Add each product in basket
|
292 |
// =============================================================== //
|
293 |
if ($action == Allopass_Hipay_Helper_Data::STATE_AUTHORIZATION) {
|
294 |
+
$basket = $this->processDiscount($order, $action, $basket);
|
295 |
|
296 |
+
$basket = $this->processShipping($order, $action, $basket);
|
|
|
|
|
297 |
|
298 |
foreach ($products as $key => $product) {
|
299 |
if ($product->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) {
|
318 |
// =============================================================== //
|
319 |
// Add Shipping in basket
|
320 |
// =============================================================== //
|
321 |
+
$basket = $this->processShipping($invoice, $action, $basket);
|
322 |
|
323 |
foreach ($invoice->getAllItems() as $product) {
|
324 |
+
$item = $this->addItem($product, $action, $products);
|
325 |
+
if ($item) {
|
326 |
$basket[] = $item;
|
327 |
}
|
328 |
}
|
336 |
// =============================================================== //
|
337 |
// Add Shipping in basket
|
338 |
// =============================================================== //
|
339 |
+
$basket = $this->processShipping($creditMemo, $action, $basket);
|
340 |
|
341 |
foreach ($creditMemo->getAllItems() as $product) {
|
342 |
+
$item = $this->addItem($product, $action, $products);
|
343 |
if ($item) {
|
344 |
$basket[] = $item;
|
345 |
}
|
475 |
);
|
476 |
|
477 |
// First split is already paid
|
478 |
+
if ($numberSplit == 1) {
|
479 |
$data['status'] = Allopass_Hipay_Model_SplitPayment::SPLIT_PAYMENT_STATUS_COMPLETE;
|
480 |
}
|
481 |
|
509 |
return false;
|
510 |
}
|
511 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
512 |
public function checkSignature(
|
513 |
$signature,
|
514 |
$fromNotification = false,
|
559 |
return false;
|
560 |
}
|
561 |
|
562 |
+
public function getHipayMethods()
|
563 |
+
{
|
564 |
+
$methods = array();
|
565 |
+
|
566 |
+
foreach (Mage::getStoreConfig('payment') as $code => $data) {
|
567 |
+
if (strpos($code, 'hipay') !== false) {
|
568 |
+
if (isset($data['model'])) {
|
569 |
+
$methods[$code] = $data['model'];
|
570 |
+
}
|
571 |
+
}
|
572 |
+
}
|
573 |
+
|
574 |
+
return $methods;
|
575 |
+
}
|
576 |
+
|
577 |
public function checkIfCcExpDateIsValid(
|
578 |
$customer
|
579 |
) {
|
843 |
|
844 |
/**
|
845 |
* Send email id payment is in Fraud status
|
846 |
+
* @param Mage_Customer_Model_Customer|Mage_Core_Model_Abstract $receiver
|
847 |
* @param Mage_Sales_Model_Order $order
|
848 |
* @param string $message
|
849 |
* @return Mage_Checkout_Helper_Data
|
1163 |
|
1164 |
return $this;
|
1165 |
}
|
1166 |
+
|
1167 |
+
/**
|
1168 |
+
* Debug internal process ( For cron per exemple )
|
1169 |
+
*
|
1170 |
+
* @param $debugData
|
1171 |
+
*/
|
1172 |
+
public function debugInternalProcessHipay($debugData) {
|
1173 |
+
if ($this->getConfig()->isGeneralDebugEnabled()) {
|
1174 |
+
Mage::getModel('hipay/log_adapter', self::LOG_INTERNAL_HIPAY . '.log')->log($debugData);
|
1175 |
+
}
|
1176 |
+
}
|
1177 |
+
|
1178 |
+
/**
|
1179 |
+
* Get All Magento Categories (Level 2)
|
1180 |
+
*
|
1181 |
+
* If Store ID in context, get Category from root ID
|
1182 |
+
*
|
1183 |
+
* @return array
|
1184 |
+
*/
|
1185 |
+
public function getMagentoCategories()
|
1186 |
+
{
|
1187 |
+
$options = array();
|
1188 |
+
$storeId = Mage::getSingleton('adminhtml/config_data')->getStore();
|
1189 |
+
$categories = Mage::getModel('catalog/category')
|
1190 |
+
->getCollection()
|
1191 |
+
->addAttributeToFilter('level', 2)
|
1192 |
+
->addAttributeToSelect('name')
|
1193 |
+
->addAttributeToSelect('id');
|
1194 |
+
|
1195 |
+
if ($storeId && !empty($storeId)) {
|
1196 |
+
$rootCategoryId = Mage::app()->getStore($storeId)->getRootCategoryId();
|
1197 |
+
$categories = $categories->addAttributeToFilter('path', array('like' => "1/$rootCategoryId/%"));
|
1198 |
+
}
|
1199 |
+
|
1200 |
+
foreach ($categories as $category) {
|
1201 |
+
$options[$category->getId()] = $category->getName();
|
1202 |
+
}
|
1203 |
+
|
1204 |
+
return $options;
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
/**
|
1208 |
+
* Get All Magento Shipping method
|
1209 |
+
*
|
1210 |
+
* According current store
|
1211 |
+
*
|
1212 |
+
* @return array
|
1213 |
+
*/
|
1214 |
+
public function getMagentoShippingMethods()
|
1215 |
+
{
|
1216 |
+
$options = array();
|
1217 |
+
$store = Mage::getSingleton('adminhtml/config_data')->getStore();
|
1218 |
+
|
1219 |
+
// Get all carriers
|
1220 |
+
$carriers = Mage::getSingleton('shipping/config')->getAllCarriers($store);
|
1221 |
+
foreach ($carriers as $carrierCode => $carrierModel) {
|
1222 |
+
try {
|
1223 |
+
if (!$carrierModel->isActive()) {
|
1224 |
+
continue;
|
1225 |
+
}
|
1226 |
+
|
1227 |
+
$carrierMethods = $carrierModel->getAllowedMethods();
|
1228 |
+
if (!$carrierMethods) {
|
1229 |
+
continue;
|
1230 |
+
}
|
1231 |
+
|
1232 |
+
$carrierTitle = Mage::getStoreConfig('carriers/' . $carrierCode . '/title');
|
1233 |
+
foreach ($carrierMethods as $methodCode => $methodTitle) {
|
1234 |
+
$options[$carrierCode . '_' . $methodCode] = '[' . $carrierTitle . '] - ' . $methodTitle;
|
1235 |
+
}
|
1236 |
+
} catch (Exception $e) {
|
1237 |
+
// Log error and continue process listing
|
1238 |
+
continue;
|
1239 |
+
}
|
1240 |
+
}
|
1241 |
+
return $options;
|
1242 |
+
}
|
1243 |
+
|
1244 |
+
/**
|
1245 |
+
* Return the mapping if exists for one category
|
1246 |
+
*
|
1247 |
+
* @param $idCategory
|
1248 |
+
* @param $store
|
1249 |
+
* @return string
|
1250 |
+
*/
|
1251 |
+
public function getMappingCategory($idCategory, $store = null)
|
1252 |
+
{
|
1253 |
+
$mappingCategories = unserialize($this->getConfig()->getConfigDataBasket('mapping_category',$store));
|
1254 |
+
if (is_array($mappingCategories) && !empty($mappingCategories)) {
|
1255 |
+
foreach ($mappingCategories as $key => $mapping) {
|
1256 |
+
if ($mapping['magento_category'] == $idCategory) {
|
1257 |
+
return $mapping['hipay_category'];
|
1258 |
+
}
|
1259 |
+
}
|
1260 |
+
$category = Mage::getModel('catalog/category')->load($idCategory);
|
1261 |
+
foreach ($mappingCategories as $key => $mapping ) {
|
1262 |
+
if (in_array($mapping['hipay_category'],$category->getParentIds())) {
|
1263 |
+
return $mapping;
|
1264 |
+
}
|
1265 |
+
}
|
1266 |
+
}
|
1267 |
+
return null;
|
1268 |
+
}
|
1269 |
+
|
1270 |
+
/**
|
1271 |
+
* Return the mapping if exist for one category
|
1272 |
+
*
|
1273 |
+
* @param $delivery_method Code
|
1274 |
+
* @param $store
|
1275 |
+
* @return string
|
1276 |
+
*/
|
1277 |
+
public function getMappingShipping($codeShippingMethod, $store = null)
|
1278 |
+
{
|
1279 |
+
$mappingDeliveryMethod = unserialize($this->getConfig()->getConfigDataBasket('mapping_shipping_method',$store));
|
1280 |
+
if (is_array($mappingDeliveryMethod) && !empty($mappingDeliveryMethod)) {
|
1281 |
+
foreach ($mappingDeliveryMethod as $key => $mapping) {
|
1282 |
+
if ($mapping['magento_shipping_method'] == $codeShippingMethod) {
|
1283 |
+
return $mapping;
|
1284 |
+
}
|
1285 |
+
}
|
1286 |
+
}
|
1287 |
+
return null;
|
1288 |
+
}
|
1289 |
+
|
1290 |
+
/**
|
1291 |
+
* According the mapping, provide a approximated date delivery
|
1292 |
+
*
|
1293 |
+
* @return date format YYYY-MM-DD
|
1294 |
+
*/
|
1295 |
+
function calculateEstimatedDate($mapping){
|
1296 |
+
if (is_array($mapping)){
|
1297 |
+
$today = new \Datetime();
|
1298 |
+
$daysDelay = $mapping['delay_preparation'] + $mapping['delay_delivery'];
|
1299 |
+
$interval = new \DateInterval ("P{$daysDelay}D");
|
1300 |
+
return $today->add($interval)->format("Y-m-d");
|
1301 |
+
}
|
1302 |
+
|
1303 |
+
return '';
|
1304 |
+
}
|
1305 |
+
|
1306 |
+
/**
|
1307 |
+
* Provide a delivery Method compatible with gateway
|
1308 |
+
*
|
1309 |
+
* @param $mapping array Result of mapping
|
1310 |
+
* @return null|string JSON
|
1311 |
+
*/
|
1312 |
+
function calculateDeliveryMethod($mapping){
|
1313 |
+
if (is_array($mapping)) {
|
1314 |
+
$itemsDelivery = Mage::helper('hipay/collection')->getFullItemsDelivery();
|
1315 |
+
if ($itemsDelivery && is_array($itemsDelivery) && !empty($mapping['hipay_delivery_method'])) {
|
1316 |
+
return json_encode(array('mode' => $itemsDelivery[$mapping['hipay_delivery_method']]['mode'],
|
1317 |
+
'shipping' => $itemsDelivery[$mapping['hipay_delivery_method']]['shipping']));
|
1318 |
+
}
|
1319 |
+
}
|
1320 |
+
return '';
|
1321 |
+
}
|
1322 |
+
|
1323 |
+
/**
|
1324 |
+
*
|
1325 |
+
* @param $codeShippingMethod
|
1326 |
+
* @param $store
|
1327 |
+
*/
|
1328 |
+
public function processDeliveryInformation($codeShippingMethod, $store, $method, &$params)
|
1329 |
+
{
|
1330 |
+
$mapping = $this->getMappingShipping($codeShippingMethod,$store);
|
1331 |
+
$params['delivery_method'] = $this->calculateDeliveryMethod($mapping);
|
1332 |
+
|
1333 |
+
if (empty($params['delivery_method'])) {
|
1334 |
+
Mage::helper('hipay')->debugInternalProcessHipay('### Method processDeliveryInformation');
|
1335 |
+
Mage::helper('hipay')->debugInternalProcessHipay('### WARNING : Mapping for ' . $codeShippingMethod . ' is missing.');
|
1336 |
+
}
|
1337 |
+
|
1338 |
+
$params['delivery_date'] = $this->calculateEstimatedDate($mapping);
|
1339 |
+
}
|
1340 |
+
|
1341 |
+
/**
|
1342 |
+
* Check if send cart items is required or of option is activated
|
1343 |
+
*
|
1344 |
+
* @param $product_code
|
1345 |
+
* @return boolean
|
1346 |
+
*/
|
1347 |
+
public function isSendCartItemsRequired($product_code)
|
1348 |
+
{
|
1349 |
+
if ($this->isCartItemsRequired($product_code) ||
|
1350 |
+
(Mage::getStoreConfigFlag('hipay/hipay_basket/activate_basket', Mage::app()->getStore()))){
|
1351 |
+
return true;
|
1352 |
+
}
|
1353 |
+
return false;
|
1354 |
+
}
|
1355 |
+
|
1356 |
+
/**
|
1357 |
+
* Delivery information and Cart Items are mandatory for some payment product
|
1358 |
+
*
|
1359 |
+
* @param string $product_code
|
1360 |
+
* @return boolean
|
1361 |
+
*/
|
1362 |
+
public function isDeliveryMethodAndCartItemsRequired($product_code)
|
1363 |
+
{
|
1364 |
+
return in_array($product_code, ['3xcb', '3xcb-no-fees', '4xcb-no-fees', '4xcb']);
|
1365 |
+
}
|
1366 |
+
|
1367 |
+
/**
|
1368 |
+
* Cart Items are mandatory for some payment product
|
1369 |
+
*
|
1370 |
+
* @param string $product_code
|
1371 |
+
* @return boolean
|
1372 |
+
*/
|
1373 |
+
public function isCartItemsRequired($product_code)
|
1374 |
+
{
|
1375 |
+
return in_array($product_code, ['klarnainvoice','3xcb', '3xcb-no-fees', '4xcb-no-fees', '4xcb']);
|
1376 |
+
}
|
1377 |
+
|
1378 |
+
/**
|
1379 |
+
* Check if all mapping Shipping are done
|
1380 |
+
*
|
1381 |
+
* @return int
|
1382 |
+
*/
|
1383 |
+
public function checkMappingShippingMethod ()
|
1384 |
+
{
|
1385 |
+
$mappings = unserialize($this->getConfig()->getConfigDataBasket('mapping_shipping_method',$store));
|
1386 |
+
$magentoShippingMethod = $this->getMagentoShippingMethods();
|
1387 |
+
$nbMappingMissing = count($magentoShippingMethod);
|
1388 |
+
if (is_array($magentoShippingMethod) && is_array($mappings) ){
|
1389 |
+
$nbMapping = 0;
|
1390 |
+
foreach ($mappings as $mapping ) {
|
1391 |
+
if (!empty($mapping['hipay_delivery_method'])){
|
1392 |
+
$nbMapping++;
|
1393 |
+
}
|
1394 |
+
}
|
1395 |
+
$nbMappingMissing = count($magentoShippingMethod) - $nbMapping;
|
1396 |
+
}
|
1397 |
+
return $nbMappingMissing;
|
1398 |
+
}
|
1399 |
+
|
1400 |
+
/**
|
1401 |
+
* Check if all mapping Category are done
|
1402 |
+
*
|
1403 |
+
* @return int
|
1404 |
+
*/
|
1405 |
+
public function checkMappingCategoryMethod ()
|
1406 |
+
{
|
1407 |
+
$mappings = unserialize($this->getConfig()->getConfigDataBasket('mapping_category',$store));
|
1408 |
+
$magentoCategory = $this->getMagentoCategories();
|
1409 |
+
$nbMappingMissing = count($magentoCategory);
|
1410 |
+
|
1411 |
+
if (is_array($magentoCategory) && is_array($mappings)){
|
1412 |
+
$nbMapping = 0;
|
1413 |
+
foreach ($mappings as $mapping ) {
|
1414 |
+
if (!empty($mapping['hipay_category'])){
|
1415 |
+
$nbMapping++;
|
1416 |
+
}
|
1417 |
+
}
|
1418 |
+
$nbMappingMissing = count($magentoCategory) - $nbMapping;
|
1419 |
+
}
|
1420 |
+
return $nbMappingMissing;
|
1421 |
+
}
|
1422 |
}
|
app/code/community/Allopass/Hipay/Model/Config.php
CHANGED
@@ -1,274 +1,298 @@
|
|
1 |
<?php
|
|
|
2 |
class Allopass_Hipay_Model_Config extends Varien_Object
|
3 |
{
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
31 |
|
32 |
|
33 |
/**
|
34 |
* Use as Helper
|
35 |
*
|
36 |
-
*
|
37 |
-
*
|
38 |
-
*
|
39 |
*/
|
40 |
public function getConfigData($key, $storeId = null)
|
41 |
{
|
42 |
-
return $this->getInternalConfig('hipay_api'
|
43 |
}
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
*
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
$index = 'hipay' . $key_api
|
56 |
if (!$this->hasData($index)) {
|
57 |
$value = Mage::getStoreConfig('hipay/' . $key_api . '/' . $key, $storeId);
|
58 |
$this->setData($index, $value);
|
59 |
}
|
60 |
return $this->getData($index);
|
61 |
-
|
62 |
|
63 |
/**
|
64 |
* Return config NORMAL ( HIPAY_API )
|
65 |
*
|
66 |
-
*
|
67 |
-
*
|
68 |
-
*
|
69 |
*/
|
70 |
public function getConfig($key, $storeId = null)
|
71 |
{
|
72 |
-
return $this->getInternalConfig('hipay_api'
|
73 |
}
|
74 |
|
75 |
/**
|
76 |
-
* Return config MOTO (
|
77 |
*
|
78 |
-
*
|
79 |
-
*
|
80 |
-
*
|
81 |
*/
|
82 |
public function getConfigDataMoto($key, $storeId = null)
|
83 |
{
|
84 |
-
return $this->getInternalConfig('hipay_api_moto'
|
85 |
-
}
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
* Retrieve list of months translation
|
273 |
*
|
274 |
* @return array
|
@@ -277,53 +301,52 @@ class Allopass_Hipay_Model_Config extends Varien_Object
|
|
277 |
{
|
278 |
$data = Mage::app()->getLocale()->getTranslationList('month');
|
279 |
foreach ($data as $key => $value) {
|
280 |
-
$monthNum = ($key < 10) ? '0'
|
281 |
$data[$key] = $monthNum . ' - ' . $value;
|
282 |
}
|
283 |
return $data;
|
284 |
}
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
}
|
1 |
<?php
|
2 |
+
|
3 |
class Allopass_Hipay_Model_Config extends Varien_Object
|
4 |
{
|
5 |
+
const API_USERNAME = 'api_username';
|
6 |
+
|
7 |
+
const API_PASSWORD = 'api_password';
|
8 |
+
|
9 |
+
const API_TOKENJS_USERNAME = 'api_tokenjs_username';
|
10 |
+
|
11 |
+
const API_TOKENJS_PUBLICKEY = 'api_tokenjs_publickey';
|
12 |
+
|
13 |
+
const API_USERNAME_TEST = "api_username_test";
|
14 |
+
|
15 |
+
const API_PASSWORD_TEST = 'api_password_test';
|
16 |
+
|
17 |
+
const API_TOKENJS_USERNAME_TEST = 'api_tokenjs_username_test';
|
18 |
+
|
19 |
+
const API_TOKENJS_PUBLICKEY_TEST = 'api_tokenjs_publickey_test';
|
20 |
+
|
21 |
+
const SECRET_PASSPHRASE = 'secret_passphrase';
|
22 |
+
|
23 |
+
const SECRET_PASSPHRASE_TEST = 'secret_passphrase_test';
|
24 |
+
|
25 |
+
const VAULT_ENDPOINT_TEST = 'vault_endpoint_stage';
|
26 |
+
|
27 |
+
const VAULT_ENDPOINT = 'vault_endpoint_production';
|
28 |
+
|
29 |
+
const GATEWAY_ENDPOINT_TEST = 'gateway_endpoint_stage';
|
30 |
+
|
31 |
+
const GATEWAY_ENDPOINT = 'gateway_endpoint_production';
|
32 |
+
|
33 |
+
const DEBUG_MODE = 'debug';
|
34 |
|
35 |
|
36 |
/**
|
37 |
* Use as Helper
|
38 |
*
|
39 |
+
* @param string $key Var path key
|
40 |
+
* @param int $storeId Store View Id
|
41 |
+
* @return mixed
|
42 |
*/
|
43 |
public function getConfigData($key, $storeId = null)
|
44 |
{
|
45 |
+
return $this->getInternalConfig('hipay_api', $key, $storeId = null);
|
46 |
}
|
47 |
|
48 |
+
/**
|
49 |
+
* Internal to get config and cache it
|
50 |
+
*
|
51 |
+
* @param string $key context key
|
52 |
+
* @param string $key Var path key
|
53 |
+
* @param int $storeId Store View Id
|
54 |
+
* @return mixed
|
55 |
+
*/
|
56 |
+
private function getInternalConfig($key_api, $key, $storeId = null)
|
57 |
+
{
|
58 |
+
$index = 'hipay' . $key_api . $key . $storeId;
|
59 |
if (!$this->hasData($index)) {
|
60 |
$value = Mage::getStoreConfig('hipay/' . $key_api . '/' . $key, $storeId);
|
61 |
$this->setData($index, $value);
|
62 |
}
|
63 |
return $this->getData($index);
|
64 |
+
}
|
65 |
|
66 |
/**
|
67 |
* Return config NORMAL ( HIPAY_API )
|
68 |
*
|
69 |
+
* @param string $key Var path key
|
70 |
+
* @param int $storeId Store View Id
|
71 |
+
* @return mixed
|
72 |
*/
|
73 |
public function getConfig($key, $storeId = null)
|
74 |
{
|
75 |
+
return $this->getInternalConfig('hipay_api', $key, $storeId = null);
|
76 |
}
|
77 |
|
78 |
/**
|
79 |
+
* Return config MOTO ( HIPAY_MOTO)
|
80 |
*
|
81 |
+
* @param string $key Var path key
|
82 |
+
* @param int $storeId Store View Id
|
83 |
+
* @return mixed
|
84 |
*/
|
85 |
public function getConfigDataMoto($key, $storeId = null)
|
86 |
{
|
87 |
+
return $this->getInternalConfig('hipay_api_moto', $key, $storeId = null);
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Return config BASKET
|
92 |
+
*
|
93 |
+
* @param string $key Path key
|
94 |
+
* @param int $storeId Store View Id
|
95 |
+
* @return mixed
|
96 |
+
*/
|
97 |
+
public function getConfigDataBasket($key, $storeId = null)
|
98 |
+
{
|
99 |
+
return $this->getInternalConfig('hipay_basket', $key, $storeId = null);
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Return config var
|
104 |
+
*
|
105 |
+
* @param string $key Var path key
|
106 |
+
* @param int $storeId Store View Id
|
107 |
+
* @return mixed
|
108 |
+
*/
|
109 |
+
public function getConfigFlag($key, $storeId = null)
|
110 |
+
{
|
111 |
+
if (!$this->hasData($key)) {
|
112 |
+
$value = Mage::getStoreConfigFlag('hipay/hipay_api/' . $key, $storeId);
|
113 |
+
$this->setData($key, $value);
|
114 |
+
}
|
115 |
+
return $this->getData($key);
|
116 |
+
}
|
117 |
+
|
118 |
+
public function getSecretPassphrase($storeId = null)
|
119 |
+
{
|
120 |
+
return $this->getConfigData(self::SECRET_PASSPHRASE, $storeId);
|
121 |
+
}
|
122 |
+
|
123 |
+
public function getSecretPassphraseTest($storeId = null)
|
124 |
+
{
|
125 |
+
return $this->getConfigData(self::SECRET_PASSPHRASE_TEST, $storeId);
|
126 |
+
}
|
127 |
+
|
128 |
+
public function getApiUsername($storeId = null)
|
129 |
+
{
|
130 |
+
return $this->getConfigData(self::API_USERNAME, $storeId);
|
131 |
+
}
|
132 |
+
|
133 |
+
public function getApiPassword($storeId = null)
|
134 |
+
{
|
135 |
+
return $this->getConfigData(self::API_PASSWORD, $storeId);
|
136 |
+
}
|
137 |
+
|
138 |
+
public function getApiTokenJSUsername($storeId = null)
|
139 |
+
{
|
140 |
+
return $this->getConfigData(self::API_TOKENJS_USERNAME, $storeId);
|
141 |
+
}
|
142 |
+
|
143 |
+
public function getApiTokenJSPublickey($storeId = null)
|
144 |
+
{
|
145 |
+
return $this->getConfigData(self::API_TOKENJS_PUBLICKEY, $storeId);
|
146 |
+
}
|
147 |
+
|
148 |
+
public function getApiUsernameTest($storeId = null)
|
149 |
+
{
|
150 |
+
return $this->getConfigData(self::API_USERNAME_TEST, $storeId);
|
151 |
+
}
|
152 |
+
|
153 |
+
public function getApiPasswordTest($storeId = null)
|
154 |
+
{
|
155 |
+
return $this->getConfigData(self::API_PASSWORD_TEST, $storeId);
|
156 |
+
}
|
157 |
+
|
158 |
+
public function getApiTokenJSUsernameTest($storeId = null)
|
159 |
+
{
|
160 |
+
return $this->getConfigData(self::API_TOKENJS_USERNAME_TEST, $storeId);
|
161 |
+
}
|
162 |
+
|
163 |
+
public function getApiTokenJSPublickeyTest($storeId = null)
|
164 |
+
{
|
165 |
+
return $this->getConfigData(self::API_TOKENJS_PUBLICKEY_TEST, $storeId);
|
166 |
+
}
|
167 |
+
|
168 |
+
public function getVaultEndpoint($storeId = null)
|
169 |
+
{
|
170 |
+
return $this->getConfigData(self::VAULT_ENDPOINT, $storeId);
|
171 |
+
}
|
172 |
+
|
173 |
+
public function getVaultEndpointTest($storeId = null)
|
174 |
+
{
|
175 |
+
return $this->getConfigData(self::VAULT_ENDPOINT_TEST, $storeId);
|
176 |
+
}
|
177 |
+
|
178 |
+
public function getGatewayEndpoint($storeId = null)
|
179 |
+
{
|
180 |
+
return $this->getConfigData(self::GATEWAY_ENDPOINT, $storeId);
|
181 |
+
}
|
182 |
+
|
183 |
+
public function getGatewayEndpointTest($storeId = null)
|
184 |
+
{
|
185 |
+
return $this->getConfigData(self::GATEWAY_ENDPOINT_TEST, $storeId);
|
186 |
+
}
|
187 |
+
|
188 |
+
public function getApiUsernameMoto($storeId = null)
|
189 |
+
{
|
190 |
+
return $this->getConfigDataMoto(self::API_USERNAME, $storeId);
|
191 |
+
}
|
192 |
+
|
193 |
+
public function getApiPasswordMoto($storeId = null)
|
194 |
+
{
|
195 |
+
return $this->getConfigDataMoto(self::API_PASSWORD, $storeId);
|
196 |
+
}
|
197 |
+
|
198 |
+
public function getApiUsernameTestMoto($storeId = null)
|
199 |
+
{
|
200 |
+
return $this->getConfigDataMoto(self::API_USERNAME_TEST, $storeId);
|
201 |
+
}
|
202 |
+
|
203 |
+
public function getApiPasswordTestMoto($storeId = null)
|
204 |
+
{
|
205 |
+
return $this->getConfigDataMoto(self::API_PASSWORD_TEST, $storeId);
|
206 |
+
}
|
207 |
+
|
208 |
+
/**
|
209 |
+
* General log level
|
210 |
+
*
|
211 |
+
* @param int $storeId
|
212 |
+
*
|
213 |
+
* @return mixed
|
214 |
+
*/
|
215 |
+
public function isGeneralDebugEnabled($storeId = null)
|
216 |
+
{
|
217 |
+
return $this->getConfigData(self::DEBUG_MODE, $storeId);
|
218 |
+
}
|
219 |
+
|
220 |
+
|
221 |
+
/**
|
222 |
+
* Retrieve array of credit card types
|
223 |
+
*
|
224 |
+
* @return array
|
225 |
+
*/
|
226 |
+
public function getCcTypes()
|
227 |
+
{
|
228 |
+
$_types = Mage::getConfig()->getNode('global/payment_hipay/cc/types')->asArray();
|
229 |
+
|
230 |
+
uasort($_types, array('Allopass_Hipay_Model_Config', 'compareCcTypes'));
|
231 |
+
|
232 |
+
$types = array();
|
233 |
+
foreach ($_types as $data) {
|
234 |
+
if (isset($data['code']) && isset($data['name'])) {
|
235 |
+
$types[$data['code']] = $data['name'];
|
236 |
+
}
|
237 |
+
}
|
238 |
+
return $types;
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Retrieve array of credit card types to get code hipay equals to code Magento
|
243 |
+
*
|
244 |
+
* @return array
|
245 |
+
*/
|
246 |
+
public function getCcTypesHipay()
|
247 |
+
{
|
248 |
+
$_types = Mage::getConfig()->getNode('global/payment_hipay/hosted/types')->asArray();
|
249 |
+
|
250 |
+
$types = array();
|
251 |
+
foreach ($_types as $data) {
|
252 |
+
if (isset($data['code']) && isset($data['code_hipay'])) {
|
253 |
+
$types[$data['code']] = $data['code_hipay'];
|
254 |
+
}
|
255 |
+
}
|
256 |
+
return $types;
|
257 |
+
}
|
258 |
+
|
259 |
+
/**
|
260 |
+
* Retrieve array of template types to display in hosted page
|
261 |
+
*
|
262 |
+
* @return array
|
263 |
+
*/
|
264 |
+
public function getTemplateHosted()
|
265 |
+
{
|
266 |
+
$_templates = Mage::getConfig()->getNode('global/template_hipay/hosted')->asArray();
|
267 |
+
|
268 |
+
$templates = array();
|
269 |
+
foreach ($_templates as $data) {
|
270 |
+
if (isset($data['value']) && isset($data['label'])) {
|
271 |
+
$templates[$data['value']] = $data['label'];
|
272 |
+
}
|
273 |
+
}
|
274 |
+
return $templates;
|
275 |
+
}
|
276 |
+
|
277 |
+
/**
|
278 |
+
* Retrieve array of credit card types to get code hipay
|
279 |
+
*
|
280 |
+
* @return array
|
281 |
+
*/
|
282 |
+
public function getCcTypesCodeHipay()
|
283 |
+
{
|
284 |
+
$_types = Mage::getConfig()->getNode('global/payment_hipay/hosted/types')->asArray();
|
285 |
+
|
286 |
+
$types = array();
|
287 |
+
foreach ($_types as $data) {
|
288 |
+
if (isset($data['code_hipay']) && isset($data['name'])) {
|
289 |
+
$types[$data['code_hipay']] = $data['name'];
|
290 |
+
}
|
291 |
+
}
|
292 |
+
return $types;
|
293 |
+
}
|
294 |
+
|
295 |
+
/**
|
296 |
* Retrieve list of months translation
|
297 |
*
|
298 |
* @return array
|
301 |
{
|
302 |
$data = Mage::app()->getLocale()->getTranslationList('month');
|
303 |
foreach ($data as $key => $value) {
|
304 |
+
$monthNum = ($key < 10) ? '0' . $key : $key;
|
305 |
$data[$key] = $monthNum . ' - ' . $value;
|
306 |
}
|
307 |
return $data;
|
308 |
}
|
309 |
+
|
310 |
+
/**
|
311 |
+
* Retrieve array of available years
|
312 |
+
*
|
313 |
+
* @return array
|
314 |
+
*/
|
315 |
+
public function getYears()
|
316 |
+
{
|
317 |
+
$years = array();
|
318 |
+
$first = date("Y");
|
319 |
+
|
320 |
+
for ($index = 0; $index <= 10; $index++) {
|
321 |
+
$year = $first + $index;
|
322 |
+
$years[$year] = $year;
|
323 |
+
}
|
324 |
+
return $years;
|
325 |
+
}
|
326 |
+
|
327 |
+
/**
|
328 |
+
* Statis Method for compare sort order of CC Types
|
329 |
+
*
|
330 |
+
* @param array $a
|
331 |
+
* @param array $b
|
332 |
+
* @return int
|
333 |
+
*/
|
334 |
+
public static function compareCcTypes($a, $b)
|
335 |
+
{
|
336 |
+
if (!isset($a['order'])) {
|
337 |
+
$a['order'] = 0;
|
338 |
+
}
|
339 |
+
|
340 |
+
if (!isset($b['order'])) {
|
341 |
+
$b['order'] = 0;
|
342 |
+
}
|
343 |
+
|
344 |
+
if ($a['order'] == $b['order']) {
|
345 |
+
return 0;
|
346 |
+
} elseif ($a['order'] > $b['order']) {
|
347 |
+
return 1;
|
348 |
+
} else {
|
349 |
+
return -1;
|
350 |
+
}
|
351 |
+
}
|
352 |
+
}
|
|
app/code/community/Allopass/Hipay/Model/Field/CategoryMapping.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Field_Field_CategoryMapping extends Mage_Adminhtml_Model_System_Config_Backend_Serialized_Array
|
3 |
+
{
|
4 |
+
protected $_eventPrefix = 'hipay_field_category_mapping';
|
5 |
+
}
|
app/code/community/Allopass/Hipay/Model/Field/MappingShippingMethod.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Model_Field_MappingShippingMethod extends Mage_Adminhtml_Model_System_Config_Backend_Serialized_Array
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
*
|
7 |
+
* @return Mage_Core_Model_Abstract|void
|
8 |
+
*/
|
9 |
+
protected function _beforeSave()
|
10 |
+
{
|
11 |
+
$values = $this->getValue();
|
12 |
+
|
13 |
+
foreach ($values as $key => $value) {
|
14 |
+
if (empty($value)) {
|
15 |
+
continue;
|
16 |
+
}
|
17 |
+
|
18 |
+
if (!empty($value['delay_preparation']) && !is_numeric($value['delay_preparation'])) {
|
19 |
+
Mage::throwException(Mage::helper('hipay')->__('Delay delivery is not a correct value for %s', $key));
|
20 |
+
} else if (!empty($value['delay_delivery']) && !is_numeric($value['delay_preparation'])) {
|
21 |
+
Mage::throwException(Mage::helper('hipay')->__('Delay delivery is not a correct value for %s', $key));
|
22 |
+
}
|
23 |
+
}
|
24 |
+
$this->setValue($values);
|
25 |
+
return parent::_beforeSave();
|
26 |
+
}
|
27 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Abstract.php
CHANGED
@@ -95,6 +95,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
95 |
public function assignInfoData($info, $data)
|
96 |
{
|
97 |
$oneclickMode = $data->getData($this->getCode() . '_oneclick');
|
|
|
98 |
$oneclickCard = $data->getData($this->getCode() . '_oneclick_card');
|
99 |
$splitPaymentId = $data->getData($this->getCode() . '_split_payment_id');
|
100 |
$token = $data->getData($this->getCode() . '_cc_token');
|
@@ -110,7 +111,8 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
110 |
/**
|
111 |
* A request instructing the payment gateway to cancel a previously authorized transaction.
|
112 |
* Only authorized transactions can be cancelled, captured transactions must be refunded.
|
113 |
-
*
|
|
|
114 |
*/
|
115 |
public function cancelTransaction(Mage_Payment_Model_Info $payment)
|
116 |
{
|
@@ -156,7 +158,6 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
156 |
public function acceptPayment(Mage_Payment_Model_Info $payment)
|
157 |
{
|
158 |
parent::acceptPayment($payment);
|
159 |
-
$transactionId = $payment->getLastTransId();
|
160 |
$amount = $payment->getAmountAuthorized();
|
161 |
|
162 |
$transactionId = $payment->getLastTransId();
|
@@ -188,7 +189,6 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
188 |
|
189 |
/*@var $payment Mage_Sales_Model_Order_Payment */
|
190 |
parent::denyPayment($payment);
|
191 |
-
$transactionId = $payment->getLastTransId();
|
192 |
$amount = $payment->getAmountAuthorized();
|
193 |
|
194 |
$transactionId = $payment->getLastTransId();
|
@@ -218,11 +218,16 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
218 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $gatewayResponse
|
219 |
* @param Mage_Sales_Model_Order_Payment $payment
|
220 |
* @param float $amount
|
|
|
221 |
*/
|
222 |
public function processResponse($gatewayResponse, $payment, $amount)
|
223 |
{
|
|
|
224 |
$order = $payment->getOrder();
|
|
|
|
|
225 |
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
|
|
226 |
|
227 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
228 |
|
@@ -234,7 +239,14 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
234 |
$total = $order->getBaseGrandTotal();
|
235 |
}
|
236 |
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
switch ($this->getConfigPaymentAction()) {
|
240 |
case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE:
|
@@ -288,9 +300,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
288 |
$order->cancel();
|
289 |
}
|
290 |
|
291 |
-
$order->
|
292 |
$payment, self::OPERATION_AUTHORIZATION, null, $amount, true, $gatewayResponse->getMessage()
|
293 |
-
));
|
294 |
|
295 |
$order->save();
|
296 |
|
@@ -475,6 +487,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
475 |
|
476 |
|
477 |
break;
|
|
|
478 |
case 117: //Capture Requested
|
479 |
|
480 |
if ($order->getStatus() == 'capture' || $order->getStatus() == 'processing') {// for logic process
|
@@ -494,6 +507,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
494 |
|
495 |
$message = Mage::helper("hipay")->__('Capture Requested by Hipay.');
|
496 |
|
|
|
497 |
$order->setState(
|
498 |
Mage_Sales_Model_Order::STATE_PROCESSING, 'capture_requested', $message, null, false
|
499 |
);
|
@@ -507,6 +521,11 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
507 |
}
|
508 |
|
509 |
case 118: //Capture. There are 2 ways to enter in this case: 1. direct capture notification. 2. After 117 case, when it is configured for valid order with 117 status.
|
|
|
|
|
|
|
|
|
|
|
510 |
|
511 |
if ($order->getStatus() == $this->getConfigData('order_status_payment_accepted')) {
|
512 |
break;
|
@@ -523,7 +542,6 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
523 |
}
|
524 |
|
525 |
//Check if it is split payment and insert it
|
526 |
-
$profile = 0;
|
527 |
if (($profile = (int)$payment->getAdditionalInformation('split_payment_id')) && $customer->getId()) {
|
528 |
$token = isset($gatewayResponse->paymentMethod['token']) ? $gatewayResponse->paymentMethod['token'] : $gatewayResponse->getData('cardtoken');
|
529 |
$this->getHelper()->insertSplitPayment($order, $profile, $customer->getId(), $token);
|
@@ -535,26 +553,34 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
535 |
|
536 |
// Create invoice
|
537 |
if ($this->getConfigData('invoice_create', $order->getStoreId()) && !$order->hasInvoices()) {
|
538 |
-
|
539 |
-
if ($amount != $total && !$profile && $order->getState() != Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW) {
|
540 |
$transactionId = $gatewayResponse->getTransactionReference();
|
541 |
-
$order->addStatusHistoryComment(Mage::helper('hipay')->__('Notification "Capture". Capture issued by merchant. Registered notification about captured amount of %s. Transaction ID: "%s".
|
542 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
543 |
break;
|
544 |
}
|
545 |
-
|
546 |
$invoice = $this->create_invoice($order, $gatewayResponse->getTransactionReference(),
|
547 |
false);
|
548 |
|
549 |
Mage::getModel('core/resource_transaction')
|
550 |
->addObject($invoice)->addObject($invoice->getOrder())
|
551 |
->save();
|
|
|
552 |
} elseif ($order->hasInvoices()) {
|
553 |
foreach ($order->getInvoiceCollection() as $invoice) {
|
554 |
if ($invoice->getState() == Mage_Sales_Model_Order_Invoice::STATE_OPEN && (round(($invoice->getBaseGrandTotal() + $order->getBaseTotalPaid()),
|
555 |
-
|
|
|
556 |
) {
|
557 |
$invoice->pay();
|
|
|
558 |
Mage::getModel('core/resource_transaction')
|
559 |
->addObject($invoice)->addObject($invoice->getOrder())
|
560 |
->save();
|
@@ -565,30 +591,10 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
565 |
if (($profile = (int)$payment->getAdditionalInformation('split_payment_id')) && $customer->getId()) {
|
566 |
$token = isset($gatewayResponse->paymentMethod['token']) ? $gatewayResponse->paymentMethod['token'] : $gatewayResponse->getData('cardtoken');
|
567 |
$this->getHelper()->insertSplitPayment($order, $profile, $customer->getId(), $token);
|
|
|
568 |
}
|
569 |
|
570 |
-
|
571 |
-
if (!$status = $this->getConfigData('order_status_payment_accepted')) {
|
572 |
-
$status = $order->getStatus();
|
573 |
-
}
|
574 |
-
|
575 |
-
$message = Mage::helper("hipay")->__('Payment accepted by Hipay.');
|
576 |
-
|
577 |
-
if ($status == Mage_Sales_Model_Order::STATE_PROCESSING) {
|
578 |
-
$order->setState(
|
579 |
-
Mage_Sales_Model_Order::STATE_PROCESSING, $status, $message
|
580 |
-
);
|
581 |
-
} else {
|
582 |
-
if ($status == Mage_Sales_Model_Order::STATE_COMPLETE) {
|
583 |
-
$order->setData('state', Mage_Sales_Model_Order::STATE_COMPLETE);
|
584 |
-
$order->addStatusToHistory($status, $message, true);
|
585 |
-
/*$order->setState(
|
586 |
-
Mage_Sales_Model_Order::STATE_COMPLETE, $status, $message, null, false
|
587 |
-
);*/
|
588 |
-
} else {
|
589 |
-
$order->addStatusToHistory($status, $message, true);
|
590 |
-
}
|
591 |
-
}
|
592 |
|
593 |
$payment->setAmountAuthorized($gatewayResponse->getAuthorizedAmount());
|
594 |
$payment->setBaseAmountAuthorized($gatewayResponse->getAuthorizedAmount());
|
@@ -612,6 +618,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
612 |
|
613 |
$message = Mage::helper("hipay")->__('Refund Requested by Hipay.');
|
614 |
|
|
|
615 |
$order->setState(
|
616 |
Mage_Sales_Model_Order::STATE_PROCESSING, 'refund_requested', $message, null, false
|
617 |
);
|
@@ -647,7 +654,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
647 |
|
648 |
$message = Mage::helper("hipay")->__('Refund accepted by Hipay.');
|
649 |
|
650 |
-
$order->
|
651 |
|
652 |
Mage::getModel('core/resource_transaction')
|
653 |
->addObject($creditmemo)->addObject($creditmemo->getOrder())
|
@@ -693,11 +700,10 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
693 |
default:
|
694 |
$message = Mage::helper("hipay")->__('Message Hipay: %s. Status: %s',
|
695 |
$gatewayResponse->getMessage(), $gatewayResponse->getStatus());
|
696 |
-
$order->
|
697 |
break;
|
698 |
}
|
699 |
|
700 |
-
|
701 |
if ($gatewayResponse->getState() == self::STATE_COMPLETED) {
|
702 |
if (in_array($gatewayResponse->getPaymentProduct(),
|
703 |
array('visa', 'american-express', 'mastercard', 'cb'))
|
@@ -769,34 +775,66 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
769 |
$this->_setFraudDetected($gatewayResponse, $customer, $payment, $amount, true);
|
770 |
}
|
771 |
|
772 |
-
|
773 |
if ($status == Mage_Sales_Model_Order::STATE_HOLDED && $order->canHold()) {
|
774 |
$order->hold();
|
775 |
} elseif ($status == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
|
776 |
$order->cancel();
|
777 |
}
|
778 |
|
779 |
-
|
780 |
-
$order->addStatusToHistory($status, Mage::helper('hipay')->getTransactionMessage(
|
781 |
$payment, $this->getOperation(), null, $amount, true, $gatewayResponse->getMessage()
|
782 |
-
));
|
783 |
|
784 |
$order->save();
|
785 |
-
|
786 |
break;
|
787 |
|
788 |
case self::STATE_ERROR:
|
789 |
default:
|
|
|
|
|
790 |
Mage::throwException($defaultExceptionMessage);
|
791 |
break;
|
792 |
|
793 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
794 |
}
|
795 |
|
796 |
/**
|
797 |
*
|
798 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $gatewayResponse
|
|
|
799 |
* @param Mage_Sales_Model_Order_Payment $payment
|
|
|
|
|
800 |
*/
|
801 |
protected function _setFraudDetected($gatewayResponse, $customer, $payment, $amount, $addToHistory = false)
|
802 |
{
|
@@ -807,6 +845,8 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
807 |
|
808 |
if (defined('Mage_Sales_Model_Order::STATUS_FRAUD')) {
|
809 |
$status = Mage_Sales_Model_Order::STATUS_FRAUD;
|
|
|
|
|
810 |
}
|
811 |
|
812 |
$payment->setAdditionalInformation('fraud_type', $fraudScreening['result']);
|
@@ -814,9 +854,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
814 |
$payment->setAdditionalInformation('fraud_review', $fraudScreening['review']);
|
815 |
|
816 |
if ($addToHistory) {
|
817 |
-
$order->
|
818 |
$payment, $this->getOperation(), null, $amount, true, $gatewayResponse->getMessage()
|
819 |
-
));
|
820 |
}
|
821 |
|
822 |
$message = Mage::helper('hipay')->__($gatewayResponse->getMessage());
|
@@ -878,22 +918,19 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
878 |
*
|
879 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $gatewayResponse
|
880 |
* @param Mage_Sales_Model_Order_Payment $payment
|
881 |
-
* @
|
|
|
882 |
*/
|
883 |
-
public function processResponseToRedirect($gatewayResponse, $payment
|
884 |
{
|
885 |
$order = $payment->getOrder();
|
886 |
-
$
|
887 |
|
888 |
switch ($this->getConfigPaymentAction()) {
|
889 |
case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE:
|
890 |
-
$requestType = self::OPERATION_AUTHORIZATION;
|
891 |
-
$newTransactionType = Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH;
|
892 |
$defaultExceptionMessage = Mage::helper('hipay')->__('Payment authorization error.');
|
893 |
break;
|
894 |
case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE:
|
895 |
-
$requestType = self::OPERATION_SALE;
|
896 |
-
$newTransactionType = Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE;
|
897 |
$defaultExceptionMessage = Mage::helper('hipay')->__('Payment capturing error.');
|
898 |
break;
|
899 |
}
|
@@ -903,7 +940,6 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
903 |
$urlAdmin = Mage::getUrl('adminhtml/sales_order/view', array('order_id' => $order->getId()));
|
904 |
}
|
905 |
|
906 |
-
|
907 |
if ($gatewayResponse->getState()) {
|
908 |
switch ($gatewayResponse->getState()) {
|
909 |
case self::STATE_COMPLETED:
|
@@ -941,11 +977,12 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
941 |
|
942 |
}
|
943 |
}
|
|
|
944 |
}
|
945 |
|
946 |
/**
|
947 |
*
|
948 |
-
* @return Allopass_Hipay_Helper_Data
|
949 |
*/
|
950 |
protected function getHelper()
|
951 |
{
|
@@ -957,6 +994,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
957 |
*
|
958 |
* @param Mage_Customer_Model_Customer $customer
|
959 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $response
|
|
|
960 |
*/
|
961 |
protected function responseToCustomer($customer, $response)
|
962 |
{
|
@@ -967,9 +1005,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
967 |
|
968 |
/**
|
969 |
*
|
970 |
-
* @param Mage_Sales_Model_Order_Payment $payment
|
971 |
* @param float $amount
|
972 |
-
* @return @return Mage_Payment_Model_Abstract
|
973 |
*/
|
974 |
public function refund(Varien_Object $payment, $amount)
|
975 |
{
|
@@ -979,8 +1017,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
979 |
|
980 |
$gatewayParams = array('operation' => 'refund', 'amount' => $amount);
|
981 |
|
982 |
-
if (Mage::
|
983 |
-
$gatewayParams['basket'] = Mage::helper('hipay')->getCartInformation($payment->getOrder(),
|
|
|
984 |
}
|
985 |
|
986 |
/* @var $request Allopass_Hipay_Model_Api_Request */
|
@@ -989,12 +1028,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
989 |
|
990 |
|
991 |
$this->_debug($gatewayParams);
|
992 |
-
|
993 |
$gatewayResponse = $request->gatewayRequest($action, $gatewayParams, $payment->getOrder()->getStoreId());
|
994 |
-
|
995 |
$this->_debug($gatewayResponse->debug());
|
996 |
|
997 |
-
|
998 |
switch ($gatewayResponse->getStatus()) {
|
999 |
case "124":
|
1000 |
case "125":
|
@@ -1011,23 +1047,20 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1011 |
}
|
1012 |
|
1013 |
return $this;
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
$params = array();
|
1026 |
-
|
1027 |
$params['orderid'] = $payment->getOrder()->getIncrementId();
|
1028 |
-
|
1029 |
$paymentProduct = null;
|
1030 |
-
|
1031 |
$longDesc = "";
|
1032 |
|
1033 |
$taxAmount = $payment->getOrder()->getTaxAmount();
|
@@ -1041,7 +1074,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1041 |
$paymentsSplit = $this->getHelper()->splitPayment((int)$profile, $amount, $taxAmount);
|
1042 |
|
1043 |
$amount = $paymentsSplit[0]['amountToPay'];
|
1044 |
-
$taxAmount =
|
1045 |
}
|
1046 |
}
|
1047 |
|
@@ -1051,7 +1084,6 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1051 |
|
1052 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
1053 |
|
1054 |
-
|
1055 |
if ($useOrderCurrency) {
|
1056 |
$params['currency'] = $payment->getOrder()->getOrderCurrencyCode();
|
1057 |
} else {
|
@@ -1064,6 +1096,11 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1064 |
|
1065 |
$params['cid'] = $payment->getOrder()->getCustomerId();//CUSTOMER ID
|
1066 |
|
|
|
|
|
|
|
|
|
|
|
1067 |
$remoteIp = $payment->getOrder()->getRemoteIp();
|
1068 |
|
1069 |
//Check if it's forwarded and in this case, explode and retrieve the first part
|
@@ -1157,12 +1194,12 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1157 |
$customDataHipay = Mage::helper('hipay')->getCustomData($payment, $amount, $this, $split_number);
|
1158 |
|
1159 |
// Add custom data for transaction request
|
1160 |
-
if(file_exists(Mage::getModuleDir('','Allopass_Hipay')
|
1161 |
-
if (class_exists('Allopass_Hipay_Helper_CustomData',true)){
|
1162 |
-
if (method_exists(Mage::helper('hipay/customData'),'getCustomData')){
|
1163 |
-
$customData = Mage::helper('hipay/customData')->getCustomData($payment
|
1164 |
-
if (is_array($customData)){
|
1165 |
-
$customDataHipay = array_merge($customData
|
1166 |
}
|
1167 |
}
|
1168 |
}
|
@@ -1173,8 +1210,18 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1173 |
// Add device fingerprint for the transaction request (Token of device)
|
1174 |
$params['device_fingerprint'] = $payment->getAdditionalInformation('device_fingerprint');
|
1175 |
|
1176 |
-
if (Mage::
|
1177 |
-
$params['basket'] = Mage::helper('hipay')->getCartInformation($payment->getOrder(),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1178 |
}
|
1179 |
|
1180 |
// Add Request resource (Informations module and cms)
|
@@ -1264,7 +1311,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1264 |
|
1265 |
/**
|
1266 |
*
|
1267 |
-
* @param
|
|
|
|
|
1268 |
*/
|
1269 |
public function paySplitPayment($splitPayment)
|
1270 |
{
|
@@ -1300,6 +1349,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1300 |
|
1301 |
return $gatewayResponse->getState();
|
1302 |
}
|
|
|
1303 |
}
|
1304 |
|
1305 |
protected function getCcTypeHipay($ccTypeMagento)
|
@@ -1345,6 +1395,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1345 |
*
|
1346 |
* @param Mage_Sales_Model_Order_Payment $payment
|
1347 |
* @param float $amount
|
|
|
1348 |
*/
|
1349 |
protected function _preauthorizeCapture($payment, $amount)
|
1350 |
{
|
@@ -1352,8 +1403,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1352 |
|
1353 |
$gatewayParams = array('operation' => 'capture', 'amount' => $amount);
|
1354 |
|
1355 |
-
if (Mage::
|
1356 |
-
$gatewayParams['basket'] = Mage::helper('hipay')->getCartInformation($payment->getOrder(),
|
|
|
1357 |
}
|
1358 |
|
1359 |
$this->_debug($gatewayParams);
|
@@ -1414,7 +1466,8 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1414 |
* @param string $transactionType
|
1415 |
* @param array $transactionDetails
|
1416 |
* @param array $transactionAdditionalInfo
|
1417 |
-
* @
|
|
|
1418 |
*/
|
1419 |
public function addTransaction(
|
1420 |
Mage_Sales_Model_Order_Payment $payment,
|
@@ -1472,7 +1525,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1472 |
* @param string $type
|
1473 |
* @param Mage_Sales_Model_Abstract $salesDocument
|
1474 |
* @param bool $failsafe
|
1475 |
-
* @return
|
1476 |
*/
|
1477 |
protected function _addTransaction($payment, $type, $salesDocument = null, $failsafe = false)
|
1478 |
{
|
@@ -1528,14 +1581,16 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1528 |
}
|
1529 |
return $transaction;
|
1530 |
}
|
|
|
1531 |
}
|
1532 |
|
1533 |
/**
|
1534 |
* Find one transaction by ID or type
|
1535 |
-
* @param
|
1536 |
* @param string $txnId
|
1537 |
-
* @param string $txnType
|
1538 |
-
* @return Mage_Sales_Model_Order_Payment_Transaction
|
|
|
1539 |
*/
|
1540 |
protected function _lookupTransaction($payment, $txnId, $txnType = false)
|
1541 |
{
|
@@ -1575,9 +1630,10 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1575 |
*/
|
1576 |
public function canUseForCurrency($currencyCode)
|
1577 |
{
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
|
|
1581 |
return true;
|
1582 |
}
|
1583 |
|
@@ -1608,7 +1664,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1608 |
|
1609 |
/**
|
1610 |
*
|
1611 |
-
* @return Mage_Checkout_Model_Session
|
1612 |
*/
|
1613 |
protected function _getCheckout()
|
1614 |
{
|
@@ -1620,7 +1676,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1620 |
*
|
1621 |
* @param mixed $debugData
|
1622 |
*/
|
1623 |
-
|
1624 |
{
|
1625 |
if ($this->getDebugFlag()) {
|
1626 |
Mage::getModel('hipay/log_adapter', 'payment_' . $this->getCode() . '.log')
|
@@ -1667,6 +1723,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1667 |
/**
|
1668 |
* Return an id with informations to TPP
|
1669 |
*
|
|
|
1670 |
* @return string
|
1671 |
*/
|
1672 |
public function generateSplitOrderId($splitPayment)
|
95 |
public function assignInfoData($info, $data)
|
96 |
{
|
97 |
$oneclickMode = $data->getData($this->getCode() . '_oneclick');
|
98 |
+
/** @noinspection PhpUndefinedMethodInspection */
|
99 |
$oneclickCard = $data->getData($this->getCode() . '_oneclick_card');
|
100 |
$splitPaymentId = $data->getData($this->getCode() . '_split_payment_id');
|
101 |
$token = $data->getData($this->getCode() . '_cc_token');
|
111 |
/**
|
112 |
* A request instructing the payment gateway to cancel a previously authorized transaction.
|
113 |
* Only authorized transactions can be cancelled, captured transactions must be refunded.
|
114 |
+
* @param Mage_Payment_Model_Info $payment
|
115 |
+
* @return bool
|
116 |
*/
|
117 |
public function cancelTransaction(Mage_Payment_Model_Info $payment)
|
118 |
{
|
158 |
public function acceptPayment(Mage_Payment_Model_Info $payment)
|
159 |
{
|
160 |
parent::acceptPayment($payment);
|
|
|
161 |
$amount = $payment->getAmountAuthorized();
|
162 |
|
163 |
$transactionId = $payment->getLastTransId();
|
189 |
|
190 |
/*@var $payment Mage_Sales_Model_Order_Payment */
|
191 |
parent::denyPayment($payment);
|
|
|
192 |
$amount = $payment->getAmountAuthorized();
|
193 |
|
194 |
$transactionId = $payment->getLastTransId();
|
218 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $gatewayResponse
|
219 |
* @param Mage_Sales_Model_Order_Payment $payment
|
220 |
* @param float $amount
|
221 |
+
* @return bool
|
222 |
*/
|
223 |
public function processResponse($gatewayResponse, $payment, $amount)
|
224 |
{
|
225 |
+
$logs = array();
|
226 |
$order = $payment->getOrder();
|
227 |
+
$newTransactionType = null;
|
228 |
+
$requestType = null;
|
229 |
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
230 |
+
$defaultExceptionMessage = Mage::helper('hipay')->__('Payment error.');
|
231 |
|
232 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
233 |
|
239 |
$total = $order->getBaseGrandTotal();
|
240 |
}
|
241 |
|
242 |
+
// Process some logs if debug mode is enabled
|
243 |
+
$logs['HIPAY PROCESS RESPONSE START'] = '';
|
244 |
+
$logs['Gateway Status'] = $gatewayResponse->getStatus();
|
245 |
+
$logs['Order Status'] = $order->getStatus();
|
246 |
+
$logs['UseOrderCurrency'] = $useOrderCurrency;
|
247 |
+
$logs['Currency'] = $currency->getData("currency_code");
|
248 |
+
$logs['Total'] = $total;
|
249 |
+
$logs['Amount'] = $amount;
|
250 |
|
251 |
switch ($this->getConfigPaymentAction()) {
|
252 |
case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE:
|
300 |
$order->cancel();
|
301 |
}
|
302 |
|
303 |
+
$order->addStatusHistoryComment(Mage::helper('hipay')->getTransactionMessage(
|
304 |
$payment, self::OPERATION_AUTHORIZATION, null, $amount, true, $gatewayResponse->getMessage()
|
305 |
+
),$status);
|
306 |
|
307 |
$order->save();
|
308 |
|
487 |
|
488 |
|
489 |
break;
|
490 |
+
/** @noinspection PhpMissingBreakStatementInspection */
|
491 |
case 117: //Capture Requested
|
492 |
|
493 |
if ($order->getStatus() == 'capture' || $order->getStatus() == 'processing') {// for logic process
|
507 |
|
508 |
$message = Mage::helper("hipay")->__('Capture Requested by Hipay.');
|
509 |
|
510 |
+
/** @noinspection PhpMethodParametersCountMismatchInspection */
|
511 |
$order->setState(
|
512 |
Mage_Sales_Model_Order::STATE_PROCESSING, 'capture_requested', $message, null, false
|
513 |
);
|
521 |
}
|
522 |
|
523 |
case 118: //Capture. There are 2 ways to enter in this case: 1. direct capture notification. 2. After 117 case, when it is configured for valid order with 117 status.
|
524 |
+
$acceptMessage = Mage::helper("hipay")->__('Payment accepted by Hipay.');
|
525 |
+
|
526 |
+
if (!$status = $this->getConfigData('order_status_payment_accepted')) {
|
527 |
+
$status = $order->getStatus();
|
528 |
+
}
|
529 |
|
530 |
if ($order->getStatus() == $this->getConfigData('order_status_payment_accepted')) {
|
531 |
break;
|
542 |
}
|
543 |
|
544 |
//Check if it is split payment and insert it
|
|
|
545 |
if (($profile = (int)$payment->getAdditionalInformation('split_payment_id')) && $customer->getId()) {
|
546 |
$token = isset($gatewayResponse->paymentMethod['token']) ? $gatewayResponse->paymentMethod['token'] : $gatewayResponse->getData('cardtoken');
|
547 |
$this->getHelper()->insertSplitPayment($order, $profile, $customer->getId(), $token);
|
553 |
|
554 |
// Create invoice
|
555 |
if ($this->getConfigData('invoice_create', $order->getStoreId()) && !$order->hasInvoices()) {
|
556 |
+
if (abs($amount - $total) > Allopass_Hipay_Helper_Data::EPSYLON && !$profile && $order->getState() != Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW) {
|
|
|
557 |
$transactionId = $gatewayResponse->getTransactionReference();
|
558 |
+
$order->addStatusHistoryComment(Mage::helper('hipay')->__('Notification "Capture". Capture issued by merchant. Registered notification about captured amount of %s. Transaction ID: "%s".
|
559 |
+
Invoice has not been created. Please create offline Invoice. ( Authorized amount was %s )',
|
560 |
+
$currency->formatTxt($amount), $transactionId, $currency->formatTxt($total)),
|
561 |
+
false);
|
562 |
+
|
563 |
+
// In case of 117 is disabled or not received
|
564 |
+
if ($order->getStatus() != Mage_Sales_Model_Order::STATE_PROCESSING) {
|
565 |
+
$this->processStatusOrder($order, $status, $acceptMessage);
|
566 |
+
}
|
567 |
break;
|
568 |
}
|
|
|
569 |
$invoice = $this->create_invoice($order, $gatewayResponse->getTransactionReference(),
|
570 |
false);
|
571 |
|
572 |
Mage::getModel('core/resource_transaction')
|
573 |
->addObject($invoice)->addObject($invoice->getOrder())
|
574 |
->save();
|
575 |
+
$logs['Create invoice'] = $invoice->getIncrementId();
|
576 |
} elseif ($order->hasInvoices()) {
|
577 |
foreach ($order->getInvoiceCollection() as $invoice) {
|
578 |
if ($invoice->getState() == Mage_Sales_Model_Order_Invoice::STATE_OPEN && (round(($invoice->getBaseGrandTotal() + $order->getBaseTotalPaid()),
|
579 |
+
2) == $gatewayResponse->getCapturedAmount() || round(($invoice->getBaseGrandTotal()),
|
580 |
+
2) == $gatewayResponse->getCapturedAmount())
|
581 |
) {
|
582 |
$invoice->pay();
|
583 |
+
$logs['Pay invoice'] = $invoice->invoice->getIncrementId() . ' ' . $invoice->getBaseGrandTotal();
|
584 |
Mage::getModel('core/resource_transaction')
|
585 |
->addObject($invoice)->addObject($invoice->getOrder())
|
586 |
->save();
|
591 |
if (($profile = (int)$payment->getAdditionalInformation('split_payment_id')) && $customer->getId()) {
|
592 |
$token = isset($gatewayResponse->paymentMethod['token']) ? $gatewayResponse->paymentMethod['token'] : $gatewayResponse->getData('cardtoken');
|
593 |
$this->getHelper()->insertSplitPayment($order, $profile, $customer->getId(), $token);
|
594 |
+
$logs['Insert Split Payment'] = 'Customer : ' . $customer->getId() . ' Split' . $payment->getAdditionalInformation('split_payment_id');
|
595 |
}
|
596 |
|
597 |
+
$this->processStatusOrder($order, $status, $acceptMessage);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
|
599 |
$payment->setAmountAuthorized($gatewayResponse->getAuthorizedAmount());
|
600 |
$payment->setBaseAmountAuthorized($gatewayResponse->getAuthorizedAmount());
|
618 |
|
619 |
$message = Mage::helper("hipay")->__('Refund Requested by Hipay.');
|
620 |
|
621 |
+
/** @noinspection PhpMethodParametersCountMismatchInspection */
|
622 |
$order->setState(
|
623 |
Mage_Sales_Model_Order::STATE_PROCESSING, 'refund_requested', $message, null, false
|
624 |
);
|
654 |
|
655 |
$message = Mage::helper("hipay")->__('Refund accepted by Hipay.');
|
656 |
|
657 |
+
$order-> $order->addStatusHistoryComment($message,$status);
|
658 |
|
659 |
Mage::getModel('core/resource_transaction')
|
660 |
->addObject($creditmemo)->addObject($creditmemo->getOrder())
|
700 |
default:
|
701 |
$message = Mage::helper("hipay")->__('Message Hipay: %s. Status: %s',
|
702 |
$gatewayResponse->getMessage(), $gatewayResponse->getStatus());
|
703 |
+
$order->addStatusHistoryComment($message,$order->getStatus());
|
704 |
break;
|
705 |
}
|
706 |
|
|
|
707 |
if ($gatewayResponse->getState() == self::STATE_COMPLETED) {
|
708 |
if (in_array($gatewayResponse->getPaymentProduct(),
|
709 |
array('visa', 'american-express', 'mastercard', 'cb'))
|
775 |
$this->_setFraudDetected($gatewayResponse, $customer, $payment, $amount, true);
|
776 |
}
|
777 |
|
|
|
778 |
if ($status == Mage_Sales_Model_Order::STATE_HOLDED && $order->canHold()) {
|
779 |
$order->hold();
|
780 |
} elseif ($status == Mage_Sales_Model_Order::STATE_CANCELED && $order->canCancel()) {
|
781 |
$order->cancel();
|
782 |
}
|
783 |
|
784 |
+
$order->addStatusHistoryComment(Mage::helper('hipay')->getTransactionMessage(
|
|
|
785 |
$payment, $this->getOperation(), null, $amount, true, $gatewayResponse->getMessage()
|
786 |
+
),$status);
|
787 |
|
788 |
$order->save();
|
|
|
789 |
break;
|
790 |
|
791 |
case self::STATE_ERROR:
|
792 |
default:
|
793 |
+
$logs['HIPAY PROCESS RESPONSE ERROR '] = '';
|
794 |
+
$this->debugData($logs);
|
795 |
Mage::throwException($defaultExceptionMessage);
|
796 |
break;
|
797 |
|
798 |
}
|
799 |
+
$logs['HIPAY PROCESS RESPONSE END'] = '';
|
800 |
+
$this->debugData($logs);
|
801 |
+
|
802 |
+
return true;
|
803 |
+
}
|
804 |
+
|
805 |
+
/**
|
806 |
+
*Change Status of order when capture is done
|
807 |
+
*
|
808 |
+
* @param $order
|
809 |
+
* @param $status
|
810 |
+
* @param $message
|
811 |
+
*/
|
812 |
+
protected function processStatusOrder($order, $status, $message)
|
813 |
+
{
|
814 |
+
if ($status == Mage_Sales_Model_Order::STATE_PROCESSING) {
|
815 |
+
$order->setState(
|
816 |
+
Mage_Sales_Model_Order::STATE_PROCESSING, $status, $message
|
817 |
+
);
|
818 |
+
} else {
|
819 |
+
if ($status == Mage_Sales_Model_Order::STATE_COMPLETE) {
|
820 |
+
$order->setData('state', Mage_Sales_Model_Order::STATE_COMPLETE);
|
821 |
+
$order->addStatusToHistory($status, $message, true);
|
822 |
+
/*$order->setState(
|
823 |
+
Mage_Sales_Model_Order::STATE_COMPLETE, $status, $message, null, false
|
824 |
+
);*/
|
825 |
+
} else {
|
826 |
+
$order->addStatusToHistory($status, $message, true);
|
827 |
+
}
|
828 |
+
}
|
829 |
}
|
830 |
|
831 |
/**
|
832 |
*
|
833 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $gatewayResponse
|
834 |
+
* @param $customer
|
835 |
* @param Mage_Sales_Model_Order_Payment $payment
|
836 |
+
* @param $amount
|
837 |
+
* @param bool $addToHistory
|
838 |
*/
|
839 |
protected function _setFraudDetected($gatewayResponse, $customer, $payment, $amount, $addToHistory = false)
|
840 |
{
|
845 |
|
846 |
if (defined('Mage_Sales_Model_Order::STATUS_FRAUD')) {
|
847 |
$status = Mage_Sales_Model_Order::STATUS_FRAUD;
|
848 |
+
}else{
|
849 |
+
$status = null;
|
850 |
}
|
851 |
|
852 |
$payment->setAdditionalInformation('fraud_type', $fraudScreening['result']);
|
854 |
$payment->setAdditionalInformation('fraud_review', $fraudScreening['review']);
|
855 |
|
856 |
if ($addToHistory) {
|
857 |
+
$order->addStatusHistoryComment(Mage::helper('hipay')->getTransactionMessage(
|
858 |
$payment, $this->getOperation(), null, $amount, true, $gatewayResponse->getMessage()
|
859 |
+
),$status);
|
860 |
}
|
861 |
|
862 |
$message = Mage::helper('hipay')->__($gatewayResponse->getMessage());
|
918 |
*
|
919 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $gatewayResponse
|
920 |
* @param Mage_Sales_Model_Order_Payment $payment
|
921 |
+
* @return bool|string
|
922 |
+
* @internal param float $amount
|
923 |
*/
|
924 |
+
public function processResponseToRedirect($gatewayResponse, $payment)
|
925 |
{
|
926 |
$order = $payment->getOrder();
|
927 |
+
$defaultExceptionMessage = Mage::helper('hipay')->__('Payment error.');
|
928 |
|
929 |
switch ($this->getConfigPaymentAction()) {
|
930 |
case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE:
|
|
|
|
|
931 |
$defaultExceptionMessage = Mage::helper('hipay')->__('Payment authorization error.');
|
932 |
break;
|
933 |
case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE:
|
|
|
|
|
934 |
$defaultExceptionMessage = Mage::helper('hipay')->__('Payment capturing error.');
|
935 |
break;
|
936 |
}
|
940 |
$urlAdmin = Mage::getUrl('adminhtml/sales_order/view', array('order_id' => $order->getId()));
|
941 |
}
|
942 |
|
|
|
943 |
if ($gatewayResponse->getState()) {
|
944 |
switch ($gatewayResponse->getState()) {
|
945 |
case self::STATE_COMPLETED:
|
977 |
|
978 |
}
|
979 |
}
|
980 |
+
return true;
|
981 |
}
|
982 |
|
983 |
/**
|
984 |
*
|
985 |
+
* @return Allopass_Hipay_Helper_Data|Mage_Core_Helper_Abstract
|
986 |
*/
|
987 |
protected function getHelper()
|
988 |
{
|
994 |
*
|
995 |
* @param Mage_Customer_Model_Customer $customer
|
996 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $response
|
997 |
+
* @return $this
|
998 |
*/
|
999 |
protected function responseToCustomer($customer, $response)
|
1000 |
{
|
1005 |
|
1006 |
/**
|
1007 |
*
|
1008 |
+
* @param Mage_Sales_Model_Order_Payment|Varien_Object $payment
|
1009 |
* @param float $amount
|
1010 |
+
* @return $this|Mage_Payment_Model_Abstract @return Mage_Payment_Model_Abstract
|
1011 |
*/
|
1012 |
public function refund(Varien_Object $payment, $amount)
|
1013 |
{
|
1017 |
|
1018 |
$gatewayParams = array('operation' => 'refund', 'amount' => $amount);
|
1019 |
|
1020 |
+
if (Mage::helper('hipay')->isSendCartItemsRequired($payment->getCcType())) {
|
1021 |
+
$gatewayParams['basket'] = Mage::helper('hipay')->getCartInformation($payment->getOrder(),
|
1022 |
+
Allopass_Hipay_Helper_Data::STATE_REFUND, $payment);
|
1023 |
}
|
1024 |
|
1025 |
/* @var $request Allopass_Hipay_Model_Api_Request */
|
1028 |
|
1029 |
|
1030 |
$this->_debug($gatewayParams);
|
|
|
1031 |
$gatewayResponse = $request->gatewayRequest($action, $gatewayParams, $payment->getOrder()->getStoreId());
|
|
|
1032 |
$this->_debug($gatewayResponse->debug());
|
1033 |
|
|
|
1034 |
switch ($gatewayResponse->getStatus()) {
|
1035 |
case "124":
|
1036 |
case "125":
|
1047 |
}
|
1048 |
|
1049 |
return $this;
|
1050 |
+
}
|
1051 |
+
|
1052 |
+
/**
|
1053 |
+
*
|
1054 |
+
* @param Mage_Sales_Model_Order_Payment $payment
|
1055 |
+
* @param float $amount
|
1056 |
+
* @param string|null $token
|
1057 |
+
* @return multitype:
|
1058 |
+
*/
|
1059 |
+
public function getGatewayParams($payment,$amount,$token=null)
|
1060 |
+
{
|
1061 |
$params = array();
|
|
|
1062 |
$params['orderid'] = $payment->getOrder()->getIncrementId();
|
|
|
1063 |
$paymentProduct = null;
|
|
|
1064 |
$longDesc = "";
|
1065 |
|
1066 |
$taxAmount = $payment->getOrder()->getTaxAmount();
|
1074 |
$paymentsSplit = $this->getHelper()->splitPayment((int)$profile, $amount, $taxAmount);
|
1075 |
|
1076 |
$amount = $paymentsSplit[0]['amountToPay'];
|
1077 |
+
$taxAmount = $paymentsSplit[0]['taxAmountToPay'];
|
1078 |
}
|
1079 |
}
|
1080 |
|
1084 |
|
1085 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
1086 |
|
|
|
1087 |
if ($useOrderCurrency) {
|
1088 |
$params['currency'] = $payment->getOrder()->getOrderCurrencyCode();
|
1089 |
} else {
|
1096 |
|
1097 |
$params['cid'] = $payment->getOrder()->getCustomerId();//CUSTOMER ID
|
1098 |
|
1099 |
+
// Astropay needs National identification number
|
1100 |
+
if (!empty($payment->getAdditionalInformation('national_identification_number'))){
|
1101 |
+
$params['national_identification_number'] = $payment->getAdditionalInformation('national_identification_number');
|
1102 |
+
}
|
1103 |
+
|
1104 |
$remoteIp = $payment->getOrder()->getRemoteIp();
|
1105 |
|
1106 |
//Check if it's forwarded and in this case, explode and retrieve the first part
|
1194 |
$customDataHipay = Mage::helper('hipay')->getCustomData($payment, $amount, $this, $split_number);
|
1195 |
|
1196 |
// Add custom data for transaction request
|
1197 |
+
if (file_exists(Mage::getModuleDir('', 'Allopass_Hipay') . DS . 'Helper' . DS . 'CustomData.php')) {
|
1198 |
+
if (class_exists('Allopass_Hipay_Helper_CustomData', true)) {
|
1199 |
+
if (method_exists(Mage::helper('hipay/customData'), 'getCustomData')) {
|
1200 |
+
$customData = Mage::helper('hipay/customData')->getCustomData($payment, $amount);
|
1201 |
+
if (is_array($customData)) {
|
1202 |
+
$customDataHipay = array_merge($customData, $customDataHipay);
|
1203 |
}
|
1204 |
}
|
1205 |
}
|
1210 |
// Add device fingerprint for the transaction request (Token of device)
|
1211 |
$params['device_fingerprint'] = $payment->getAdditionalInformation('device_fingerprint');
|
1212 |
|
1213 |
+
if (Mage::helper('hipay')->isSendCartItemsRequired($payment->getCcType())) {
|
1214 |
+
$params['basket'] = Mage::helper('hipay')->getCartInformation($payment->getOrder(),
|
1215 |
+
Allopass_Hipay_Helper_Data::STATE_AUTHORIZATION);
|
1216 |
+
}
|
1217 |
+
|
1218 |
+
// Check if delivery method is required for the payment method
|
1219 |
+
if (Mage::helper('hipay')->isDeliveryMethodAndCartItemsRequired($payment->getCcType())) {
|
1220 |
+
if (!empty($payment->getOrder()->getShippingMethod()) && !$payment->getOrder()->getIsVirtual()) {
|
1221 |
+
Mage::helper('hipay')->processDeliveryInformation($payment->getOrder()->getShippingMethod(), Mage::app()->getStore(),$this, $params);
|
1222 |
+
} else{
|
1223 |
+
//TODO
|
1224 |
+
}
|
1225 |
}
|
1226 |
|
1227 |
// Add Request resource (Informations module and cms)
|
1311 |
|
1312 |
/**
|
1313 |
*
|
1314 |
+
* @param $splitPayment
|
1315 |
+
* @return bool
|
1316 |
+
* @internal param Allopass_Hipay_Model_SplitPayment $spiltPayment
|
1317 |
*/
|
1318 |
public function paySplitPayment($splitPayment)
|
1319 |
{
|
1349 |
|
1350 |
return $gatewayResponse->getState();
|
1351 |
}
|
1352 |
+
return false;
|
1353 |
}
|
1354 |
|
1355 |
protected function getCcTypeHipay($ccTypeMagento)
|
1395 |
*
|
1396 |
* @param Mage_Sales_Model_Order_Payment $payment
|
1397 |
* @param float $amount
|
1398 |
+
* @return $this
|
1399 |
*/
|
1400 |
protected function _preauthorizeCapture($payment, $amount)
|
1401 |
{
|
1403 |
|
1404 |
$gatewayParams = array('operation' => 'capture', 'amount' => $amount);
|
1405 |
|
1406 |
+
if (Mage::helper('hipay')->isSendCartItemsRequired($payment->getCcType())) {
|
1407 |
+
$gatewayParams['basket'] = Mage::helper('hipay')->getCartInformation($payment->getOrder(),
|
1408 |
+
Allopass_Hipay_Helper_Data::STATE_CAPTURE);
|
1409 |
}
|
1410 |
|
1411 |
$this->_debug($gatewayParams);
|
1466 |
* @param string $transactionType
|
1467 |
* @param array $transactionDetails
|
1468 |
* @param array $transactionAdditionalInfo
|
1469 |
+
* @param bool $message
|
1470 |
+
* @return Mage_Sales_Model_Order_Payment_Transaction|null
|
1471 |
*/
|
1472 |
public function addTransaction(
|
1473 |
Mage_Sales_Model_Order_Payment $payment,
|
1525 |
* @param string $type
|
1526 |
* @param Mage_Sales_Model_Abstract $salesDocument
|
1527 |
* @param bool $failsafe
|
1528 |
+
* @return bool|Mage_Sales_Model_Order_Payment_Transaction|null
|
1529 |
*/
|
1530 |
protected function _addTransaction($payment, $type, $salesDocument = null, $failsafe = false)
|
1531 |
{
|
1581 |
}
|
1582 |
return $transaction;
|
1583 |
}
|
1584 |
+
return false;
|
1585 |
}
|
1586 |
|
1587 |
/**
|
1588 |
* Find one transaction by ID or type
|
1589 |
+
* @param $payment
|
1590 |
* @param string $txnId
|
1591 |
+
* @param bool|string $txnType
|
1592 |
+
* @return false|Mage_Sales_Model_Order_Payment_Transaction
|
1593 |
+
* @internal param $Mage_Sales_Model_Order_Payment
|
1594 |
*/
|
1595 |
protected function _lookupTransaction($payment, $txnId, $txnType = false)
|
1596 |
{
|
1630 |
*/
|
1631 |
public function canUseForCurrency($currencyCode)
|
1632 |
{
|
1633 |
+
if (empty( $this->getConfigData('currency')) || $currencyCode == $this->getConfigData('currency')
|
1634 |
+
|| in_array($currencyCode, $this->getConfigData('currency'))) {
|
1635 |
+
return true;
|
1636 |
+
}
|
1637 |
return true;
|
1638 |
}
|
1639 |
|
1664 |
|
1665 |
/**
|
1666 |
*
|
1667 |
+
* @return Mage_Checkout_Model_Session|Mage_Core_Model_Abstract
|
1668 |
*/
|
1669 |
protected function _getCheckout()
|
1670 |
{
|
1676 |
*
|
1677 |
* @param mixed $debugData
|
1678 |
*/
|
1679 |
+
public function _debug($debugData)
|
1680 |
{
|
1681 |
if ($this->getDebugFlag()) {
|
1682 |
Mage::getModel('hipay/log_adapter', 'payment_' . $this->getCode() . '.log')
|
1723 |
/**
|
1724 |
* Return an id with informations to TPP
|
1725 |
*
|
1726 |
+
* @param $splitPayment
|
1727 |
* @return string
|
1728 |
*/
|
1729 |
public function generateSplitOrderId($splitPayment)
|
app/code/community/Allopass/Hipay/Model/Method/AbstractOrder.php
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Model_Method_AbstractOrder extends Allopass_Hipay_Model_Method_Cc
|
4 |
+
{
|
5 |
+
protected $_formBlockType = 'hipay/form_hosted';
|
6 |
+
protected $_infoBlockType = 'hipay/info_hosted';
|
7 |
+
|
8 |
+
|
9 |
+
public function getOrderPlaceRedirectUrl()
|
10 |
+
{
|
11 |
+
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Assign data to info model instance
|
16 |
+
*
|
17 |
+
* @param mixed $data
|
18 |
+
* @return Mage_Payment_Model_Info
|
19 |
+
*/
|
20 |
+
public function assignData($data)
|
21 |
+
{
|
22 |
+
if (!($data instanceof Varien_Object)) {
|
23 |
+
$data = new Varien_Object($data);
|
24 |
+
}
|
25 |
+
$info = $this->getInfoInstance();
|
26 |
+
$info->setCcType($this->getConfigData('cctypes'));
|
27 |
+
|
28 |
+
$this->assignInfoData($info, $data);
|
29 |
+
|
30 |
+
return $this;
|
31 |
+
}
|
32 |
+
|
33 |
+
public function initialize($paymentAction, $stateObject)
|
34 |
+
{
|
35 |
+
/* @var $payment Mage_Sales_Model_Order_Payment */
|
36 |
+
$payment = $this->getInfoInstance();
|
37 |
+
$order = $payment->getOrder();
|
38 |
+
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
39 |
+
|
40 |
+
|
41 |
+
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
42 |
+
{
|
43 |
+
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
44 |
+
$card = Mage::getModel('hipay/card')->load($cardId);
|
45 |
+
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
46 |
+
$token = $card->getCcToken();
|
47 |
+
else
|
48 |
+
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
49 |
+
|
50 |
+
$payment->setAdditionalInformation('token',$token);
|
51 |
+
}
|
52 |
+
|
53 |
+
return $this;
|
54 |
+
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
protected function getCcTypeHipay($ccTypeMagento)
|
59 |
+
{
|
60 |
+
return $ccTypeMagento;
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Validate payment method information object
|
65 |
+
*
|
66 |
+
* @param Mage_Payment_Model_Info $info
|
67 |
+
* @return Mage_Payment_Model_Abstract
|
68 |
+
*/
|
69 |
+
public function validate()
|
70 |
+
{
|
71 |
+
/**
|
72 |
+
* to validate payment method is allowed for billing country or not
|
73 |
+
*/
|
74 |
+
$paymentInfo = $this->getInfoInstance();
|
75 |
+
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
76 |
+
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
77 |
+
} else {
|
78 |
+
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
79 |
+
}
|
80 |
+
if (!$this->canUseForCountry($billingCountry)) {
|
81 |
+
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
82 |
+
}
|
83 |
+
return $this;
|
84 |
+
}
|
85 |
+
|
86 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Astropay.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Astropay extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
+
{
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Validate payment method information object
|
7 |
+
*
|
8 |
+
* @param Mage_Payment_Model_Info $info
|
9 |
+
* @return Mage_Payment_Model_Abstract
|
10 |
+
*/
|
11 |
+
public function validate()
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* to validate payment method is allowed for billing country or not
|
15 |
+
*/
|
16 |
+
$paymentInfo = $this->getInfoInstance();
|
17 |
+
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
18 |
+
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
19 |
+
} else {
|
20 |
+
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
21 |
+
}
|
22 |
+
if (!$this->canUseForCountry($billingCountry)) {
|
23 |
+
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
24 |
+
}
|
25 |
+
|
26 |
+
// Validate CPF format
|
27 |
+
if ($this->_typeIdentification == 'cpf'){
|
28 |
+
if (!preg_match("/(\d{2}[.]?\d{3}[.]?\d{3}[\/]?\d{4}[-]?\d{2})|(\d{3}[.]?\d{3}[.]?\d{3}[-]?\d{2})$/",$paymentInfo->getAdditionalInformation('national_identification_number'))){
|
29 |
+
Mage::throwException(Mage::helper('payment')->__('CPF is not valid.' . $paymentInfo->getAdditionalInformation('national_identification_number')));
|
30 |
+
}
|
31 |
+
}
|
32 |
+
|
33 |
+
// Validate CPN format
|
34 |
+
if ($this->_typeIdentification == 'cpn'){
|
35 |
+
if (!preg_match("/^[a-zA-Z]{4}\d{6}[a-zA-Z]{6}\d{2}$/",$paymentInfo->getAdditionalInformation('national_identification_number'))){
|
36 |
+
Mage::throwException(Mage::helper('payment')->__('CPN is incorrect.'));
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
return $this;
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Return the type for national identification number
|
45 |
+
*
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
+
public function getTypeNationalIdentification(){
|
49 |
+
return $this->_typeIdentification;
|
50 |
+
}
|
51 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Aura.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Aura extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_aura';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpf';
|
7 |
+
|
8 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Banamex.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Banamex extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_banamex';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpn';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Banco.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Banco extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_banco';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpf';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Bbva.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Bbva extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_bbva';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpn';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Boleto.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Boleto extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_boleto';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpf';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Bradesco.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Bradesco extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_bradesco';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpf';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Caixa.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Caixa extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_caixa';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpf';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Cc.php
CHANGED
@@ -179,8 +179,7 @@ class Allopass_Hipay_Model_Method_Cc extends Allopass_Hipay_Model_Method_Abstrac
|
|
179 |
$gatewayParams = $this->getGatewayParams($payment, $amount,$token);
|
180 |
|
181 |
$gatewayParams['operation'] =$this->getOperation();
|
182 |
-
|
183 |
-
$paymentProduct = null;
|
184 |
if($payment->getAdditionalInformation('use_oneclick'))
|
185 |
{
|
186 |
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
@@ -192,9 +191,10 @@ class Allopass_Hipay_Model_Method_Cc extends Allopass_Hipay_Model_Method_Abstrac
|
|
192 |
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
193 |
|
194 |
}
|
195 |
-
else
|
196 |
-
|
197 |
-
|
|
|
198 |
$gatewayParams['payment_product'] = $paymentProduct ;
|
199 |
$this->_debug($gatewayParams);
|
200 |
|
@@ -208,8 +208,32 @@ class Allopass_Hipay_Model_Method_Cc extends Allopass_Hipay_Model_Method_Abstrac
|
|
208 |
return $redirectUrl;
|
209 |
|
210 |
}
|
211 |
-
|
212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
/**
|
215 |
* Validate payment method information object
|
179 |
$gatewayParams = $this->getGatewayParams($payment, $amount,$token);
|
180 |
|
181 |
$gatewayParams['operation'] =$this->getOperation();
|
182 |
+
|
|
|
183 |
if($payment->getAdditionalInformation('use_oneclick'))
|
184 |
{
|
185 |
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
191 |
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
192 |
|
193 |
}
|
194 |
+
else{
|
195 |
+
$paymentProduct = $this->getSpecifiedPaymentProduct($payment);
|
196 |
+
}
|
197 |
+
|
198 |
$gatewayParams['payment_product'] = $paymentProduct ;
|
199 |
$this->_debug($gatewayParams);
|
200 |
|
208 |
return $redirectUrl;
|
209 |
|
210 |
}
|
|
|
211 |
|
212 |
+
/**
|
213 |
+
* Some payments method need product code with fees or no fees
|
214 |
+
*
|
215 |
+
* @return string|bool
|
216 |
+
*/
|
217 |
+
private function getPaymentProductFees()
|
218 |
+
{
|
219 |
+
$paymentFees = $this->getConfigData('payment_product_fees');
|
220 |
+
if (!empty($paymentFees)) {
|
221 |
+
return $paymentFees;
|
222 |
+
}
|
223 |
+
return false;
|
224 |
+
}
|
225 |
+
|
226 |
+
/**
|
227 |
+
* Return payment product
|
228 |
+
*
|
229 |
+
* If Payment requires specified option ( With Fees or without Fees return it otherwhise normal payment product)
|
230 |
+
*
|
231 |
+
* @return string
|
232 |
+
*/
|
233 |
+
private function getSpecifiedPaymentProduct($payment)
|
234 |
+
{
|
235 |
+
return ($this->getPaymentProductFees()) ? $this->getPaymentProductFees() : $this->getCcTypeHipay($payment->getCcType());
|
236 |
+
}
|
237 |
|
238 |
/**
|
239 |
* Validate payment method information object
|
app/code/community/Allopass/Hipay/Model/Method/Dexia.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_Dexia extends
|
3 |
{
|
4 |
protected $_code = 'hipay_dexia';
|
5 |
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Dexia extends Allopass_Hipay_Model_Method_Astropay
|
3 |
{
|
4 |
protected $_code = 'hipay_dexia';
|
5 |
|
app/code/community/Allopass/Hipay/Model/Method/Discover.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Discover extends Allopass_Hipay_Model_Method_Hosted
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_discover';
|
5 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Facilipay3x.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Facilipay3x extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_facilipay3x';
|
5 |
+
protected $_formBlockType = 'hipay/form_hosted';
|
6 |
+
protected $_infoBlockType = 'hipay/info_hosted';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Facilipay4x.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Facilipay4x extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_facilipay4x';
|
5 |
+
|
6 |
+
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
+
protected $_infoBlockType = 'hipay/info_hosted';
|
8 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Itau.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Itau extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_itau';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpf';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Oxxo.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Oxxo extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_oxxo';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpn';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/PaypalApi.php
CHANGED
@@ -1,88 +1,8 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_PaypalApi extends
|
3 |
{
|
4 |
protected $_code = 'hipay_paypalapi';
|
5 |
|
6 |
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
protected $_infoBlockType = 'hipay/info_hosted';
|
8 |
-
|
9 |
-
|
10 |
-
public function getOrderPlaceRedirectUrl()
|
11 |
-
{
|
12 |
-
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
13 |
-
}
|
14 |
-
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Assign data to info model instance
|
18 |
-
*
|
19 |
-
* @param mixed $data
|
20 |
-
* @return Mage_Payment_Model_Info
|
21 |
-
*/
|
22 |
-
public function assignData($data)
|
23 |
-
{
|
24 |
-
if (!($data instanceof Varien_Object)) {
|
25 |
-
$data = new Varien_Object($data);
|
26 |
-
}
|
27 |
-
$info = $this->getInfoInstance();
|
28 |
-
$info->setCcType($this->getConfigData('cctypes'));
|
29 |
-
|
30 |
-
$this->assignInfoData($info, $data);
|
31 |
-
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
public function initialize($paymentAction, $stateObject)
|
36 |
-
{
|
37 |
-
/* @var $payment Mage_Sales_Model_Order_Payment */
|
38 |
-
$payment = $this->getInfoInstance();
|
39 |
-
$order = $payment->getOrder();
|
40 |
-
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
41 |
-
|
42 |
-
|
43 |
-
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
44 |
-
{
|
45 |
-
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
46 |
-
$card = Mage::getModel('hipay/card')->load($cardId);
|
47 |
-
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
48 |
-
$token = $card->getCcToken();
|
49 |
-
else
|
50 |
-
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
51 |
-
$payment->setAdditionalInformation('token',$token);
|
52 |
-
}
|
53 |
-
|
54 |
-
return $this;
|
55 |
-
|
56 |
-
}
|
57 |
-
|
58 |
-
|
59 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
60 |
-
{
|
61 |
-
return $ccTypeMagento;
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Validate payment method information object
|
67 |
-
*
|
68 |
-
* @param Mage_Payment_Model_Info $info
|
69 |
-
* @return Mage_Payment_Model_Abstract
|
70 |
-
*/
|
71 |
-
public function validate()
|
72 |
-
{
|
73 |
-
/**
|
74 |
-
* to validate payment method is allowed for billing country or not
|
75 |
-
*/
|
76 |
-
$paymentInfo = $this->getInfoInstance();
|
77 |
-
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
78 |
-
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
79 |
-
} else {
|
80 |
-
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
81 |
-
}
|
82 |
-
if (!$this->canUseForCountry($billingCountry)) {
|
83 |
-
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
84 |
-
}
|
85 |
-
return $this;
|
86 |
-
}
|
87 |
-
|
88 |
}
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_PaypalApi extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
{
|
4 |
protected $_code = 'hipay_paypalapi';
|
5 |
|
6 |
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
protected $_infoBlockType = 'hipay/info_hosted';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
app/code/community/Allopass/Hipay/Model/Method/PostfinancecardApi.php
CHANGED
@@ -1,88 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_PostfinancecardApi extends
|
3 |
-
{
|
4 |
-
|
5 |
-
|
6 |
-
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
-
protected $_infoBlockType = 'hipay/info_hosted';
|
8 |
-
|
9 |
-
|
10 |
-
public function getOrderPlaceRedirectUrl()
|
11 |
-
{
|
12 |
-
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
13 |
-
}
|
14 |
-
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Assign data to info model instance
|
18 |
-
*
|
19 |
-
* @param mixed $data
|
20 |
-
* @return Mage_Payment_Model_Info
|
21 |
-
*/
|
22 |
-
public function assignData($data)
|
23 |
-
{
|
24 |
-
if (!($data instanceof Varien_Object)) {
|
25 |
-
$data = new Varien_Object($data);
|
26 |
-
}
|
27 |
-
$info = $this->getInfoInstance();
|
28 |
-
$info->setCcType($this->getConfigData('cctypes'));
|
29 |
-
|
30 |
-
$this->assignInfoData($info, $data);
|
31 |
-
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
public function initialize($paymentAction, $stateObject)
|
36 |
-
{
|
37 |
-
/* @var $payment Mage_Sales_Model_Order_Payment */
|
38 |
-
$payment = $this->getInfoInstance();
|
39 |
-
$order = $payment->getOrder();
|
40 |
-
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
41 |
-
|
42 |
-
|
43 |
-
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
44 |
-
{
|
45 |
-
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
46 |
-
$card = Mage::getModel('hipay/card')->load($cardId);
|
47 |
-
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
48 |
-
$token = $card->getCcToken();
|
49 |
-
else
|
50 |
-
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
51 |
-
$payment->setAdditionalInformation('token',$token);
|
52 |
-
}
|
53 |
-
|
54 |
-
return $this;
|
55 |
-
|
56 |
-
}
|
57 |
-
|
58 |
-
|
59 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
60 |
-
{
|
61 |
-
return $ccTypeMagento;
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Validate payment method information object
|
67 |
-
*
|
68 |
-
* @param Mage_Payment_Model_Info $info
|
69 |
-
* @return Mage_Payment_Model_Abstract
|
70 |
-
*/
|
71 |
-
public function validate()
|
72 |
-
{
|
73 |
-
/**
|
74 |
-
* to validate payment method is allowed for billing country or not
|
75 |
-
*/
|
76 |
-
$paymentInfo = $this->getInfoInstance();
|
77 |
-
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
78 |
-
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
79 |
-
} else {
|
80 |
-
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
81 |
-
}
|
82 |
-
if (!$this->canUseForCountry($billingCountry)) {
|
83 |
-
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
84 |
-
}
|
85 |
-
return $this;
|
86 |
-
}
|
87 |
-
|
88 |
-
}
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_PostfinancecardApi extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_postfinancecardapi';
|
5 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Allopass/Hipay/Model/Method/PostfinanceefinanceApi.php
CHANGED
@@ -1,88 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_PostfinanceefinanceApi extends
|
3 |
{
|
4 |
protected $_code = 'hipay_postfinanceefinanceapi';
|
5 |
-
|
6 |
-
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
-
protected $_infoBlockType = 'hipay/info_hosted';
|
8 |
-
|
9 |
-
|
10 |
-
public function getOrderPlaceRedirectUrl()
|
11 |
-
{
|
12 |
-
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
13 |
-
}
|
14 |
-
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Assign data to info model instance
|
18 |
-
*
|
19 |
-
* @param mixed $data
|
20 |
-
* @return Mage_Payment_Model_Info
|
21 |
-
*/
|
22 |
-
public function assignData($data)
|
23 |
-
{
|
24 |
-
if (!($data instanceof Varien_Object)) {
|
25 |
-
$data = new Varien_Object($data);
|
26 |
-
}
|
27 |
-
$info = $this->getInfoInstance();
|
28 |
-
$info->setCcType($this->getConfigData('cctypes'));
|
29 |
-
|
30 |
-
$this->assignInfoData($info, $data);
|
31 |
-
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
public function initialize($paymentAction, $stateObject)
|
36 |
-
{
|
37 |
-
/* @var $payment Mage_Sales_Model_Order_Payment */
|
38 |
-
$payment = $this->getInfoInstance();
|
39 |
-
$order = $payment->getOrder();
|
40 |
-
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
41 |
-
|
42 |
-
|
43 |
-
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
44 |
-
{
|
45 |
-
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
46 |
-
$card = Mage::getModel('hipay/card')->load($cardId);
|
47 |
-
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
48 |
-
$token = $card->getCcToken();
|
49 |
-
else
|
50 |
-
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
51 |
-
$payment->setAdditionalInformation('token',$token);
|
52 |
-
}
|
53 |
-
|
54 |
-
return $this;
|
55 |
-
|
56 |
-
}
|
57 |
-
|
58 |
-
|
59 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
60 |
-
{
|
61 |
-
return $ccTypeMagento;
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Validate payment method information object
|
67 |
-
*
|
68 |
-
* @param Mage_Payment_Model_Info $info
|
69 |
-
* @return Mage_Payment_Model_Abstract
|
70 |
-
*/
|
71 |
-
public function validate()
|
72 |
-
{
|
73 |
-
/**
|
74 |
-
* to validate payment method is allowed for billing country or not
|
75 |
-
*/
|
76 |
-
$paymentInfo = $this->getInfoInstance();
|
77 |
-
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
78 |
-
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
79 |
-
} else {
|
80 |
-
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
81 |
-
}
|
82 |
-
if (!$this->canUseForCountry($billingCountry)) {
|
83 |
-
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
84 |
-
}
|
85 |
-
return $this;
|
86 |
-
}
|
87 |
-
|
88 |
}
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_PostfinanceefinanceApi extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
{
|
4 |
protected $_code = 'hipay_postfinanceefinanceapi';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
app/code/community/Allopass/Hipay/Model/Method/Przelewy24Api.php
CHANGED
@@ -1,88 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_Przelewy24Api extends
|
3 |
{
|
4 |
protected $_code = 'hipay_przelewy24api';
|
5 |
-
|
6 |
-
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
-
protected $_infoBlockType = 'hipay/info_hosted';
|
8 |
-
|
9 |
-
|
10 |
-
public function getOrderPlaceRedirectUrl()
|
11 |
-
{
|
12 |
-
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
13 |
-
}
|
14 |
-
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Assign data to info model instance
|
18 |
-
*
|
19 |
-
* @param mixed $data
|
20 |
-
* @return Mage_Payment_Model_Info
|
21 |
-
*/
|
22 |
-
public function assignData($data)
|
23 |
-
{
|
24 |
-
if (!($data instanceof Varien_Object)) {
|
25 |
-
$data = new Varien_Object($data);
|
26 |
-
}
|
27 |
-
$info = $this->getInfoInstance();
|
28 |
-
$info->setCcType($this->getConfigData('cctypes'));
|
29 |
-
|
30 |
-
$this->assignInfoData($info, $data);
|
31 |
-
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
public function initialize($paymentAction, $stateObject)
|
36 |
-
{
|
37 |
-
/* @var $payment Mage_Sales_Model_Order_Payment */
|
38 |
-
$payment = $this->getInfoInstance();
|
39 |
-
$order = $payment->getOrder();
|
40 |
-
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
41 |
-
|
42 |
-
|
43 |
-
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
44 |
-
{
|
45 |
-
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
46 |
-
$card = Mage::getModel('hipay/card')->load($cardId);
|
47 |
-
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
48 |
-
$token = $card->getCcToken();
|
49 |
-
else
|
50 |
-
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
51 |
-
|
52 |
-
$payment->setAdditionalInformation('token',$token);
|
53 |
-
}
|
54 |
-
|
55 |
-
return $this;
|
56 |
-
|
57 |
-
}
|
58 |
-
|
59 |
-
|
60 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
61 |
-
{
|
62 |
-
return $ccTypeMagento;
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Validate payment method information object
|
67 |
-
*
|
68 |
-
* @param Mage_Payment_Model_Info $info
|
69 |
-
* @return Mage_Payment_Model_Abstract
|
70 |
-
*/
|
71 |
-
public function validate()
|
72 |
-
{
|
73 |
-
/**
|
74 |
-
* to validate payment method is allowed for billing country or not
|
75 |
-
*/
|
76 |
-
$paymentInfo = $this->getInfoInstance();
|
77 |
-
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
78 |
-
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
79 |
-
} else {
|
80 |
-
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
81 |
-
}
|
82 |
-
if (!$this->canUseForCountry($billingCountry)) {
|
83 |
-
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
84 |
-
}
|
85 |
-
return $this;
|
86 |
-
}
|
87 |
-
|
88 |
}
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Przelewy24Api extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
{
|
4 |
protected $_code = 'hipay_przelewy24api';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
app/code/community/Allopass/Hipay/Model/Method/Santander.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Santander extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_santander';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpf';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Santandercash.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Santandercash extends Allopass_Hipay_Model_Method_Astropay
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_santandercash';
|
5 |
+
|
6 |
+
protected $_typeIdentification = 'cpn';
|
7 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/SisalApi.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_SisalApi extends
|
3 |
{
|
4 |
protected $_code = 'hipay_sisalapi';
|
5 |
|
@@ -8,83 +8,4 @@ class Allopass_Hipay_Model_Method_SisalApi extends Allopass_Hipay_Model_Method_C
|
|
8 |
|
9 |
protected $_canRefund = false;
|
10 |
protected $_canRefundInvoicePartial = false;
|
11 |
-
|
12 |
-
|
13 |
-
public function getOrderPlaceRedirectUrl()
|
14 |
-
{
|
15 |
-
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
16 |
-
}
|
17 |
-
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Assign data to info model instance
|
21 |
-
*
|
22 |
-
* @param mixed $data
|
23 |
-
* @return Mage_Payment_Model_Info
|
24 |
-
*/
|
25 |
-
public function assignData($data)
|
26 |
-
{
|
27 |
-
if (!($data instanceof Varien_Object)) {
|
28 |
-
$data = new Varien_Object($data);
|
29 |
-
}
|
30 |
-
$info = $this->getInfoInstance();
|
31 |
-
$info->setCcType($this->getConfigData('cctypes'));
|
32 |
-
|
33 |
-
$this->assignInfoData($info, $data);
|
34 |
-
|
35 |
-
return $this;
|
36 |
-
}
|
37 |
-
|
38 |
-
public function initialize($paymentAction, $stateObject)
|
39 |
-
{
|
40 |
-
/* @var $payment Mage_Sales_Model_Order_Payment */
|
41 |
-
$payment = $this->getInfoInstance();
|
42 |
-
$order = $payment->getOrder();
|
43 |
-
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
44 |
-
|
45 |
-
|
46 |
-
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
47 |
-
{
|
48 |
-
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
49 |
-
$card = Mage::getModel('hipay/card')->load($cardId);
|
50 |
-
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
51 |
-
$token = $card->getCcToken();
|
52 |
-
else
|
53 |
-
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
54 |
-
$payment->setAdditionalInformation('token',$token);
|
55 |
-
}
|
56 |
-
|
57 |
-
return $this;
|
58 |
-
|
59 |
-
}
|
60 |
-
|
61 |
-
|
62 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
63 |
-
{
|
64 |
-
return $ccTypeMagento;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Validate payment method information object
|
69 |
-
*
|
70 |
-
* @param Mage_Payment_Model_Info $info
|
71 |
-
* @return Mage_Payment_Model_Abstract
|
72 |
-
*/
|
73 |
-
public function validate()
|
74 |
-
{
|
75 |
-
/**
|
76 |
-
* to validate payment method is allowed for billing country or not
|
77 |
-
*/
|
78 |
-
$paymentInfo = $this->getInfoInstance();
|
79 |
-
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
80 |
-
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
81 |
-
} else {
|
82 |
-
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
83 |
-
}
|
84 |
-
if (!$this->canUseForCountry($billingCountry)) {
|
85 |
-
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
86 |
-
}
|
87 |
-
return $this;
|
88 |
-
}
|
89 |
-
|
90 |
}
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_SisalApi extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
{
|
4 |
protected $_code = 'hipay_sisalapi';
|
5 |
|
8 |
|
9 |
protected $_canRefund = false;
|
10 |
protected $_canRefundInvoicePartial = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
}
|
app/code/community/Allopass/Hipay/Model/Method/SofortApi.php
CHANGED
@@ -1,87 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_SofortApi extends
|
3 |
{
|
4 |
protected $_code = 'hipay_sofortapi';
|
5 |
-
|
6 |
-
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
-
protected $_infoBlockType = 'hipay/info_hosted';
|
8 |
-
|
9 |
-
|
10 |
-
public function getOrderPlaceRedirectUrl()
|
11 |
-
{
|
12 |
-
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
13 |
-
}
|
14 |
-
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Assign data to info model instance
|
18 |
-
*
|
19 |
-
* @param mixed $data
|
20 |
-
* @return Mage_Payment_Model_Info
|
21 |
-
*/
|
22 |
-
public function assignData($data)
|
23 |
-
{
|
24 |
-
if (!($data instanceof Varien_Object)) {
|
25 |
-
$data = new Varien_Object($data);
|
26 |
-
}
|
27 |
-
$info = $this->getInfoInstance();
|
28 |
-
$info->setCcType($this->getConfigData('cctypes'));
|
29 |
-
|
30 |
-
$this->assignInfoData($info, $data);
|
31 |
-
|
32 |
-
return $this;
|
33 |
-
}
|
34 |
-
|
35 |
-
public function initialize($paymentAction, $stateObject)
|
36 |
-
{
|
37 |
-
/* @var $payment Mage_Sales_Model_Order_Payment */
|
38 |
-
$payment = $this->getInfoInstance();
|
39 |
-
$order = $payment->getOrder();
|
40 |
-
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
41 |
-
|
42 |
-
|
43 |
-
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
44 |
-
{
|
45 |
-
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
46 |
-
$card = Mage::getModel('hipay/card')->load($cardId);
|
47 |
-
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
48 |
-
$token = $card->getCcToken();
|
49 |
-
else
|
50 |
-
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
51 |
-
$payment->setAdditionalInformation('token',$token);
|
52 |
-
}
|
53 |
-
|
54 |
-
return $this;
|
55 |
-
|
56 |
-
}
|
57 |
-
|
58 |
-
|
59 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
60 |
-
{
|
61 |
-
return $ccTypeMagento;
|
62 |
-
}
|
63 |
-
|
64 |
-
/**
|
65 |
-
* Validate payment method information object
|
66 |
-
*
|
67 |
-
* @param Mage_Payment_Model_Info $info
|
68 |
-
* @return Mage_Payment_Model_Abstract
|
69 |
-
*/
|
70 |
-
public function validate()
|
71 |
-
{
|
72 |
-
/**
|
73 |
-
* to validate payment method is allowed for billing country or not
|
74 |
-
*/
|
75 |
-
$paymentInfo = $this->getInfoInstance();
|
76 |
-
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
77 |
-
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
78 |
-
} else {
|
79 |
-
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
80 |
-
}
|
81 |
-
if (!$this->canUseForCountry($billingCountry)) {
|
82 |
-
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
83 |
-
}
|
84 |
-
return $this;
|
85 |
-
}
|
86 |
-
|
87 |
}
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_SofortApi extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
{
|
4 |
protected $_code = 'hipay_sofortapi';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
app/code/community/Allopass/Hipay/Model/Method/WebmoneyApi.php
CHANGED
@@ -1,90 +1,8 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_WebmoneyApi extends
|
3 |
{
|
4 |
protected $_code = 'hipay_webmoneyapi';
|
5 |
-
|
6 |
-
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
-
protected $_infoBlockType = 'hipay/info_hosted';
|
8 |
-
|
9 |
protected $_canRefund = false;
|
10 |
protected $_canRefundInvoicePartial = false;
|
11 |
-
|
12 |
-
|
13 |
-
public function getOrderPlaceRedirectUrl()
|
14 |
-
{
|
15 |
-
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
16 |
-
}
|
17 |
-
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Assign data to info model instance
|
21 |
-
*
|
22 |
-
* @param mixed $data
|
23 |
-
* @return Mage_Payment_Model_Info
|
24 |
-
*/
|
25 |
-
public function assignData($data)
|
26 |
-
{
|
27 |
-
if (!($data instanceof Varien_Object)) {
|
28 |
-
$data = new Varien_Object($data);
|
29 |
-
}
|
30 |
-
$info = $this->getInfoInstance();
|
31 |
-
$info->setCcType($this->getConfigData('cctypes'));
|
32 |
-
|
33 |
-
$this->assignInfoData($info, $data);
|
34 |
-
|
35 |
-
return $this;
|
36 |
-
}
|
37 |
-
|
38 |
-
public function initialize($paymentAction, $stateObject)
|
39 |
-
{
|
40 |
-
/* @var $payment Mage_Sales_Model_Order_Payment */
|
41 |
-
$payment = $this->getInfoInstance();
|
42 |
-
$order = $payment->getOrder();
|
43 |
-
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
44 |
-
|
45 |
-
|
46 |
-
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
47 |
-
{
|
48 |
-
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
49 |
-
$card = Mage::getModel('hipay/card')->load($cardId);
|
50 |
-
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
51 |
-
$token = $card->getCcToken();
|
52 |
-
else
|
53 |
-
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
54 |
-
$payment->setAdditionalInformation('token',$token);
|
55 |
-
}
|
56 |
-
|
57 |
-
return $this;
|
58 |
-
|
59 |
-
}
|
60 |
-
|
61 |
-
|
62 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
63 |
-
{
|
64 |
-
return $ccTypeMagento;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Validate payment method information object
|
69 |
-
*
|
70 |
-
* @param Mage_Payment_Model_Info $info
|
71 |
-
* @return Mage_Payment_Model_Abstract
|
72 |
-
*/
|
73 |
-
public function validate()
|
74 |
-
{
|
75 |
-
/**
|
76 |
-
* to validate payment method is allowed for billing country or not
|
77 |
-
*/
|
78 |
-
$paymentInfo = $this->getInfoInstance();
|
79 |
-
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
80 |
-
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
81 |
-
} else {
|
82 |
-
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
83 |
-
}
|
84 |
-
if (!$this->canUseForCountry($billingCountry)) {
|
85 |
-
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
86 |
-
}
|
87 |
-
return $this;
|
88 |
-
}
|
89 |
-
|
90 |
}
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_WebmoneyApi extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
{
|
4 |
protected $_code = 'hipay_webmoneyapi';
|
5 |
+
|
|
|
|
|
|
|
6 |
protected $_canRefund = false;
|
7 |
protected $_canRefundInvoicePartial = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
app/code/community/Allopass/Hipay/Model/Method/YandexApi.php
CHANGED
@@ -1,90 +1,8 @@
|
|
1 |
<?php
|
2 |
-
class Allopass_Hipay_Model_Method_YandexApi extends
|
3 |
{
|
4 |
protected $_code = 'hipay_yandexapi';
|
5 |
-
|
6 |
-
protected $_formBlockType = 'hipay/form_hosted';
|
7 |
-
protected $_infoBlockType = 'hipay/info_hosted';
|
8 |
-
|
9 |
protected $_canRefund = false;
|
10 |
protected $_canRefundInvoicePartial = false;
|
11 |
-
|
12 |
-
|
13 |
-
public function getOrderPlaceRedirectUrl()
|
14 |
-
{
|
15 |
-
return Mage::getUrl(str_replace("_", "/", $this->getCode()).'/sendRequest',array('_secure' => true));
|
16 |
-
}
|
17 |
-
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Assign data to info model instance
|
21 |
-
*
|
22 |
-
* @param mixed $data
|
23 |
-
* @return Mage_Payment_Model_Info
|
24 |
-
*/
|
25 |
-
public function assignData($data)
|
26 |
-
{
|
27 |
-
if (!($data instanceof Varien_Object)) {
|
28 |
-
$data = new Varien_Object($data);
|
29 |
-
}
|
30 |
-
$info = $this->getInfoInstance();
|
31 |
-
$info->setCcType($this->getConfigData('cctypes'));
|
32 |
-
|
33 |
-
$this->assignInfoData($info, $data);
|
34 |
-
|
35 |
-
return $this;
|
36 |
-
}
|
37 |
-
|
38 |
-
public function initialize($paymentAction, $stateObject)
|
39 |
-
{
|
40 |
-
/* @var $payment Mage_Sales_Model_Order_Payment */
|
41 |
-
$payment = $this->getInfoInstance();
|
42 |
-
$order = $payment->getOrder();
|
43 |
-
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
44 |
-
|
45 |
-
|
46 |
-
if($payment->getAdditionalInformation('use_oneclick') && $customer->getId())
|
47 |
-
{
|
48 |
-
$cardId = $payment->getAdditionalInformation('selected_oneclick_card');
|
49 |
-
$card = Mage::getModel('hipay/card')->load($cardId);
|
50 |
-
if($card->getId() && $card->getCustomerId() == $customer->getId())
|
51 |
-
$token = $card->getCcToken();
|
52 |
-
else
|
53 |
-
Mage::throwException(Mage::helper('hipay')->__("Error with your card!"));
|
54 |
-
$payment->setAdditionalInformation('token',$token);
|
55 |
-
}
|
56 |
-
|
57 |
-
return $this;
|
58 |
-
|
59 |
-
}
|
60 |
-
|
61 |
-
|
62 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
63 |
-
{
|
64 |
-
return $ccTypeMagento;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Validate payment method information object
|
69 |
-
*
|
70 |
-
* @param Mage_Payment_Model_Info $info
|
71 |
-
* @return Mage_Payment_Model_Abstract
|
72 |
-
*/
|
73 |
-
public function validate()
|
74 |
-
{
|
75 |
-
/**
|
76 |
-
* to validate payment method is allowed for billing country or not
|
77 |
-
*/
|
78 |
-
$paymentInfo = $this->getInfoInstance();
|
79 |
-
if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
80 |
-
$billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();
|
81 |
-
} else {
|
82 |
-
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
|
83 |
-
}
|
84 |
-
if (!$this->canUseForCountry($billingCountry)) {
|
85 |
-
Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));
|
86 |
-
}
|
87 |
-
return $this;
|
88 |
-
}
|
89 |
-
|
90 |
}
|
1 |
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_YandexApi extends Allopass_Hipay_Model_Method_AbstractOrder
|
3 |
{
|
4 |
protected $_code = 'hipay_yandexapi';
|
5 |
+
|
|
|
|
|
|
|
6 |
protected $_canRefund = false;
|
7 |
protected $_canRefundInvoicePartial = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
app/code/community/Allopass/Hipay/Model/Observer.php
CHANGED
@@ -36,6 +36,15 @@ class Allopass_Hipay_Model_Observer
|
|
36 |
->join(array('op' => 'sales/order_payment'), 'main_table.entity_id=op.parent_id', array('method'));
|
37 |
|
38 |
/* @var $order Mage_Sales_Model_Order */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
foreach ($collection as $order) {
|
40 |
if ($order->canCancel()) {
|
41 |
try {
|
@@ -46,33 +55,42 @@ class Allopass_Hipay_Model_Observer
|
|
46 |
$delayMinutes));
|
47 |
|
48 |
$order->save();
|
|
|
49 |
} catch (Exception $e) {
|
|
|
50 |
Mage::logException($e);
|
51 |
}
|
|
|
|
|
52 |
}
|
53 |
}
|
|
|
|
|
|
|
|
|
|
|
54 |
}
|
55 |
-
|
56 |
return $this;
|
57 |
}
|
58 |
-
|
59 |
public function manageOrdersInPendingCapture()
|
60 |
{
|
61 |
$methods = array('hipay_cc','hipay_hosted');
|
62 |
/* @var $collection Mage_Sales_Model_Resource_Order_Collection */
|
63 |
$collection = Mage::getResourceModel('sales/order_collection');
|
64 |
$collection->addFieldToFilter('status', 'pending_capture');
|
65 |
-
|
66 |
/* @var $order Mage_Sales_Model_Order */
|
67 |
foreach ($collection as $order) {
|
68 |
if (!in_array($order->getPayment()->getMethod(), $methods)) {
|
69 |
continue;
|
70 |
}
|
71 |
-
|
72 |
$orderDate = "";
|
73 |
}
|
74 |
}
|
75 |
-
|
76 |
public function displaySectionCheckoutIframe($observer)
|
77 |
{
|
78 |
$payment = Mage::getSingleton('checkout/session')->getQuote()->getPayment();
|
@@ -81,9 +99,9 @@ class Allopass_Hipay_Model_Observer
|
|
81 |
}
|
82 |
/* @var $controller Mage_Checkout_OnepageController */
|
83 |
$controller = $observer->getControllerAction();
|
84 |
-
|
85 |
$result = Mage::helper('core')->jsonDecode($controller->getResponse()->getBody());
|
86 |
-
|
87 |
//TODO check if payment method is hosted and iframe active and is success
|
88 |
$methodInstance = $payment->getMethodInstance();
|
89 |
if ($result['success']
|
@@ -91,52 +109,81 @@ class Allopass_Hipay_Model_Observer
|
|
91 |
&& $methodInstance->getConfigData('display_iframe')) {
|
92 |
$result['iframeUrl'] = $result['redirect'];
|
93 |
}
|
94 |
-
|
95 |
$controller->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
|
96 |
-
|
97 |
return $this;
|
98 |
}
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
->addFieldToFilter('status', array('in'=>array(Allopass_Hipay_Model_SplitPayment::SPLIT_PAYMENT_STATUS_PENDING,
|
107 |
-
Allopass_Hipay_Model_SplitPayment::SPLIT_PAYMENT_STATUS_FAILED)))
|
108 |
-
->addFieldTofilter('date_to_pay', array('to' => $date->toString('Y-MM-dd 00:00:00')))
|
109 |
-
->addFieldTofilter('attempts', array('lteq' => 3));
|
110 |
-
|
111 |
-
|
112 |
foreach ($splitPayments as $splitPayment) {
|
|
|
113 |
try {
|
|
|
114 |
$splitPayment->pay();
|
|
|
115 |
} catch (Exception $e) {
|
|
|
116 |
$splitPayment->sendErrorEmail();
|
117 |
Mage::logException($e);
|
118 |
}
|
119 |
}
|
120 |
}
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
public function arrangeOrderView($observer)
|
123 |
{
|
124 |
/* @var $block Mage_Adminhtml_Block_Sales_Order_View|Mage_Adminhtml_Block_Sales_Transactions_Detail */
|
125 |
$block = $observer->getBlock();
|
126 |
-
|
127 |
/* @var $order Mage_Sales_Model_Order */
|
128 |
if ($block instanceof Mage_Adminhtml_Block_Sales_Order_View) {
|
129 |
$isAllowedAction = Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/review_payment');
|
130 |
if (!$isAllowedAction) {
|
131 |
return $this;
|
132 |
}
|
133 |
-
|
134 |
$order = $block->getOrder();
|
135 |
-
|
136 |
if (strpos($order->getPayment()->getMethod(), "hipay") === false) {
|
137 |
return $this;
|
138 |
}
|
139 |
-
|
140 |
if ($order->canReviewPayment()) {
|
141 |
$url = $block->getUrl("*/payment/reviewCapturePayment");
|
142 |
$message = Mage::helper('sales')->__('Are you sure you want to accept this payment?');
|
@@ -148,8 +195,8 @@ class Allopass_Hipay_Model_Observer
|
|
148 |
} elseif ($block instanceof Mage_Adminhtml_Block_Sales_Transactions_Detail) {
|
149 |
$txnId = $block->getTxnIdHtml();
|
150 |
$orderIncrementId = $block->getOrderIncrementIdHtml();
|
151 |
-
|
152 |
-
|
153 |
$order = Mage::getModel('sales/order')->loadByIncrementId(trim($orderIncrementId));
|
154 |
if ($order->getId() && strpos($order->getPayment()->getMethod(), 'hipay') !== false) {
|
155 |
$link = '<a href="https://merchant.hipay-tpp.com//transaction/detail/index/trxid/'.$txnId.'" target="_blank">'.$txnId.'</a>';
|
@@ -166,7 +213,7 @@ class Allopass_Hipay_Model_Observer
|
|
166 |
{
|
167 |
/* @var $order Mage_Sales_Model_Order */
|
168 |
$order = $observer->getOrder();
|
169 |
-
|
170 |
if ($order->getStatus() == Allopass_Hipay_Model_Method_Abstract::STATUS_CAPTURE_REQUESTED) {
|
171 |
$order->setForcedCanCreditmemo(false);
|
172 |
$order->setForcedCanCreditmemoFromHipay(true);
|
@@ -174,7 +221,7 @@ class Allopass_Hipay_Model_Observer
|
|
174 |
$order->setForcedCanCreditmemo(false);
|
175 |
$order->setForcedCanCreditmemoFromHipay(true);
|
176 |
} elseif ($order->getPayment() && strpos($order->getPayment()->getMethod(), 'hipay') !== false) {
|
177 |
-
|
178 |
//If configuration validate order with status 117 (capture requested) and Notification 118 (Captured) is not received
|
179 |
// we disallow refund
|
180 |
if (((int)$order->getPayment()->getMethodInstance()->getConfigData('hipay_status_validate_order') == 117) === true) {
|
@@ -187,7 +234,7 @@ class Allopass_Hipay_Model_Observer
|
|
187 |
// for old order
|
188 |
array('like'=>'%: 118 Message: %')
|
189 |
));
|
190 |
-
|
191 |
if ($histories->count() < 1) {
|
192 |
$order->setForcedCanCreditmemo(false);
|
193 |
$order->setForcedCanCreditmemoFromHipay(true);
|
@@ -195,7 +242,7 @@ class Allopass_Hipay_Model_Observer
|
|
195 |
}
|
196 |
}
|
197 |
}
|
198 |
-
|
199 |
/**
|
200 |
* Used to unset ForcedCanCreditmemo attributs from the order
|
201 |
* Without restore order status is set to "C"
|
@@ -205,15 +252,18 @@ class Allopass_Hipay_Model_Observer
|
|
205 |
{
|
206 |
/* @var $order Mage_Sales_Model_Order */
|
207 |
$order = $observer->getOrder();
|
208 |
-
|
209 |
if ($order->getForcedCanCreditmemoFromHipay()) {
|
210 |
$order->unsetData('forced_can_creditmemo');
|
211 |
$order->unsetData('forced_can_creditmemo_from_hipay');
|
212 |
}
|
213 |
|
214 |
-
|
215 |
-
|
216 |
-
|
|
|
|
|
|
|
217 |
}
|
218 |
}
|
219 |
}
|
36 |
->join(array('op' => 'sales/order_payment'), 'main_table.entity_id=op.parent_id', array('method'));
|
37 |
|
38 |
/* @var $order Mage_Sales_Model_Order */
|
39 |
+
|
40 |
+
if (count($collection) > 1) {
|
41 |
+
Mage::helper('hipay')->debugInternalProcessHipay('##########################################');
|
42 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Start process "cancelOrdersInPending"');
|
43 |
+
Mage::helper('hipay')->debugInternalProcessHipay(count($collection) . ' orders to cancel ');
|
44 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Method : ' . $key);
|
45 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Created at : ' . $date->subMinute($delayMinutes)->toString('Y-MM-dd HH:mm:ss'));
|
46 |
+
}
|
47 |
+
|
48 |
foreach ($collection as $order) {
|
49 |
if ($order->canCancel()) {
|
50 |
try {
|
55 |
$delayMinutes));
|
56 |
|
57 |
$order->save();
|
58 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Order is canceled :' . $order->getIncrementId() );
|
59 |
} catch (Exception $e) {
|
60 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Error in cancel process for order :' . $order->getIncrementId() .' ' .$e->getMessage() );
|
61 |
Mage::logException($e);
|
62 |
}
|
63 |
+
}else{
|
64 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Order is not cancelable for order : ' . $order->getIncrementId());
|
65 |
}
|
66 |
}
|
67 |
+
|
68 |
+
if (count($collection) > 1) {
|
69 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# End process "cancelOrdersInPending"');
|
70 |
+
Mage::helper('hipay')->debugInternalProcessHipay('##########################################');
|
71 |
+
}
|
72 |
}
|
73 |
+
|
74 |
return $this;
|
75 |
}
|
76 |
+
|
77 |
public function manageOrdersInPendingCapture()
|
78 |
{
|
79 |
$methods = array('hipay_cc','hipay_hosted');
|
80 |
/* @var $collection Mage_Sales_Model_Resource_Order_Collection */
|
81 |
$collection = Mage::getResourceModel('sales/order_collection');
|
82 |
$collection->addFieldToFilter('status', 'pending_capture');
|
83 |
+
|
84 |
/* @var $order Mage_Sales_Model_Order */
|
85 |
foreach ($collection as $order) {
|
86 |
if (!in_array($order->getPayment()->getMethod(), $methods)) {
|
87 |
continue;
|
88 |
}
|
89 |
+
|
90 |
$orderDate = "";
|
91 |
}
|
92 |
}
|
93 |
+
|
94 |
public function displaySectionCheckoutIframe($observer)
|
95 |
{
|
96 |
$payment = Mage::getSingleton('checkout/session')->getQuote()->getPayment();
|
99 |
}
|
100 |
/* @var $controller Mage_Checkout_OnepageController */
|
101 |
$controller = $observer->getControllerAction();
|
102 |
+
|
103 |
$result = Mage::helper('core')->jsonDecode($controller->getResponse()->getBody());
|
104 |
+
|
105 |
//TODO check if payment method is hosted and iframe active and is success
|
106 |
$methodInstance = $payment->getMethodInstance();
|
107 |
if ($result['success']
|
109 |
&& $methodInstance->getConfigData('display_iframe')) {
|
110 |
$result['iframeUrl'] = $result['redirect'];
|
111 |
}
|
112 |
+
|
113 |
$controller->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
|
114 |
+
|
115 |
return $this;
|
116 |
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Process Payment for collection of split payment
|
120 |
+
*
|
121 |
+
* @param Mage_Core_Model_Resource_Db_Collection_Abstract
|
122 |
+
*/
|
123 |
+
private function processSplitPayment($splitPayments){
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
foreach ($splitPayments as $splitPayment) {
|
125 |
+
$splitInfo = $splitPayment->getSplitNumber() . ' for order ' . $splitPayment->getOrderId() . ' with amount ' . $splitPayment->getAmountToPay();
|
126 |
try {
|
127 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Pay ' . $splitInfo );
|
128 |
$splitPayment->pay();
|
129 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Pay Success ' . $splitInfo );
|
130 |
} catch (Exception $e) {
|
131 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Pay Error with ' . $splitInfo . ' : ' . $e->getMessage());
|
132 |
$splitPayment->sendErrorEmail();
|
133 |
Mage::logException($e);
|
134 |
}
|
135 |
}
|
136 |
}
|
137 |
+
|
138 |
+
/*
|
139 |
+
* Check pending and failed payment and pay them
|
140 |
+
*
|
141 |
+
*/
|
142 |
+
public function paySplitPayments()
|
143 |
+
{
|
144 |
+
$date = new Zend_Date();
|
145 |
+
Mage::helper('hipay')->debugInternalProcessHipay('###################################');
|
146 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# Start process "paySplitPayments"');
|
147 |
+
|
148 |
+
$splitPaymentsFailed = Mage::getModel('hipay/splitPayment')->getCollection()
|
149 |
+
->addFieldToFilter('status', array('eq'=> Allopass_Hipay_Model_SplitPayment::SPLIT_PAYMENT_STATUS_FAILED))
|
150 |
+
->addFieldTofilter('attempts', array('lteq' => 3));
|
151 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# ' . count($splitPaymentsFailed) . ' splits in failed to pay ');
|
152 |
+
$this->processSplitPayment($splitPaymentsFailed);
|
153 |
+
|
154 |
+
$splitPaymentsPending = Mage::getModel('hipay/splitPayment')->getCollection()
|
155 |
+
->addFieldToFilter('status', array('eq'=> Allopass_Hipay_Model_SplitPayment::SPLIT_PAYMENT_STATUS_PENDING))
|
156 |
+
->addFieldTofilter('date_to_pay', array('to' => $date->toString('Y-MM-dd 00:00:00')))
|
157 |
+
->addFieldTofilter('attempts', array('lteq' => 3));
|
158 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# ' . count($splitPaymentsPending) . ' splits in pending to pay ');
|
159 |
+
$this->processSplitPayment($splitPaymentsPending);
|
160 |
+
|
161 |
+
Mage::helper('hipay')->debugInternalProcessHipay('# End process "paySplitPayments"');
|
162 |
+
Mage::helper('hipay')->debugInternalProcessHipay('###################################');
|
163 |
+
}
|
164 |
+
|
165 |
+
/**
|
166 |
+
* @param $observer
|
167 |
+
* @return $this
|
168 |
+
*/
|
169 |
public function arrangeOrderView($observer)
|
170 |
{
|
171 |
/* @var $block Mage_Adminhtml_Block_Sales_Order_View|Mage_Adminhtml_Block_Sales_Transactions_Detail */
|
172 |
$block = $observer->getBlock();
|
173 |
+
|
174 |
/* @var $order Mage_Sales_Model_Order */
|
175 |
if ($block instanceof Mage_Adminhtml_Block_Sales_Order_View) {
|
176 |
$isAllowedAction = Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/review_payment');
|
177 |
if (!$isAllowedAction) {
|
178 |
return $this;
|
179 |
}
|
180 |
+
|
181 |
$order = $block->getOrder();
|
182 |
+
|
183 |
if (strpos($order->getPayment()->getMethod(), "hipay") === false) {
|
184 |
return $this;
|
185 |
}
|
186 |
+
|
187 |
if ($order->canReviewPayment()) {
|
188 |
$url = $block->getUrl("*/payment/reviewCapturePayment");
|
189 |
$message = Mage::helper('sales')->__('Are you sure you want to accept this payment?');
|
195 |
} elseif ($block instanceof Mage_Adminhtml_Block_Sales_Transactions_Detail) {
|
196 |
$txnId = $block->getTxnIdHtml();
|
197 |
$orderIncrementId = $block->getOrderIncrementIdHtml();
|
198 |
+
|
199 |
+
|
200 |
$order = Mage::getModel('sales/order')->loadByIncrementId(trim($orderIncrementId));
|
201 |
if ($order->getId() && strpos($order->getPayment()->getMethod(), 'hipay') !== false) {
|
202 |
$link = '<a href="https://merchant.hipay-tpp.com//transaction/detail/index/trxid/'.$txnId.'" target="_blank">'.$txnId.'</a>';
|
213 |
{
|
214 |
/* @var $order Mage_Sales_Model_Order */
|
215 |
$order = $observer->getOrder();
|
216 |
+
|
217 |
if ($order->getStatus() == Allopass_Hipay_Model_Method_Abstract::STATUS_CAPTURE_REQUESTED) {
|
218 |
$order->setForcedCanCreditmemo(false);
|
219 |
$order->setForcedCanCreditmemoFromHipay(true);
|
221 |
$order->setForcedCanCreditmemo(false);
|
222 |
$order->setForcedCanCreditmemoFromHipay(true);
|
223 |
} elseif ($order->getPayment() && strpos($order->getPayment()->getMethod(), 'hipay') !== false) {
|
224 |
+
|
225 |
//If configuration validate order with status 117 (capture requested) and Notification 118 (Captured) is not received
|
226 |
// we disallow refund
|
227 |
if (((int)$order->getPayment()->getMethodInstance()->getConfigData('hipay_status_validate_order') == 117) === true) {
|
234 |
// for old order
|
235 |
array('like'=>'%: 118 Message: %')
|
236 |
));
|
237 |
+
|
238 |
if ($histories->count() < 1) {
|
239 |
$order->setForcedCanCreditmemo(false);
|
240 |
$order->setForcedCanCreditmemoFromHipay(true);
|
242 |
}
|
243 |
}
|
244 |
}
|
245 |
+
|
246 |
/**
|
247 |
* Used to unset ForcedCanCreditmemo attributs from the order
|
248 |
* Without restore order status is set to "C"
|
252 |
{
|
253 |
/* @var $order Mage_Sales_Model_Order */
|
254 |
$order = $observer->getOrder();
|
255 |
+
|
256 |
if ($order->getForcedCanCreditmemoFromHipay()) {
|
257 |
$order->unsetData('forced_can_creditmemo');
|
258 |
$order->unsetData('forced_can_creditmemo_from_hipay');
|
259 |
}
|
260 |
|
261 |
+
if ($order->getPayment()->getMethodInstance() &&
|
262 |
+
$order->getPayment()->getMethodInstance() instanceof Allopass_Hipay_Model_Method_Abstract ) {
|
263 |
+
// Cancel transaction in TPP if state is cancel
|
264 |
+
if ($order->getStatus() == Mage_Sales_Model_Order::STATE_CANCELED) {
|
265 |
+
$order->getPayment()->getMethodInstance()->cancelTransaction($order->getPayment());
|
266 |
+
}
|
267 |
}
|
268 |
}
|
269 |
}
|
app/code/community/Allopass/Hipay/Model/Source/Product/Facilipay3x.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Model_Source_Product_Facilipay3x
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* @return array
|
7 |
+
*/
|
8 |
+
public function toOptionArray()
|
9 |
+
{
|
10 |
+
return array(
|
11 |
+
array('value' => '3xcb', 'label' => Mage::helper('hipay')->__('With fees')),
|
12 |
+
array('value' => '3xcb-no-fees', 'label' => Mage::helper('hipay')->__('Without fees')),
|
13 |
+
);
|
14 |
+
}
|
15 |
+
}
|
app/code/community/Allopass/Hipay/Model/Source/Product/Facilipay4x.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Allopass_Hipay_Model_Source_Product_Facilipay4x
|
4 |
+
{
|
5 |
+
/**
|
6 |
+
* @return array
|
7 |
+
*/
|
8 |
+
public function toOptionArray()
|
9 |
+
{
|
10 |
+
return array(
|
11 |
+
array('value' => '4xcb', 'label' => Mage::helper('hipay')->__('With fees')),
|
12 |
+
array('value' => '4xcb-no-fees', 'label' => Mage::helper('hipay')->__('Without fees')),
|
13 |
+
);
|
14 |
+
}
|
15 |
+
}
|
app/code/community/Allopass/Hipay/Model/SplitPayment.php
CHANGED
@@ -1,46 +1,46 @@
|
|
1 |
<?php
|
2 |
class Allopass_Hipay_Model_SplitPayment extends Mage_Core_Model_Abstract
|
3 |
{
|
4 |
-
|
5 |
const SPLIT_PAYMENT_STATUS_PENDING = 'pending';
|
6 |
const SPLIT_PAYMENT_STATUS_FAILED = 'failed';
|
7 |
const SPLIT_PAYMENT_STATUS_COMPLETE = 'complete';
|
8 |
-
|
9 |
protected function _construct()
|
10 |
{
|
11 |
parent::_construct();
|
12 |
$this->_init('hipay/splitPayment');
|
13 |
$this->setIdFieldName('split_payment_id');
|
14 |
}
|
15 |
-
|
16 |
-
|
17 |
static function getStatues()
|
18 |
{
|
19 |
$statues = array(self::SPLIT_PAYMENT_STATUS_PENDING=>Mage::helper('sales')->__('Pending'),
|
20 |
self::SPLIT_PAYMENT_STATUS_FAILED=>Mage::helper('sales')->__('Failed'),
|
21 |
self::SPLIT_PAYMENT_STATUS_COMPLETE=>Mage::helper('sales')->__('Complete')
|
22 |
);
|
23 |
-
|
24 |
return $statues;
|
25 |
}
|
26 |
-
|
27 |
/**
|
28 |
-
*
|
29 |
* @return boolean|string
|
30 |
*/
|
31 |
public function pay()
|
32 |
{
|
33 |
-
|
34 |
if(!$this->canPay())
|
35 |
Mage::throwException("This split payment is already paid!");
|
36 |
-
|
37 |
if(!$this->getId())
|
38 |
{
|
39 |
Mage::throwException("Split Payment not found!");
|
40 |
}
|
41 |
-
|
42 |
try {
|
43 |
-
|
44 |
$state = $this->getMethodInstance()->paySplitPayment($this);
|
45 |
switch ($state)
|
46 |
{
|
@@ -55,11 +55,11 @@ class Allopass_Hipay_Model_SplitPayment extends Mage_Core_Model_Abstract
|
|
55 |
$this->setStatus(self::SPLIT_PAYMENT_STATUS_FAILED);
|
56 |
$this->sendErrorEmail();
|
57 |
break;
|
58 |
-
|
59 |
}
|
60 |
-
|
61 |
} catch (Exception $e) {
|
62 |
-
|
63 |
if($e->getMessage() != 'Code: 3010004. Message: This order has already been paid'){
|
64 |
$this->setStatus(self::SPLIT_PAYMENT_STATUS_FAILED);
|
65 |
$this->setAttempts($this->getAttempts() + 1);
|
@@ -69,15 +69,15 @@ class Allopass_Hipay_Model_SplitPayment extends Mage_Core_Model_Abstract
|
|
69 |
else{ //Order is already paid, so we set complete status
|
70 |
$this->setStatus(self::SPLIT_PAYMENT_STATUS_COMPLETE);
|
71 |
}
|
72 |
-
|
73 |
}
|
74 |
-
|
75 |
$this->setAttempts($this->getAttempts() + 1);
|
76 |
$this->save();
|
77 |
return $this;
|
78 |
-
|
79 |
}
|
80 |
-
|
81 |
public function sendErrorEmail()
|
82 |
{
|
83 |
/* @var $helperCheckout Mage_Checkout_Helper_Data */
|
@@ -86,7 +86,7 @@ class Allopass_Hipay_Model_SplitPayment extends Mage_Core_Model_Abstract
|
|
86 |
$message = Mage::helper('hipay')->__("Error on request split Payment HIPAY. Split Payment Id: ".$this->getSplitPaymentId());
|
87 |
$helperCheckout->sendPaymentFailedEmail($order, $message,'Split Payment Hipay');
|
88 |
}
|
89 |
-
|
90 |
/**
|
91 |
* @return Allopass_Hipay_Model_Method_Abstract
|
92 |
*/
|
@@ -100,12 +100,12 @@ class Allopass_Hipay_Model_SplitPayment extends Mage_Core_Model_Abstract
|
|
100 |
}
|
101 |
return Mage::getSingleton($moduleName . "/method_" . $methodClass );
|
102 |
}
|
103 |
-
|
104 |
public function canPay()
|
105 |
{
|
106 |
return $this->getStatus() == self::SPLIT_PAYMENT_STATUS_FAILED || $this->getStatus() == self::SPLIT_PAYMENT_STATUS_PENDING;
|
107 |
}
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
}
|
1 |
<?php
|
2 |
class Allopass_Hipay_Model_SplitPayment extends Mage_Core_Model_Abstract
|
3 |
{
|
4 |
+
|
5 |
const SPLIT_PAYMENT_STATUS_PENDING = 'pending';
|
6 |
const SPLIT_PAYMENT_STATUS_FAILED = 'failed';
|
7 |
const SPLIT_PAYMENT_STATUS_COMPLETE = 'complete';
|
8 |
+
|
9 |
protected function _construct()
|
10 |
{
|
11 |
parent::_construct();
|
12 |
$this->_init('hipay/splitPayment');
|
13 |
$this->setIdFieldName('split_payment_id');
|
14 |
}
|
15 |
+
|
16 |
+
|
17 |
static function getStatues()
|
18 |
{
|
19 |
$statues = array(self::SPLIT_PAYMENT_STATUS_PENDING=>Mage::helper('sales')->__('Pending'),
|
20 |
self::SPLIT_PAYMENT_STATUS_FAILED=>Mage::helper('sales')->__('Failed'),
|
21 |
self::SPLIT_PAYMENT_STATUS_COMPLETE=>Mage::helper('sales')->__('Complete')
|
22 |
);
|
23 |
+
|
24 |
return $statues;
|
25 |
}
|
26 |
+
|
27 |
/**
|
28 |
+
*
|
29 |
* @return boolean|string
|
30 |
*/
|
31 |
public function pay()
|
32 |
{
|
33 |
+
|
34 |
if(!$this->canPay())
|
35 |
Mage::throwException("This split payment is already paid!");
|
36 |
+
|
37 |
if(!$this->getId())
|
38 |
{
|
39 |
Mage::throwException("Split Payment not found!");
|
40 |
}
|
41 |
+
|
42 |
try {
|
43 |
+
|
44 |
$state = $this->getMethodInstance()->paySplitPayment($this);
|
45 |
switch ($state)
|
46 |
{
|
55 |
$this->setStatus(self::SPLIT_PAYMENT_STATUS_FAILED);
|
56 |
$this->sendErrorEmail();
|
57 |
break;
|
58 |
+
|
59 |
}
|
60 |
+
|
61 |
} catch (Exception $e) {
|
62 |
+
|
63 |
if($e->getMessage() != 'Code: 3010004. Message: This order has already been paid'){
|
64 |
$this->setStatus(self::SPLIT_PAYMENT_STATUS_FAILED);
|
65 |
$this->setAttempts($this->getAttempts() + 1);
|
69 |
else{ //Order is already paid, so we set complete status
|
70 |
$this->setStatus(self::SPLIT_PAYMENT_STATUS_COMPLETE);
|
71 |
}
|
72 |
+
|
73 |
}
|
74 |
+
|
75 |
$this->setAttempts($this->getAttempts() + 1);
|
76 |
$this->save();
|
77 |
return $this;
|
78 |
+
|
79 |
}
|
80 |
+
|
81 |
public function sendErrorEmail()
|
82 |
{
|
83 |
/* @var $helperCheckout Mage_Checkout_Helper_Data */
|
86 |
$message = Mage::helper('hipay')->__("Error on request split Payment HIPAY. Split Payment Id: ".$this->getSplitPaymentId());
|
87 |
$helperCheckout->sendPaymentFailedEmail($order, $message,'Split Payment Hipay');
|
88 |
}
|
89 |
+
|
90 |
/**
|
91 |
* @return Allopass_Hipay_Model_Method_Abstract
|
92 |
*/
|
100 |
}
|
101 |
return Mage::getSingleton($moduleName . "/method_" . $methodClass );
|
102 |
}
|
103 |
+
|
104 |
public function canPay()
|
105 |
{
|
106 |
return $this->getStatus() == self::SPLIT_PAYMENT_STATUS_FAILED || $this->getStatus() == self::SPLIT_PAYMENT_STATUS_PENDING;
|
107 |
}
|
108 |
+
|
109 |
+
|
110 |
+
|
111 |
}
|
app/code/community/Allopass/Hipay/controllers/Adminhtml/PaymentController.php
CHANGED
@@ -7,18 +7,6 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
7 |
*/
|
8 |
protected $_order = null;
|
9 |
|
10 |
-
|
11 |
-
/**
|
12 |
-
*
|
13 |
-
* @return Allopass_Hipay_Model_Method_Abstract $methodInstance
|
14 |
-
*/
|
15 |
-
protected function _getMethodInstance()
|
16 |
-
{
|
17 |
-
$modelName = Mage::getStoreConfig('payment/'.$this->getCheckout()->getMethod()."/model");
|
18 |
-
return Mage::getSingleton($modelName);
|
19 |
-
|
20 |
-
}
|
21 |
-
|
22 |
public function reviewCapturePaymentAction()
|
23 |
{
|
24 |
/* @var $order Mage_Sales_Model_Order */
|
@@ -35,9 +23,8 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
35 |
Mage::register('current_order', $order);
|
36 |
|
37 |
try {
|
38 |
-
|
39 |
$order->getPayment()->accept();
|
40 |
-
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING,Allopass_Hipay_Model_Method_Cc::STATUS_PENDING_CAPTURE);
|
41 |
$message = $this->__('The payment has been accepted.');
|
42 |
$order->save();
|
43 |
$this->_getSession()->addSuccess($message);
|
@@ -73,7 +60,6 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
73 |
|
74 |
$message = $this->__('You must reload the page to see new status.');
|
75 |
$this->_getSession()->addSuccess($message);
|
76 |
-
|
77 |
} catch (Mage_Core_Exception $e) {
|
78 |
$this->_getSession()->addError($e->getMessage());
|
79 |
} catch (Exception $e) {
|
@@ -90,12 +76,9 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
90 |
|
91 |
$methodInstance = $this->_getMethodInstance();
|
92 |
|
93 |
-
try
|
94 |
-
|
95 |
-
|
96 |
-
}
|
97 |
-
catch (Exception $e)
|
98 |
-
{
|
99 |
Mage::logException($e);
|
100 |
$this->_getSession()->addError($e->getMessage());
|
101 |
$this->_redirect('adminhtml/sales_order/index');
|
@@ -104,7 +87,7 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
104 |
|
105 |
// Send Mail to customer with payment information
|
106 |
$url = $payment ->getAdditionalInformation('redirectUrl');
|
107 |
-
if($url && (strpos($order->getPayment()->getMethod(),'hipay_hosted') !== false)){
|
108 |
$receiver = Mage::getModel('customer/customer')->load($payment->getOrder()->getCustomerId());
|
109 |
Mage::helper('hipay')->sendLinkPaymentEmail($receiver, $payment->getOrder());
|
110 |
}
|
@@ -112,24 +95,85 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
112 |
$this->_redirectUrl($redirectUrl);
|
113 |
|
114 |
return $this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
public function acceptAction()
|
120 |
{
|
121 |
-
if(($profileIds = Mage::getSingleton('checkout/session')->getLastRecurringProfileIds()))
|
122 |
-
|
123 |
-
if(is_array($profileIds))
|
124 |
-
{
|
125 |
/* @var $gatewayResponse Allopass_Hipay_Model_Api_Response_Gateway */
|
126 |
-
$gatewayResponse = Mage::getSingleton('hipay/api_response_gateway'
|
127 |
$collection = Mage::getModel('sales/recurring_profile')->getCollection()
|
128 |
->addFieldToFilter('profile_id', array('in' => $profileIds))
|
129 |
;
|
130 |
$profiles = array();
|
131 |
foreach ($collection as $profile) {
|
132 |
-
|
133 |
$additionalInfo = array();
|
134 |
$additionalInfo['ccType'] = $gatewayResponse->getBrand();
|
135 |
$additionalInfo['ccExpMonth'] = $gatewayResponse->getCardExpiryMonth() ;
|
@@ -157,6 +201,17 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
157 |
return $this;
|
158 |
}
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
public function pendingAction()
|
161 |
{
|
162 |
$this->processResponse();
|
@@ -173,7 +228,6 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
173 |
return $this;
|
174 |
}
|
175 |
|
176 |
-
|
177 |
public function exceptionAction()
|
178 |
{
|
179 |
//$this->_redirect('checkout/onepage/failure');
|
@@ -181,7 +235,6 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
181 |
return $this;
|
182 |
}
|
183 |
|
184 |
-
|
185 |
public function cancelAction()
|
186 |
{
|
187 |
$this->processResponse();
|
@@ -190,111 +243,38 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
190 |
return $this;
|
191 |
}
|
192 |
|
193 |
-
protected function processResponse()
|
194 |
-
{
|
195 |
-
$order = $this->getOrder();
|
196 |
-
$payment = $order->getPayment();
|
197 |
-
|
198 |
-
/* @var $gatewayResponse Allopass_Hipay_Model_Api_Response_Gateway */
|
199 |
-
$gatewayResponse = Mage::getSingleton('hipay/api_response_gateway',$this->getRequest()->getParams());
|
200 |
-
|
201 |
-
$this->_getMethodInstance()->processResponseToRedirect($gatewayResponse, $payment, $order->getBaseTotalDue());
|
202 |
-
}
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
/**
|
207 |
-
*
|
208 |
-
* @return Mage_Sales_Model_Order
|
209 |
-
*/
|
210 |
-
protected function getOrder()
|
211 |
-
{
|
212 |
-
if(is_null($this->_order))
|
213 |
-
{
|
214 |
-
|
215 |
-
if(($profileIds = $this->getCheckout()->getLastRecurringProfileIds()))
|
216 |
-
{
|
217 |
-
|
218 |
-
if (is_array($profileIds)) {
|
219 |
-
|
220 |
-
foreach ($profileIds as $profileId)
|
221 |
-
{
|
222 |
-
/* @var $profile Mage_Sales_Model_Recurring_Profile */
|
223 |
-
$profile = Mage::getModel('sales/recurring_profile')->load($profileId);
|
224 |
-
/* @var $_helperRecurring Allopass_Hipayrecurring_Helper_Data */
|
225 |
-
$_helperRecurring = Mage::helper('hipayrecurring');
|
226 |
-
|
227 |
-
if($_helperRecurring->isInitialProfileOrder($profile))
|
228 |
-
$this->_order = $_helperRecurring->createOrderFromProfile($profile);
|
229 |
-
else
|
230 |
-
{
|
231 |
-
$orderId = current($profile->getChildOrderIds());
|
232 |
-
$this->_order = Mage::getModel('sales/order')->load($orderId);
|
233 |
-
|
234 |
-
$additionalInfo = $profile->getAdditionalInfo();
|
235 |
-
|
236 |
-
$this->_order->getPayment()->setCcType(isset($additionalInfo['ccType']) ? $additionalInfo['ccType'] : "");
|
237 |
-
$this->_order->getPayment()->setCcExpMonth(isset($additionalInfo['ccExpMonth']) ? $additionalInfo['ccExpMonth'] : "");
|
238 |
-
$this->_order->getPayment()->setCcExpYear(isset($additionalInfo['ccExpYear']) ? $additionalInfo['ccExpYear'] : "");
|
239 |
-
$this->_order->getPayment()->setAdditionalInformation('token',isset($additionalInfo['token']) ? $additionalInfo['token'] : "");
|
240 |
-
$this->_order->getPayment()->setAdditionalInformation('create_oneclick',isset($additionalInfo['create_oneclick']) ? $additionalInfo['create_oneclick'] : 1);
|
241 |
-
$this->_order->getPayment()->setAdditionalInformation('use_oneclick',isset($additionalInfo['use_oneclick']) ? $additionalInfo['use_oneclick'] : 0);
|
242 |
-
$this->_order->getPayment()->setAdditionalInformation('selected_oneclick_card',isset($additionalInfo['selected_oneclick_card']) ? $additionalInfo['selected_oneclick_card'] : 0);
|
243 |
-
}
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
return $this->_order; //because only one nominal item in cart is authorized and Hipay not manage many profiles
|
248 |
-
}
|
249 |
-
|
250 |
-
|
251 |
-
}
|
252 |
-
|
253 |
-
Mage::throwException("An error occured. Profile Ids not present!");
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
}
|
258 |
-
else
|
259 |
-
{
|
260 |
-
$this->_order = Mage::getModel('sales/order')->load($this->getCheckout()->getLastOrderId());
|
261 |
-
|
262 |
-
}
|
263 |
-
}
|
264 |
-
|
265 |
-
return $this->_order;
|
266 |
-
}
|
267 |
-
|
268 |
/**
|
269 |
* Add method to calculate amount from recurring profile
|
270 |
* @param Mage_Sales_Model_Recurring_Profile $profile
|
271 |
* @return int $amount
|
272 |
**/
|
273 |
-
public function getAmountFromProfile(Mage_Sales_Model_Recurring_Profile $profile)
|
|
|
274 |
$amount = $profile->getBillingAmount() + $profile->getTaxAmount() + $profile->getShippingAmount();
|
275 |
|
276 |
-
if($this->isInitialProfileOrder($profile))
|
277 |
$amount += $profile->getInitAmount() ;
|
|
|
278 |
|
279 |
return $amount;
|
280 |
}
|
281 |
|
282 |
protected function isInitialProfileOrder(Mage_Sales_Model_Recurring_Profile $profile)
|
283 |
{
|
284 |
-
if(count($profile->getChildOrderIds()) && current($profile->getChildOrderIds()) == "-1")
|
285 |
return true;
|
|
|
286 |
|
287 |
return false;
|
288 |
}
|
289 |
|
290 |
-
|
291 |
/**
|
|
|
292 |
*
|
293 |
-
* @return
|
294 |
*/
|
295 |
-
protected function
|
296 |
{
|
297 |
-
return Mage::getSingleton('
|
298 |
}
|
299 |
-
|
300 |
-
}
|
7 |
*/
|
8 |
protected $_order = null;
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
public function reviewCapturePaymentAction()
|
11 |
{
|
12 |
/* @var $order Mage_Sales_Model_Order */
|
23 |
Mage::register('current_order', $order);
|
24 |
|
25 |
try {
|
|
|
26 |
$order->getPayment()->accept();
|
27 |
+
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, Allopass_Hipay_Model_Method_Cc::STATUS_PENDING_CAPTURE);
|
28 |
$message = $this->__('The payment has been accepted.');
|
29 |
$order->save();
|
30 |
$this->_getSession()->addSuccess($message);
|
60 |
|
61 |
$message = $this->__('You must reload the page to see new status.');
|
62 |
$this->_getSession()->addSuccess($message);
|
|
|
63 |
} catch (Mage_Core_Exception $e) {
|
64 |
$this->_getSession()->addError($e->getMessage());
|
65 |
} catch (Exception $e) {
|
76 |
|
77 |
$methodInstance = $this->_getMethodInstance();
|
78 |
|
79 |
+
try {
|
80 |
+
$redirectUrl = $methodInstance->place($payment, $order->getBaseTotalDue());
|
81 |
+
} catch (Exception $e) {
|
|
|
|
|
|
|
82 |
Mage::logException($e);
|
83 |
$this->_getSession()->addError($e->getMessage());
|
84 |
$this->_redirect('adminhtml/sales_order/index');
|
87 |
|
88 |
// Send Mail to customer with payment information
|
89 |
$url = $payment ->getAdditionalInformation('redirectUrl');
|
90 |
+
if ($url && (strpos($order->getPayment()->getMethod(), 'hipay_hosted') !== false)) {
|
91 |
$receiver = Mage::getModel('customer/customer')->load($payment->getOrder()->getCustomerId());
|
92 |
Mage::helper('hipay')->sendLinkPaymentEmail($receiver, $payment->getOrder());
|
93 |
}
|
95 |
$this->_redirectUrl($redirectUrl);
|
96 |
|
97 |
return $this;
|
98 |
+
}
|
99 |
+
|
100 |
+
/**
|
101 |
+
*
|
102 |
+
* @return Mage_Sales_Model_Order
|
103 |
+
*/
|
104 |
+
protected function getOrder()
|
105 |
+
{
|
106 |
+
if (is_null($this->_order)) {
|
107 |
+
if (($profileIds = $this->getCheckout()->getLastRecurringProfileIds())) {
|
108 |
+
if (is_array($profileIds)) {
|
109 |
+
foreach ($profileIds as $profileId) {
|
110 |
+
/* @var $profile Mage_Sales_Model_Recurring_Profile */
|
111 |
+
$profile = Mage::getModel('sales/recurring_profile')->load($profileId);
|
112 |
+
/* @var $_helperRecurring Allopass_Hipayrecurring_Helper_Data */
|
113 |
+
$_helperRecurring = Mage::helper('hipayrecurring');
|
114 |
+
|
115 |
+
if ($_helperRecurring->isInitialProfileOrder($profile)) {
|
116 |
+
$this->_order = $_helperRecurring->createOrderFromProfile($profile);
|
117 |
+
} else {
|
118 |
+
$orderId = current($profile->getChildOrderIds());
|
119 |
+
$this->_order = Mage::getModel('sales/order')->load($orderId);
|
120 |
+
|
121 |
+
$additionalInfo = $profile->getAdditionalInfo();
|
122 |
+
|
123 |
+
$this->_order->getPayment()->setCcType(isset($additionalInfo['ccType']) ? $additionalInfo['ccType'] : "");
|
124 |
+
$this->_order->getPayment()->setCcExpMonth(isset($additionalInfo['ccExpMonth']) ? $additionalInfo['ccExpMonth'] : "");
|
125 |
+
$this->_order->getPayment()->setCcExpYear(isset($additionalInfo['ccExpYear']) ? $additionalInfo['ccExpYear'] : "");
|
126 |
+
$this->_order->getPayment()->setAdditionalInformation('token', isset($additionalInfo['token']) ? $additionalInfo['token'] : "");
|
127 |
+
$this->_order->getPayment()->setAdditionalInformation('create_oneclick', isset($additionalInfo['create_oneclick']) ? $additionalInfo['create_oneclick'] : 1);
|
128 |
+
$this->_order->getPayment()->setAdditionalInformation('use_oneclick', isset($additionalInfo['use_oneclick']) ? $additionalInfo['use_oneclick'] : 0);
|
129 |
+
$this->_order->getPayment()->setAdditionalInformation('selected_oneclick_card', isset($additionalInfo['selected_oneclick_card']) ? $additionalInfo['selected_oneclick_card'] : 0);
|
130 |
+
}
|
131 |
+
|
132 |
+
|
133 |
|
134 |
+
return $this->_order; //because only one nominal item in cart is authorized and Hipay not manage many profiles
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
Mage::throwException("An error occured. Profile Ids not present!");
|
139 |
+
} else {
|
140 |
+
$this->_order = Mage::getModel('sales/order')->load($this->getCheckout()->getLastOrderId());
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
return $this->_order;
|
145 |
+
}
|
146 |
+
|
147 |
+
/**
|
148 |
+
*
|
149 |
+
* @return Mage_Checkout_Model_Session
|
150 |
+
*/
|
151 |
+
protected function getCheckout()
|
152 |
+
{
|
153 |
+
return Mage::getSingleton('checkout/session');
|
154 |
}
|
155 |
|
156 |
+
/**
|
157 |
+
*
|
158 |
+
* @return Allopass_Hipay_Model_Method_Abstract $methodInstance
|
159 |
+
*/
|
160 |
+
protected function _getMethodInstance()
|
161 |
+
{
|
162 |
+
$modelName = Mage::getStoreConfig('payment/'.$this->getCheckout()->getMethod()."/model");
|
163 |
+
return Mage::getSingleton($modelName);
|
164 |
+
}
|
165 |
|
166 |
public function acceptAction()
|
167 |
{
|
168 |
+
if (($profileIds = Mage::getSingleton('checkout/session')->getLastRecurringProfileIds())) {
|
169 |
+
if (is_array($profileIds)) {
|
|
|
|
|
170 |
/* @var $gatewayResponse Allopass_Hipay_Model_Api_Response_Gateway */
|
171 |
+
$gatewayResponse = Mage::getSingleton('hipay/api_response_gateway', $this->getRequest()->getParams());
|
172 |
$collection = Mage::getModel('sales/recurring_profile')->getCollection()
|
173 |
->addFieldToFilter('profile_id', array('in' => $profileIds))
|
174 |
;
|
175 |
$profiles = array();
|
176 |
foreach ($collection as $profile) {
|
|
|
177 |
$additionalInfo = array();
|
178 |
$additionalInfo['ccType'] = $gatewayResponse->getBrand();
|
179 |
$additionalInfo['ccExpMonth'] = $gatewayResponse->getCardExpiryMonth() ;
|
201 |
return $this;
|
202 |
}
|
203 |
|
204 |
+
protected function processResponse()
|
205 |
+
{
|
206 |
+
$order = $this->getOrder();
|
207 |
+
$payment = $order->getPayment();
|
208 |
+
|
209 |
+
/* @var $gatewayResponse Allopass_Hipay_Model_Api_Response_Gateway */
|
210 |
+
$gatewayResponse = Mage::getSingleton('hipay/api_response_gateway', $this->getRequest()->getParams());
|
211 |
+
|
212 |
+
$this->_getMethodInstance()->processResponseToRedirect($gatewayResponse, $payment, $order->getBaseTotalDue());
|
213 |
+
}
|
214 |
+
|
215 |
public function pendingAction()
|
216 |
{
|
217 |
$this->processResponse();
|
228 |
return $this;
|
229 |
}
|
230 |
|
|
|
231 |
public function exceptionAction()
|
232 |
{
|
233 |
//$this->_redirect('checkout/onepage/failure');
|
235 |
return $this;
|
236 |
}
|
237 |
|
|
|
238 |
public function cancelAction()
|
239 |
{
|
240 |
$this->processResponse();
|
243 |
return $this;
|
244 |
}
|
245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
/**
|
247 |
* Add method to calculate amount from recurring profile
|
248 |
* @param Mage_Sales_Model_Recurring_Profile $profile
|
249 |
* @return int $amount
|
250 |
**/
|
251 |
+
public function getAmountFromProfile(Mage_Sales_Model_Recurring_Profile $profile)
|
252 |
+
{
|
253 |
$amount = $profile->getBillingAmount() + $profile->getTaxAmount() + $profile->getShippingAmount();
|
254 |
|
255 |
+
if ($this->isInitialProfileOrder($profile)) {
|
256 |
$amount += $profile->getInitAmount() ;
|
257 |
+
}
|
258 |
|
259 |
return $amount;
|
260 |
}
|
261 |
|
262 |
protected function isInitialProfileOrder(Mage_Sales_Model_Recurring_Profile $profile)
|
263 |
{
|
264 |
+
if (count($profile->getChildOrderIds()) && current($profile->getChildOrderIds()) == "-1") {
|
265 |
return true;
|
266 |
+
}
|
267 |
|
268 |
return false;
|
269 |
}
|
270 |
|
|
|
271 |
/**
|
272 |
+
* Check if user is allowed to use this controller
|
273 |
*
|
274 |
+
* @return boolean
|
275 |
*/
|
276 |
+
protected function _isAllowed()
|
277 |
{
|
278 |
+
return Mage::getSingleton('admin/session')->isAllowed('sales/order');
|
279 |
}
|
280 |
+
}
|
|
app/code/community/Allopass/Hipay/controllers/AuraController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_AuraController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_aura');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/BanamexController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_BanamexController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_banamex');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/BancoController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_BancoController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_banco');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/BbvaController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_BbvaController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_bbva');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/BoletoController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_BoletoController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_boleto');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/BradescoController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_BradescoController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_bradesco');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/CaixaController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_CaixaController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_caixa');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/DiscoverController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_DiscoverController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_boleto');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/Facilipay3xController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Facilipay3xController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_facilipay3x');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/Facilipay4xController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Facilipay4xController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_facilipay4x');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/ItauController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_ItauController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_itau');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/OxxoController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_OxxoController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_oxxo');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/SantanderCashController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_SantanderCashController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_santandercash');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/SantanderController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_SantanderController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_santander');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/etc/config.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<config>
|
2 |
<modules>
|
3 |
<Allopass_Hipay>
|
4 |
-
<version>1.
|
5 |
</Allopass_Hipay>
|
6 |
</modules>
|
7 |
<global>
|
@@ -385,7 +385,7 @@
|
|
385 |
<payment>
|
386 |
<hipay_cc>
|
387 |
<active>0</active>
|
388 |
-
<title>Credit Card</title>
|
389 |
<payment_action>authorize_capture</payment_action>
|
390 |
<cctypes>VI,MC,AE,SDD</cctypes>
|
391 |
<display_card_owner>0</display_card_owner>
|
@@ -413,7 +413,7 @@
|
|
413 |
</hipay_cc>
|
414 |
<hipay_ccxtimes>
|
415 |
<active>0</active>
|
416 |
-
<title>Credit Card Split Payment</title>
|
417 |
<payment_action>authorize_capture</payment_action>
|
418 |
<cctypes>VI,MC,AE</cctypes>
|
419 |
<display_card_owner>0</display_card_owner>
|
@@ -441,7 +441,7 @@
|
|
441 |
</hipay_ccxtimes>
|
442 |
<hipay_hosted>
|
443 |
<active>0</active>
|
444 |
-
<title>Credit Card</title>
|
445 |
<payment_action>authorize_capture</payment_action>
|
446 |
<cctypes>american-express,visa,mastercard</cctypes>
|
447 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
@@ -474,7 +474,7 @@
|
|
474 |
</hipay_hosted>
|
475 |
<hipay_hostedxtimes>
|
476 |
<active>0</active>
|
477 |
-
<title>Credit Card Split Payment</title>
|
478 |
<payment_action>authorize_capture</payment_action>
|
479 |
<cctypes>american-express,visa,mastercard</cctypes>
|
480 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
@@ -507,7 +507,7 @@
|
|
507 |
</hipay_hostedxtimes>
|
508 |
<hipay_sofortapi>
|
509 |
<active>0</active> <!-- Activé ou non -->
|
510 |
-
<title>HiPay Sofort</title> <!-- Titre par défaut modifiable en admin -->
|
511 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
512 |
<cctypes>sofort-uberweisung</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
513 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -535,7 +535,7 @@
|
|
535 |
</hipay_sofortapi>
|
536 |
<hipay_ideal>
|
537 |
<active>0</active> <!-- Activé ou non -->
|
538 |
-
<title>HiPay iDeal</title> <!-- Titre par défaut modifiable en admin -->
|
539 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
540 |
<cctypes>ideal</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
541 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -595,7 +595,7 @@
|
|
595 |
</hipay_ing>
|
596 |
<hipay_dexia>
|
597 |
<active>0</active> <!-- Activé ou non -->
|
598 |
-
<title>HiPay Belfius / Dexia Direct Net</title> <!-- Titre par défaut modifiable en admin -->
|
599 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
600 |
<cctypes>dexia-directnet</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
601 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -683,7 +683,7 @@
|
|
683 |
<!-- </hipay_kbc> -->
|
684 |
<hipay_giropay>
|
685 |
<active>0</active> <!-- Activé ou non -->
|
686 |
-
<title>HiPay Giropay</title> <!-- Titre par défaut modifiable en admin -->
|
687 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
688 |
<cctypes>giropay</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
689 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -713,7 +713,7 @@
|
|
713 |
</hipay_giropay>
|
714 |
<hipay_przelewy24api>
|
715 |
<active>0</active> <!-- Activé ou non -->
|
716 |
-
<title>HiPay Przelewy24</title> <!-- Titre par défaut modifiable en admin -->
|
717 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
718 |
<cctypes>przelewy24</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
719 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -743,7 +743,7 @@
|
|
743 |
</hipay_przelewy24api>
|
744 |
<hipay_sisalapi>
|
745 |
<active>0</active> <!-- Activé ou non -->
|
746 |
-
<title>HiPay Sisal</title> <!-- Titre par défaut modifiable en admin -->
|
747 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
748 |
<cctypes>sisal</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
749 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -771,7 +771,7 @@
|
|
771 |
</hipay_sisalapi>
|
772 |
<hipay_qiwi>
|
773 |
<active>0</active> <!-- Activé ou non -->
|
774 |
-
<title>HiPay Visa Qiwi Wallet</title> <!-- Titre par défaut modifiable en admin -->
|
775 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
776 |
<cctypes>qiwi-wallet</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
777 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -801,7 +801,7 @@
|
|
801 |
</hipay_qiwi>
|
802 |
<hipay_webmoneyapi>
|
803 |
<active>0</active> <!-- Activé ou non -->
|
804 |
-
<title>HiPay WebMoney Transfer</title> <!-- Titre par défaut modifiable en admin -->
|
805 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
806 |
<cctypes>webmoney-transfer</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
807 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -831,7 +831,7 @@
|
|
831 |
</hipay_webmoneyapi>
|
832 |
<hipay_yandexapi>
|
833 |
<active>0</active> <!-- Activé ou non -->
|
834 |
-
<title>HiPay Yandex.Money</title> <!-- Titre par défaut modifiable en admin -->
|
835 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
836 |
<cctypes>yandex</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
837 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -861,7 +861,7 @@
|
|
861 |
</hipay_yandexapi>
|
862 |
<hipay_paypalapi>
|
863 |
<active>0</active> <!-- Activé ou non -->
|
864 |
-
<title>HiPay PayPal</title> <!-- Titre par défaut modifiable en admin -->
|
865 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
866 |
<cctypes>paypal</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
867 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -889,7 +889,7 @@
|
|
889 |
</hipay_paypalapi>
|
890 |
<hipay_sdd>
|
891 |
<active>0</active>
|
892 |
-
<title>HiPay SEPA Direct Debit</title>
|
893 |
<payment_action>authorize_capture</payment_action>
|
894 |
<cctypes>SDD</cctypes>
|
895 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
@@ -914,9 +914,9 @@
|
|
914 |
<electronic_signature>1</electronic_signature>
|
915 |
<send_fraud_payment_email>0</send_fraud_payment_email>
|
916 |
</hipay_sdd>
|
917 |
-
|
918 |
<active>0</active> <!-- Activé ou non -->
|
919 |
-
<title>HiPay PostFinance Card</title> <!-- Titre par défaut modifiable en admin -->
|
920 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
921 |
<cctypes>postfinance-card</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
922 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -944,7 +944,7 @@
|
|
944 |
</hipay_postfinancecardapi>
|
945 |
<hipay_postfinanceefinanceapi>
|
946 |
<active>0</active> <!-- Activé ou non -->
|
947 |
-
<title>HiPay PostFinance E-Finance</title> <!-- Titre par défaut modifiable en admin -->
|
948 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
949 |
<cctypes>postfinance-efinance</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
950 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
@@ -972,7 +972,7 @@
|
|
972 |
</hipay_postfinanceefinanceapi>
|
973 |
<hipay_klarna>
|
974 |
<active>0</active>
|
975 |
-
<title>Klarna invoice</title>
|
976 |
<payment_action>authorize_capture</payment_action>
|
977 |
<cctypes>klarnainvoice</cctypes>
|
978 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
@@ -1001,6 +1001,477 @@
|
|
1001 |
<specificcountry>DE</specificcountry>
|
1002 |
<currency>EUR</currency>
|
1003 |
</hipay_klarna>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1004 |
</payment>
|
1005 |
</default>
|
1006 |
<crontab>
|
1 |
<config>
|
2 |
<modules>
|
3 |
<Allopass_Hipay>
|
4 |
+
<version>1.7.0</version>
|
5 |
</Allopass_Hipay>
|
6 |
</modules>
|
7 |
<global>
|
385 |
<payment>
|
386 |
<hipay_cc>
|
387 |
<active>0</active>
|
388 |
+
<title>HiPay Enterprise Credit Card</title>
|
389 |
<payment_action>authorize_capture</payment_action>
|
390 |
<cctypes>VI,MC,AE,SDD</cctypes>
|
391 |
<display_card_owner>0</display_card_owner>
|
413 |
</hipay_cc>
|
414 |
<hipay_ccxtimes>
|
415 |
<active>0</active>
|
416 |
+
<title>HiPay Enterprise Credit Card Split Payment</title>
|
417 |
<payment_action>authorize_capture</payment_action>
|
418 |
<cctypes>VI,MC,AE</cctypes>
|
419 |
<display_card_owner>0</display_card_owner>
|
441 |
</hipay_ccxtimes>
|
442 |
<hipay_hosted>
|
443 |
<active>0</active>
|
444 |
+
<title>HiPay Enterprise Credit Card</title>
|
445 |
<payment_action>authorize_capture</payment_action>
|
446 |
<cctypes>american-express,visa,mastercard</cctypes>
|
447 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
474 |
</hipay_hosted>
|
475 |
<hipay_hostedxtimes>
|
476 |
<active>0</active>
|
477 |
+
<title>HiPay Enterprise Credit Card Split Payment</title>
|
478 |
<payment_action>authorize_capture</payment_action>
|
479 |
<cctypes>american-express,visa,mastercard</cctypes>
|
480 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
507 |
</hipay_hostedxtimes>
|
508 |
<hipay_sofortapi>
|
509 |
<active>0</active> <!-- Activé ou non -->
|
510 |
+
<title>HiPay Enterprise Sofort</title> <!-- Titre par défaut modifiable en admin -->
|
511 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
512 |
<cctypes>sofort-uberweisung</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
513 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
535 |
</hipay_sofortapi>
|
536 |
<hipay_ideal>
|
537 |
<active>0</active> <!-- Activé ou non -->
|
538 |
+
<title>HiPay Enterprise iDeal</title> <!-- Titre par défaut modifiable en admin -->
|
539 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
540 |
<cctypes>ideal</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
541 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
595 |
</hipay_ing>
|
596 |
<hipay_dexia>
|
597 |
<active>0</active> <!-- Activé ou non -->
|
598 |
+
<title>HiPay Enterprise Belfius / Dexia Direct Net</title> <!-- Titre par défaut modifiable en admin -->
|
599 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
600 |
<cctypes>dexia-directnet</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
601 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
683 |
<!-- </hipay_kbc> -->
|
684 |
<hipay_giropay>
|
685 |
<active>0</active> <!-- Activé ou non -->
|
686 |
+
<title>HiPay Enterprise Giropay</title> <!-- Titre par défaut modifiable en admin -->
|
687 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
688 |
<cctypes>giropay</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
689 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
713 |
</hipay_giropay>
|
714 |
<hipay_przelewy24api>
|
715 |
<active>0</active> <!-- Activé ou non -->
|
716 |
+
<title>HiPay Enterprise Przelewy24</title> <!-- Titre par défaut modifiable en admin -->
|
717 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
718 |
<cctypes>przelewy24</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
719 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
743 |
</hipay_przelewy24api>
|
744 |
<hipay_sisalapi>
|
745 |
<active>0</active> <!-- Activé ou non -->
|
746 |
+
<title>HiPay Enterprise Sisal</title> <!-- Titre par défaut modifiable en admin -->
|
747 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
748 |
<cctypes>sisal</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
749 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
771 |
</hipay_sisalapi>
|
772 |
<hipay_qiwi>
|
773 |
<active>0</active> <!-- Activé ou non -->
|
774 |
+
<title>HiPay Enterprise Visa Qiwi Wallet</title> <!-- Titre par défaut modifiable en admin -->
|
775 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
776 |
<cctypes>qiwi-wallet</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
777 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
801 |
</hipay_qiwi>
|
802 |
<hipay_webmoneyapi>
|
803 |
<active>0</active> <!-- Activé ou non -->
|
804 |
+
<title>HiPay Enterprise WebMoney Transfer</title> <!-- Titre par défaut modifiable en admin -->
|
805 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
806 |
<cctypes>webmoney-transfer</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
807 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
831 |
</hipay_webmoneyapi>
|
832 |
<hipay_yandexapi>
|
833 |
<active>0</active> <!-- Activé ou non -->
|
834 |
+
<title>HiPay Enterprise Yandex.Money</title> <!-- Titre par défaut modifiable en admin -->
|
835 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
836 |
<cctypes>yandex</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
837 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
861 |
</hipay_yandexapi>
|
862 |
<hipay_paypalapi>
|
863 |
<active>0</active> <!-- Activé ou non -->
|
864 |
+
<title>HiPay Enterprise PayPal</title> <!-- Titre par défaut modifiable en admin -->
|
865 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
866 |
<cctypes>paypal</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
867 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
889 |
</hipay_paypalapi>
|
890 |
<hipay_sdd>
|
891 |
<active>0</active>
|
892 |
+
<title>HiPay Enterprise SEPA Direct Debit</title>
|
893 |
<payment_action>authorize_capture</payment_action>
|
894 |
<cctypes>SDD</cctypes>
|
895 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
914 |
<electronic_signature>1</electronic_signature>
|
915 |
<send_fraud_payment_email>0</send_fraud_payment_email>
|
916 |
</hipay_sdd>
|
917 |
+
<hipay_postfinancecardapi>
|
918 |
<active>0</active> <!-- Activé ou non -->
|
919 |
+
<title>HiPay Enterprise PostFinance Card</title> <!-- Titre par défaut modifiable en admin -->
|
920 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
921 |
<cctypes>postfinance-card</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
922 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
944 |
</hipay_postfinancecardapi>
|
945 |
<hipay_postfinanceefinanceapi>
|
946 |
<active>0</active> <!-- Activé ou non -->
|
947 |
+
<title>HiPay Enterprise PostFinance E-Finance</title> <!-- Titre par défaut modifiable en admin -->
|
948 |
<payment_action>authorize_capture</payment_action> <!-- Type d'action de paiement (authorize_capture ou authorize) -->
|
949 |
<cctypes>postfinance-efinance</cctypes> <!-- Types de carte disponibles (valeur Hipay pour le mode hosted, valeur Magento pour le mode API) -->
|
950 |
<!-- <useccv>1</useccv> --> <!-- permet de rendre obligatoire la saisie du CCV (uniquement en mode API) -->
|
972 |
</hipay_postfinanceefinanceapi>
|
973 |
<hipay_klarna>
|
974 |
<active>0</active>
|
975 |
+
<title>HiPay Enterprise Klarna invoice</title>
|
976 |
<payment_action>authorize_capture</payment_action>
|
977 |
<cctypes>klarnainvoice</cctypes>
|
978 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1001 |
<specificcountry>DE</specificcountry>
|
1002 |
<currency>EUR</currency>
|
1003 |
</hipay_klarna>
|
1004 |
+
<hipay_boleto>
|
1005 |
+
<active>0</active>
|
1006 |
+
<title>HiPay Enterprise Boleto bancario</title>
|
1007 |
+
<payment_action>authorize_capture</payment_action>
|
1008 |
+
<cctypes>boleto-bancario</cctypes>
|
1009 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1010 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1011 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1012 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1013 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1014 |
+
<display_selector>1</display_selector>
|
1015 |
+
<template>basic</template>
|
1016 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1017 |
+
<invoice_create>1</invoice_create>
|
1018 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1019 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1020 |
+
<display_iframe>0</display_iframe>
|
1021 |
+
<iframe_width>485px</iframe_width>
|
1022 |
+
<iframe_height>450px</iframe_height>
|
1023 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1024 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1025 |
+
<is_test_mode>0</is_test_mode>
|
1026 |
+
<debug>0</debug>
|
1027 |
+
<model>hipay/method_boleto</model>
|
1028 |
+
<accept_url>hipay/boleto/accept</accept_url>
|
1029 |
+
<pending_url>hipay/boleto/pending</pending_url>
|
1030 |
+
<decline_url>hipay/boleto/decline</decline_url>
|
1031 |
+
<exception_url>hipay/boleto/exception</exception_url>
|
1032 |
+
<cancel_url>hipay/boleto/cancel</cancel_url>
|
1033 |
+
<use_3d_secure>1</use_3d_secure>
|
1034 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1035 |
+
<allowspecific>1</allowspecific>
|
1036 |
+
<specificcountry>BR</specificcountry>
|
1037 |
+
<currency>BRL</currency>
|
1038 |
+
</hipay_boleto>
|
1039 |
+
<hipay_itau>
|
1040 |
+
<active>0</active>
|
1041 |
+
<title>HiPay Enterprise Itau</title>
|
1042 |
+
<payment_action>authorize_capture</payment_action>
|
1043 |
+
<cctypes>itau</cctypes>
|
1044 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1045 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1046 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1047 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1048 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1049 |
+
<display_selector>1</display_selector>
|
1050 |
+
<template>basic</template>
|
1051 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1052 |
+
<invoice_create>1</invoice_create>
|
1053 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1054 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1055 |
+
<display_iframe>0</display_iframe>
|
1056 |
+
<iframe_width>485px</iframe_width>
|
1057 |
+
<iframe_height>450px</iframe_height>
|
1058 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1059 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1060 |
+
<is_test_mode>0</is_test_mode>
|
1061 |
+
<debug>0</debug>
|
1062 |
+
<model>hipay/method_itau</model>
|
1063 |
+
<accept_url>hipay/itau/accept</accept_url>
|
1064 |
+
<pending_url>hipay/itau/pending</pending_url>
|
1065 |
+
<decline_url>hipay/itau/decline</decline_url>
|
1066 |
+
<exception_url>hipay/itau/exception</exception_url>
|
1067 |
+
<cancel_url>hipay/itau/cancel</cancel_url>
|
1068 |
+
<use_3d_secure>1</use_3d_secure>
|
1069 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1070 |
+
<allowspecific>1</allowspecific>
|
1071 |
+
<specificcountry>BR</specificcountry>
|
1072 |
+
<currency>BRL</currency>
|
1073 |
+
</hipay_itau>
|
1074 |
+
<hipay_bradesco>
|
1075 |
+
<active>0</active>
|
1076 |
+
<title>HiPay Enterprise Bradesco</title>
|
1077 |
+
<payment_action>authorize_capture</payment_action>
|
1078 |
+
<cctypes>bradesco</cctypes>
|
1079 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1080 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1081 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1082 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1083 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1084 |
+
<display_selector>1</display_selector>
|
1085 |
+
<template>basic</template>
|
1086 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1087 |
+
<invoice_create>1</invoice_create>
|
1088 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1089 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1090 |
+
<display_iframe>0</display_iframe>
|
1091 |
+
<iframe_width>485px</iframe_width>
|
1092 |
+
<iframe_height>450px</iframe_height>
|
1093 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1094 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1095 |
+
<is_test_mode>0</is_test_mode>
|
1096 |
+
<debug>0</debug>
|
1097 |
+
<model>hipay/method_bradesco</model>
|
1098 |
+
<accept_url>hipay/bradesco/accept</accept_url>
|
1099 |
+
<pending_url>hipay/bradesco/pending</pending_url>
|
1100 |
+
<decline_url>hipay/bradesco/decline</decline_url>
|
1101 |
+
<exception_url>hipay/bradesco/exception</exception_url>
|
1102 |
+
<cancel_url>hipay/bradesco/cancel</cancel_url>
|
1103 |
+
<use_3d_secure>1</use_3d_secure>
|
1104 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1105 |
+
<allowspecific>1</allowspecific>
|
1106 |
+
<specificcountry>BR</specificcountry>
|
1107 |
+
<currency>BRL</currency>
|
1108 |
+
</hipay_bradesco>
|
1109 |
+
<hipay_banco>
|
1110 |
+
<active>0</active>
|
1111 |
+
<title>HiPay Enterprise Banco do brazil</title>
|
1112 |
+
<payment_action>authorize_capture</payment_action>
|
1113 |
+
<cctypes>banco-do-brasil</cctypes>
|
1114 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1115 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1116 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1117 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1118 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1119 |
+
<display_selector>1</display_selector>
|
1120 |
+
<template>basic</template>
|
1121 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1122 |
+
<invoice_create>1</invoice_create>
|
1123 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1124 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1125 |
+
<display_iframe>0</display_iframe>
|
1126 |
+
<iframe_width>485px</iframe_width>
|
1127 |
+
<iframe_height>450px</iframe_height>
|
1128 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1129 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1130 |
+
<is_test_mode>0</is_test_mode>
|
1131 |
+
<debug>0</debug>
|
1132 |
+
<model>hipay/method_banco</model>
|
1133 |
+
<accept_url>hipay/banco/accept</accept_url>
|
1134 |
+
<pending_url>hipay/banco/pending</pending_url>
|
1135 |
+
<decline_url>hipay/banco/decline</decline_url>
|
1136 |
+
<exception_url>hipay/banco/exception</exception_url>
|
1137 |
+
<cancel_url>hipay/banco/cancel</cancel_url>
|
1138 |
+
<use_3d_secure>1</use_3d_secure>
|
1139 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1140 |
+
<allowspecific>1</allowspecific>
|
1141 |
+
<specificcountry>BR</specificcountry>
|
1142 |
+
<currency>BRL</currency>
|
1143 |
+
</hipay_banco>
|
1144 |
+
<hipay_santander>
|
1145 |
+
<active>0</active>
|
1146 |
+
<title>HiPay Enterprise Santander HomeBanking</title>
|
1147 |
+
<payment_action>authorize_capture</payment_action>
|
1148 |
+
<cctypes>santander-home-banking</cctypes>
|
1149 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1150 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1151 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1152 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1153 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1154 |
+
<display_selector>1</display_selector>
|
1155 |
+
<template>basic</template>
|
1156 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1157 |
+
<invoice_create>1</invoice_create>
|
1158 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1159 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1160 |
+
<display_iframe>0</display_iframe>
|
1161 |
+
<iframe_width>485px</iframe_width>
|
1162 |
+
<iframe_height>450px</iframe_height>
|
1163 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1164 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1165 |
+
<is_test_mode>0</is_test_mode>
|
1166 |
+
<debug>0</debug>
|
1167 |
+
<model>hipay/method_santander</model>
|
1168 |
+
<accept_url>hipay/santander/accept</accept_url>
|
1169 |
+
<pending_url>hipay/santander/pending</pending_url>
|
1170 |
+
<decline_url>hipay/santander/decline</decline_url>
|
1171 |
+
<exception_url>hipay/santander/exception</exception_url>
|
1172 |
+
<cancel_url>hipay/santander/cancel</cancel_url>
|
1173 |
+
<use_3d_secure>1</use_3d_secure>
|
1174 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1175 |
+
<allowspecific>1</allowspecific>
|
1176 |
+
<specificcountry>BR</specificcountry>
|
1177 |
+
<currency>BRL</currency>
|
1178 |
+
</hipay_santander>
|
1179 |
+
<hipay_aura>
|
1180 |
+
<active>0</active>
|
1181 |
+
<title>HiPay Enterprise Aura</title>
|
1182 |
+
<payment_action>authorize_capture</payment_action>
|
1183 |
+
<cctypes>aura</cctypes>
|
1184 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1185 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1186 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1187 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1188 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1189 |
+
<display_selector>1</display_selector>
|
1190 |
+
<template>basic</template>
|
1191 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1192 |
+
<invoice_create>1</invoice_create>
|
1193 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1194 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1195 |
+
<display_iframe>0</display_iframe>
|
1196 |
+
<iframe_width>485px</iframe_width>
|
1197 |
+
<iframe_height>450px</iframe_height>
|
1198 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1199 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1200 |
+
<is_test_mode>0</is_test_mode>
|
1201 |
+
<debug>0</debug>
|
1202 |
+
<model>hipay/method_aura</model>
|
1203 |
+
<accept_url>hipay/aura/accept</accept_url>
|
1204 |
+
<pending_url>hipay/aura/pending</pending_url>
|
1205 |
+
<decline_url>hipay/aura/decline</decline_url>
|
1206 |
+
<exception_url>hipay/aura/exception</exception_url>
|
1207 |
+
<cancel_url>hipay/aura/cancel</cancel_url>
|
1208 |
+
<use_3d_secure>1</use_3d_secure>
|
1209 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1210 |
+
<allowspecific>1</allowspecific>
|
1211 |
+
<specificcountry>BR</specificcountry>
|
1212 |
+
<currency>BRL</currency>
|
1213 |
+
</hipay_aura>
|
1214 |
+
<hipay_caixa>
|
1215 |
+
<active>0</active>
|
1216 |
+
<title>HiPay Enterprise Caixa</title>
|
1217 |
+
<payment_action>authorize_capture</payment_action>
|
1218 |
+
<cctypes>caixa</cctypes>
|
1219 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1220 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1221 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1222 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1223 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1224 |
+
<display_selector>1</display_selector>
|
1225 |
+
<template>basic</template>
|
1226 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1227 |
+
<invoice_create>1</invoice_create>
|
1228 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1229 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1230 |
+
<display_iframe>0</display_iframe>
|
1231 |
+
<iframe_width>485px</iframe_width>
|
1232 |
+
<iframe_height>450px</iframe_height>
|
1233 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1234 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1235 |
+
<is_test_mode>0</is_test_mode>
|
1236 |
+
<debug>0</debug>
|
1237 |
+
<model>hipay/method_caixa</model>
|
1238 |
+
<accept_url>hipay/caixa/accept</accept_url>
|
1239 |
+
<pending_url>hipay/caixa/pending</pending_url>
|
1240 |
+
<decline_url>hipay/caixa/decline</decline_url>
|
1241 |
+
<exception_url>hipay/caixa/exception</exception_url>
|
1242 |
+
<cancel_url>hipay/caixa/cancel</cancel_url>
|
1243 |
+
<use_3d_secure>1</use_3d_secure>
|
1244 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1245 |
+
<allowspecific>1</allowspecific>
|
1246 |
+
<specificcountry>BR</specificcountry>
|
1247 |
+
<currency>BRL</currency>
|
1248 |
+
</hipay_caixa>
|
1249 |
+
<!--<hipay_discover>
|
1250 |
+
<active>0</active>
|
1251 |
+
<title>Discover</title>
|
1252 |
+
<payment_action>authorize_capture</payment_action>
|
1253 |
+
<cctypes>discover</cctypes>
|
1254 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1255 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1256 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1257 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1258 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1259 |
+
<display_selector>1</display_selector>
|
1260 |
+
<template>basic</template>
|
1261 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1262 |
+
<invoice_create>1</invoice_create>
|
1263 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1264 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1265 |
+
<display_iframe>0</display_iframe>
|
1266 |
+
<iframe_width>485px</iframe_width>
|
1267 |
+
<iframe_height>450px</iframe_height>
|
1268 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1269 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1270 |
+
<is_test_mode>0</is_test_mode>
|
1271 |
+
<debug>0</debug>
|
1272 |
+
<model>hipay/method_discover</model>
|
1273 |
+
<accept_url>hipay/discover/accept</accept_url>
|
1274 |
+
<pending_url>hipay/discover/pending</pending_url>
|
1275 |
+
<decline_url>hipay/discover/decline</decline_url>
|
1276 |
+
<exception_url>hipay/discover/exception</exception_url>
|
1277 |
+
<cancel_url>hipay/discover/cancel</cancel_url>
|
1278 |
+
<use_3d_secure>1</use_3d_secure>
|
1279 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1280 |
+
</hipay_discover>-->
|
1281 |
+
<hipay_oxxo>
|
1282 |
+
<active>0</active>
|
1283 |
+
<title>HiPay Enterprise Oxxo</title>
|
1284 |
+
<payment_action>authorize_capture</payment_action>
|
1285 |
+
<cctypes>oxxo</cctypes>
|
1286 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1287 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1288 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1289 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1290 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1291 |
+
<display_selector>1</display_selector>
|
1292 |
+
<template>basic</template>
|
1293 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1294 |
+
<invoice_create>1</invoice_create>
|
1295 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1296 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1297 |
+
<display_iframe>0</display_iframe>
|
1298 |
+
<iframe_width>485px</iframe_width>
|
1299 |
+
<iframe_height>450px</iframe_height>
|
1300 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1301 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1302 |
+
<is_test_mode>0</is_test_mode>
|
1303 |
+
<debug>0</debug>
|
1304 |
+
<model>hipay/method_oxxo</model>
|
1305 |
+
<accept_url>hipay/oxxo/accept</accept_url>
|
1306 |
+
<pending_url>hipay/oxxo/pending</pending_url>
|
1307 |
+
<decline_url>hipay/oxxo/decline</decline_url>
|
1308 |
+
<exception_url>hipay/oxxo/exception</exception_url>
|
1309 |
+
<cancel_url>hipay/oxxo/cancel</cancel_url>
|
1310 |
+
<use_3d_secure>1</use_3d_secure>
|
1311 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1312 |
+
<allowspecific>1</allowspecific>
|
1313 |
+
<specificcountry>MX</specificcountry>
|
1314 |
+
<currency>MXN</currency>
|
1315 |
+
</hipay_oxxo>
|
1316 |
+
<hipay_bbva>
|
1317 |
+
<active>0</active>
|
1318 |
+
<title>HiPay Enterprise BBVA Bancomer</title>
|
1319 |
+
<payment_action>authorize_capture</payment_action>
|
1320 |
+
<cctypes>bbva-bancomer</cctypes>
|
1321 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1322 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1323 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1324 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1325 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1326 |
+
<display_selector>1</display_selector>
|
1327 |
+
<template>basic</template>
|
1328 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1329 |
+
<invoice_create>1</invoice_create>
|
1330 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1331 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1332 |
+
<display_iframe>0</display_iframe>
|
1333 |
+
<iframe_width>485px</iframe_width>
|
1334 |
+
<iframe_height>450px</iframe_height>
|
1335 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1336 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1337 |
+
<is_test_mode>0</is_test_mode>
|
1338 |
+
<debug>0</debug>
|
1339 |
+
<model>hipay/method_bbva</model>
|
1340 |
+
<accept_url>hipay/bbva/accept</accept_url>
|
1341 |
+
<pending_url>hipay/bbva/pending</pending_url>
|
1342 |
+
<decline_url>hipay/bbva/decline</decline_url>
|
1343 |
+
<exception_url>hipay/bbva/exception</exception_url>
|
1344 |
+
<cancel_url>hipay/bbva/cancel</cancel_url>
|
1345 |
+
<use_3d_secure>1</use_3d_secure>
|
1346 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1347 |
+
<allowspecific>1</allowspecific>
|
1348 |
+
<specificcountry>MX</specificcountry>
|
1349 |
+
<currency>MXN</currency>
|
1350 |
+
</hipay_bbva>
|
1351 |
+
<hipay_banamex>
|
1352 |
+
<active>0</active>
|
1353 |
+
<title>HiPay Enterprise Banamex</title>
|
1354 |
+
<payment_action>authorize_capture</payment_action>
|
1355 |
+
<cctypes>banamex</cctypes>
|
1356 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1357 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1358 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1359 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1360 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1361 |
+
<display_selector>1</display_selector>
|
1362 |
+
<template>basic</template>
|
1363 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1364 |
+
<invoice_create>1</invoice_create>
|
1365 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1366 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1367 |
+
<display_iframe>0</display_iframe>
|
1368 |
+
<iframe_width>485px</iframe_width>
|
1369 |
+
<iframe_height>450px</iframe_height>
|
1370 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1371 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1372 |
+
<is_test_mode>0</is_test_mode>
|
1373 |
+
<debug>0</debug>
|
1374 |
+
<model>hipay/method_banamex</model>
|
1375 |
+
<accept_url>hipay/banamex/accept</accept_url>
|
1376 |
+
<pending_url>hipay/banamex/pending</pending_url>
|
1377 |
+
<decline_url>hipay/banamex/decline</decline_url>
|
1378 |
+
<exception_url>hipay/banamex/exception</exception_url>
|
1379 |
+
<cancel_url>hipay/banamex/cancel</cancel_url>
|
1380 |
+
<use_3d_secure>1</use_3d_secure>
|
1381 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1382 |
+
<allowspecific>1</allowspecific>
|
1383 |
+
<specificcountry>MX</specificcountry>
|
1384 |
+
<currency>MXN</currency>
|
1385 |
+
</hipay_banamex>
|
1386 |
+
<hipay_santandercash>
|
1387 |
+
<active>0</active>
|
1388 |
+
<title>HiPay Enterprise Santader cash</title>
|
1389 |
+
<payment_action>authorize_capture</payment_action>
|
1390 |
+
<cctypes>santader-cash</cctypes>
|
1391 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1392 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1393 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1394 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1395 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1396 |
+
<display_selector>1</display_selector>
|
1397 |
+
<template>basic</template>
|
1398 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
1399 |
+
<invoice_create>1</invoice_create>
|
1400 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1401 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1402 |
+
<display_iframe>0</display_iframe>
|
1403 |
+
<iframe_width>485px</iframe_width>
|
1404 |
+
<iframe_height>450px</iframe_height>
|
1405 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
1406 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
1407 |
+
<is_test_mode>0</is_test_mode>
|
1408 |
+
<debug>0</debug>
|
1409 |
+
<model>hipay/method_santandercash</model>
|
1410 |
+
<accept_url>hipay/santadercash/accept</accept_url>
|
1411 |
+
<pending_url>hipay/santadercash/pending</pending_url>
|
1412 |
+
<decline_url>hipay/santadercash/decline</decline_url>
|
1413 |
+
<exception_url>hipay/santadercash/exception</exception_url>
|
1414 |
+
<cancel_url>hipay/santadercash/cancel</cancel_url>
|
1415 |
+
<use_3d_secure>1</use_3d_secure>
|
1416 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1417 |
+
<allowspecific>1</allowspecific>
|
1418 |
+
<specificcountry>MX</specificcountry>
|
1419 |
+
<currency>MXN</currency>
|
1420 |
+
</hipay_santandercash>
|
1421 |
+
<hipay_facilipay3x>
|
1422 |
+
<active>0</active>
|
1423 |
+
<title>HiPay Enterprise Oney Facily pay 3X</title>
|
1424 |
+
<payment_action>authorize_capture</payment_action>
|
1425 |
+
<cctypes>3xcb</cctypes>
|
1426 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1427 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1428 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1429 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1430 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1431 |
+
<invoice_create>1</invoice_create>
|
1432 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1433 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1434 |
+
<is_test_mode>0</is_test_mode>
|
1435 |
+
<debug>0</debug>
|
1436 |
+
<model>hipay/method_facilipay3x</model>
|
1437 |
+
<accept_url>hipay/facilipay3x/accept</accept_url>
|
1438 |
+
<pending_url>hipay/facilipay3x/pending</pending_url>
|
1439 |
+
<decline_url>hipay/facilipay3x/decline</decline_url>
|
1440 |
+
<exception_url>hipay/facilipay3x/exception</exception_url>
|
1441 |
+
<cancel_url>hipay/facilipay3x/cancel</cancel_url>
|
1442 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1443 |
+
<allowspecific>1</allowspecific>
|
1444 |
+
<specificcountry>FR</specificcountry>
|
1445 |
+
<currency>EUR</currency>
|
1446 |
+
<min_order_total>100</min_order_total>
|
1447 |
+
</hipay_facilipay3x>
|
1448 |
+
<hipay_facilipay4x>
|
1449 |
+
<active>0</active>
|
1450 |
+
<title>HiPay Enterprise Oney Facily Pay 4X</title>
|
1451 |
+
<payment_action>authorize_capture</payment_action>
|
1452 |
+
<cctypes>4xcb</cctypes>
|
1453 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
1454 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
1455 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
1456 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
1457 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
1458 |
+
<invoice_create>1</invoice_create>
|
1459 |
+
<re_add_to_cart>0</re_add_to_cart>
|
1460 |
+
<cancel_pending_order>1</cancel_pending_order>
|
1461 |
+
<is_test_mode>0</is_test_mode>
|
1462 |
+
<debug>0</debug>
|
1463 |
+
<model>hipay/method_facilipay4x</model>
|
1464 |
+
<accept_url>hipay/facilipay4x/accept</accept_url>
|
1465 |
+
<pending_url>hipay/facilipay4x/pending</pending_url>
|
1466 |
+
<decline_url>hipay/facilipay4x/decline</decline_url>
|
1467 |
+
<exception_url>hipay/facilipay4x/exception</exception_url>
|
1468 |
+
<cancel_url>hipay/facilipay4x/cancel</cancel_url>
|
1469 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
1470 |
+
<allowspecific>1</allowspecific>
|
1471 |
+
<specificcountry>FR</specificcountry>
|
1472 |
+
<currency>EUR</currency>
|
1473 |
+
<min_order_total>100</min_order_total>
|
1474 |
+
</hipay_facilipay4x>
|
1475 |
</payment>
|
1476 |
</default>
|
1477 |
<crontab>
|
app/code/community/Allopass/Hipay/etc/system.xml
CHANGED
@@ -156,11 +156,21 @@
|
|
156 |
<label>Device fingerprint</label>
|
157 |
<frontend_type>select</frontend_type>
|
158 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
159 |
-
<sort_order>
|
160 |
<show_in_default>1</show_in_default>
|
161 |
<show_in_website>1</show_in_website>
|
162 |
<show_in_store>1</show_in_store>
|
163 |
</fingerprint>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
</fields>
|
165 |
</hipay_api>
|
166 |
<hipay_api_moto>
|
@@ -256,7 +266,7 @@
|
|
256 |
</fields>
|
257 |
</hipay_api_moto>
|
258 |
<hipay_basket>
|
259 |
-
<label>
|
260 |
<frontend_type>text</frontend_type>
|
261 |
<comment></comment>
|
262 |
<sort_order>12</sort_order>
|
@@ -265,9 +275,9 @@
|
|
265 |
<show_in_store>1</show_in_store>
|
266 |
<fields>
|
267 |
<activate_basket translate="label comment">
|
268 |
-
<label>
|
269 |
<frontend_type>select</frontend_type>
|
270 |
-
<comment>
|
271 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
272 |
<sort_order>110</sort_order>
|
273 |
<show_in_default>1</show_in_default>
|
@@ -294,6 +304,80 @@
|
|
294 |
<show_in_website>1</show_in_website>
|
295 |
<show_in_store>1</show_in_store>
|
296 |
</load_product_ean>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
</fields>
|
298 |
</hipay_basket>
|
299 |
<fraud_payment translate="label">
|
@@ -445,7 +529,7 @@
|
|
445 |
<hipay_cc translate="label" module="hipay">
|
446 |
<label>HiPay Enterprise Credit Card</label>
|
447 |
<frontend_type>text</frontend_type>
|
448 |
-
<sort_order>
|
449 |
<show_in_default>1</show_in_default>
|
450 |
<show_in_website>1</show_in_website>
|
451 |
<show_in_store>1</show_in_store>
|
@@ -755,7 +839,7 @@
|
|
755 |
<hipay_ccxtimes translate="label" module="hipay">
|
756 |
<label>HiPay Enterprise Credit Card Split Payment</label>
|
757 |
<frontend_type>text</frontend_type>
|
758 |
-
<sort_order>
|
759 |
<show_in_default>1</show_in_default>
|
760 |
<show_in_website>1</show_in_website>
|
761 |
<show_in_store>1</show_in_store>
|
@@ -1046,7 +1130,7 @@
|
|
1046 |
<hipay_hosted translate="label" module="hipay">
|
1047 |
<label>HiPay Enterprise Hosted Page</label>
|
1048 |
<frontend_type>text</frontend_type>
|
1049 |
-
<sort_order>
|
1050 |
<show_in_default>1</show_in_default>
|
1051 |
<show_in_website>1</show_in_website>
|
1052 |
<show_in_store>1</show_in_store>
|
@@ -1405,7 +1489,7 @@
|
|
1405 |
<hipay_hostedxtimes translate="label" module="hipay">
|
1406 |
<label>HiPay Enterprise Hosted Page Split Payment</label>
|
1407 |
<frontend_type>text</frontend_type>
|
1408 |
-
<sort_order>
|
1409 |
<show_in_default>1</show_in_default>
|
1410 |
<show_in_website>1</show_in_website>
|
1411 |
<show_in_store>1</show_in_store>
|
@@ -1745,7 +1829,7 @@
|
|
1745 |
<hipay_ideal translate="label" module="hipay">
|
1746 |
<label>HiPay Enterprise iDeal</label>
|
1747 |
<frontend_type>text</frontend_type>
|
1748 |
-
<sort_order>
|
1749 |
<show_in_default>1</show_in_default>
|
1750 |
<show_in_website>1</show_in_website>
|
1751 |
<show_in_store>1</show_in_store>
|
@@ -1957,7 +2041,7 @@
|
|
1957 |
<hipay_ing translate="label" module="hipay">
|
1958 |
<label>HiPay Enterprise ING Home'Pay</label>
|
1959 |
<frontend_type>text</frontend_type>
|
1960 |
-
<sort_order>
|
1961 |
<show_in_default>1</show_in_default>
|
1962 |
<show_in_website>1</show_in_website>
|
1963 |
<show_in_store>1</show_in_store>
|
@@ -2169,7 +2253,7 @@
|
|
2169 |
<hipay_dexia translate="label" module="hipay">
|
2170 |
<label>HiPay Enterprise Belfius / Dexia Direct Net</label>
|
2171 |
<frontend_type>text</frontend_type>
|
2172 |
-
<sort_order>
|
2173 |
<show_in_default>1</show_in_default>
|
2174 |
<show_in_website>1</show_in_website>
|
2175 |
<show_in_store>1</show_in_store>
|
@@ -2745,7 +2829,7 @@
|
|
2745 |
<hipay_giropay translate="label" module="hipay">
|
2746 |
<label>HiPay Enterprise Giropay</label>
|
2747 |
<frontend_type>text</frontend_type>
|
2748 |
-
<sort_order>
|
2749 |
<show_in_default>1</show_in_default>
|
2750 |
<show_in_website>1</show_in_website>
|
2751 |
<show_in_store>1</show_in_store>
|
@@ -2957,7 +3041,7 @@
|
|
2957 |
<hipay_przelewy24api translate="label" module="hipay">
|
2958 |
<label>HiPay Enterprise Przelewy24</label>
|
2959 |
<frontend_type>text</frontend_type>
|
2960 |
-
<sort_order>
|
2961 |
<show_in_default>1</show_in_default>
|
2962 |
<show_in_website>1</show_in_website>
|
2963 |
<show_in_store>1</show_in_store>
|
@@ -3169,7 +3253,7 @@
|
|
3169 |
<hipay_qiwi translate="label" module="hipay">
|
3170 |
<label>HiPay Enterprise Visa Qiwi Wallet</label>
|
3171 |
<frontend_type>text</frontend_type>
|
3172 |
-
<sort_order>
|
3173 |
<show_in_default>1</show_in_default>
|
3174 |
<show_in_website>1</show_in_website>
|
3175 |
<show_in_store>1</show_in_store>
|
@@ -3381,7 +3465,7 @@
|
|
3381 |
<hipay_webmoneyapi translate="label" module="hipay">
|
3382 |
<label>HiPay Enterprise WebMoney Transfer</label>
|
3383 |
<frontend_type>text</frontend_type>
|
3384 |
-
<sort_order>
|
3385 |
<show_in_default>1</show_in_default>
|
3386 |
<show_in_website>1</show_in_website>
|
3387 |
<show_in_store>1</show_in_store>
|
@@ -3593,7 +3677,7 @@
|
|
3593 |
<hipay_yandexapi translate="label" module="hipay">
|
3594 |
<label>HiPay Enterprise Yandex.Money</label>
|
3595 |
<frontend_type>text</frontend_type>
|
3596 |
-
<sort_order>
|
3597 |
<show_in_default>1</show_in_default>
|
3598 |
<show_in_website>1</show_in_website>
|
3599 |
<show_in_store>1</show_in_store>
|
@@ -3805,7 +3889,7 @@
|
|
3805 |
<hipay_sofortapi translate="label" module="hipay">
|
3806 |
<label>HiPay Enterprise Sofort Überweisung</label>
|
3807 |
<frontend_type>text</frontend_type>
|
3808 |
-
<sort_order>
|
3809 |
<show_in_default>1</show_in_default>
|
3810 |
<show_in_website>1</show_in_website>
|
3811 |
<show_in_store>1</show_in_store>
|
@@ -4001,7 +4085,7 @@
|
|
4001 |
<hipay_sisalapi translate="label" module="hipay">
|
4002 |
<label>HiPay Enterprise Sisal</label>
|
4003 |
<frontend_type>text</frontend_type>
|
4004 |
-
<sort_order>
|
4005 |
<show_in_default>1</show_in_default>
|
4006 |
<show_in_website>1</show_in_website>
|
4007 |
<show_in_store>1</show_in_store>
|
@@ -4195,7 +4279,7 @@
|
|
4195 |
<hipay_paypalapi translate="label" module="hipay">
|
4196 |
<label>HiPay Enterprise PayPal</label>
|
4197 |
<frontend_type>text</frontend_type>
|
4198 |
-
<sort_order>
|
4199 |
<show_in_default>1</show_in_default>
|
4200 |
<show_in_website>1</show_in_website>
|
4201 |
<show_in_store>1</show_in_store>
|
@@ -4384,33 +4468,33 @@
|
|
4384 |
<show_in_website>1</show_in_website>
|
4385 |
<show_in_store>1</show_in_store>
|
4386 |
</is_test_mode>
|
4387 |
-
|
4388 |
-
|
4389 |
<hipay_sdd translate="label" module="hipay">
|
4390 |
<label>HiPay Enterprise SEPA Direct Debit</label>
|
4391 |
<frontend_type>text</frontend_type>
|
4392 |
-
<sort_order>
|
4393 |
<show_in_default>1</show_in_default>
|
4394 |
<show_in_website>1</show_in_website>
|
4395 |
<show_in_store>1</show_in_store>
|
4396 |
<fields>
|
4397 |
-
|
4398 |
-
|
4399 |
-
|
4400 |
-
|
4401 |
-
|
4402 |
-
|
4403 |
-
|
4404 |
-
|
4405 |
-
|
4406 |
-
|
4407 |
-
|
4408 |
-
|
4409 |
-
|
4410 |
-
|
4411 |
-
|
4412 |
-
|
4413 |
-
|
4414 |
<order_status_payment_accepted translate="label">
|
4415 |
<label>Order status when payment accepted</label>
|
4416 |
<frontend_type>select</frontend_type>
|
@@ -4438,7 +4522,7 @@
|
|
4438 |
<show_in_website>1</show_in_website>
|
4439 |
<show_in_store>0</show_in_store>
|
4440 |
</order_status_payment_canceled>
|
4441 |
-
|
4442 |
<label>Hipay status to validate order</label>
|
4443 |
<frontend_type>select</frontend_type>
|
4444 |
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
@@ -4449,56 +4533,26 @@
|
|
4449 |
</hipay_status_validate_order>
|
4450 |
<success_redirect_page translate="label">
|
4451 |
<label>Redirect page success</label>
|
4452 |
-
<comment>Page to redirect when transaction is successful, leave empty for
|
4453 |
-
checkout/onepage/success
|
4454 |
-
</comment>
|
4455 |
<frontend_type>text</frontend_type>
|
4456 |
-
<sort_order>
|
4457 |
<show_in_default>1</show_in_default>
|
4458 |
<show_in_website>1</show_in_website>
|
4459 |
<show_in_store>0</show_in_store>
|
4460 |
</success_redirect_page>
|
4461 |
-
|
4462 |
-
<label>Redirect page failure</label>
|
4463 |
-
<comment>Page to redirect when transaction fails, leave empty for checkout/onepage/failure
|
4464 |
-
</comment>
|
4465 |
-
<frontend_type>text</frontend_type>
|
4466 |
-
<sort_order>28</sort_order>
|
4467 |
-
<show_in_default>1</show_in_default>
|
4468 |
-
<show_in_website>1</show_in_website>
|
4469 |
-
<show_in_store>0</show_in_store>
|
4470 |
-
</failure_redirect_page>
|
4471 |
-
<pending_redirect_page translate="label">
|
4472 |
<label>Redirect page pending status</label>
|
4473 |
<comment>Page to redirect when transaction is in pending status</comment>
|
4474 |
<frontend_type>select</frontend_type>
|
4475 |
<source_model>hipay/source_pendingredirect</source_model>
|
4476 |
-
<sort_order>
|
4477 |
<show_in_default>1</show_in_default>
|
4478 |
<show_in_website>1</show_in_website>
|
4479 |
<show_in_store>0</show_in_store>
|
4480 |
</pending_redirect_page>
|
4481 |
-
|
4482 |
-
|
4483 |
-
|
4484 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4485 |
-
<sort_order>60</sort_order>
|
4486 |
-
<show_in_default>1</show_in_default>
|
4487 |
-
<show_in_website>1</show_in_website>
|
4488 |
-
<show_in_store>0</show_in_store>
|
4489 |
-
</electronic_signature>
|
4490 |
-
<send_fraud_payment_email translate="label">
|
4491 |
-
<label>Send fraud payment email</label>
|
4492 |
-
<frontend_type>select</frontend_type>
|
4493 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4494 |
-
<sort_order>63</sort_order>
|
4495 |
-
<show_in_default>1</show_in_default>
|
4496 |
-
<show_in_website>1</show_in_website>
|
4497 |
-
<show_in_store>1</show_in_store>
|
4498 |
-
</send_fraud_payment_email>
|
4499 |
-
<re_add_to_cart translate="label comment">
|
4500 |
-
<label>Add product to cart</label>
|
4501 |
-
<comment>Fill cart when payment canceled or refused</comment>
|
4502 |
<frontend_type>select</frontend_type>
|
4503 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4504 |
<sort_order>95</sort_order>
|
@@ -4507,34 +4561,25 @@
|
|
4507 |
<show_in_store>0</show_in_store>
|
4508 |
</re_add_to_cart>
|
4509 |
<cancel_pending_order translate="label comment">
|
4510 |
-
|
4511 |
-
|
4512 |
<frontend_type>select</frontend_type>
|
4513 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4514 |
<sort_order>97</sort_order>
|
4515 |
<show_in_default>1</show_in_default>
|
4516 |
<show_in_website>1</show_in_website>
|
4517 |
<show_in_store>0</show_in_store>
|
4518 |
-
|
4519 |
-
|
4520 |
-
|
4521 |
-
|
4522 |
-
|
4523 |
-
|
4524 |
-
|
4525 |
-
|
4526 |
-
|
4527 |
-
|
4528 |
-
|
4529 |
-
<label>Send fraud payment email</label>
|
4530 |
-
<frontend_type>select</frontend_type>
|
4531 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4532 |
-
<sort_order>99</sort_order>
|
4533 |
-
<show_in_default>1</show_in_default>
|
4534 |
-
<show_in_website>1</show_in_website>
|
4535 |
-
<show_in_store>1</show_in_store>
|
4536 |
-
</send_fraud_payment_email>
|
4537 |
-
<allowspecific translate="label">
|
4538 |
<label>Payment from applicable countries</label>
|
4539 |
<frontend_type>allowspecific</frontend_type>
|
4540 |
<sort_order>100</sort_order>
|
@@ -4576,9 +4621,18 @@
|
|
4576 |
<show_in_website>1</show_in_website>
|
4577 |
<show_in_store>1</show_in_store>
|
4578 |
</sort_order>
|
4579 |
-
<
|
4580 |
-
<label>Enable
|
4581 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4582 |
<frontend_type>select</frontend_type>
|
4583 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4584 |
<sort_order>150</sort_order>
|
@@ -4586,9 +4640,9 @@
|
|
4586 |
<show_in_website>1</show_in_website>
|
4587 |
<show_in_store>0</show_in_store>
|
4588 |
</debug>
|
4589 |
-
|
4590 |
-
|
4591 |
-
|
4592 |
<frontend_type>select</frontend_type>
|
4593 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4594 |
<sort_order>200</sort_order>
|
@@ -4596,12 +4650,12 @@
|
|
4596 |
<show_in_website>1</show_in_website>
|
4597 |
<show_in_store>1</show_in_store>
|
4598 |
</is_test_mode>
|
4599 |
-
|
4600 |
-
|
4601 |
<hipay_postfinancecardapi translate="label" module="hipay">
|
4602 |
-
|
4603 |
<frontend_type>text</frontend_type>
|
4604 |
-
<sort_order>
|
4605 |
<show_in_default>1</show_in_default>
|
4606 |
<show_in_website>1</show_in_website>
|
4607 |
<show_in_store>1</show_in_store>
|
@@ -4622,7 +4676,7 @@
|
|
4622 |
<show_in_default>1</show_in_default>
|
4623 |
<show_in_website>1</show_in_website>
|
4624 |
<show_in_store>1</show_in_store>
|
4625 |
-
|
4626 |
<order_status_payment_accepted translate="label">
|
4627 |
<label>Order status when payment accepted</label>
|
4628 |
<frontend_type>select</frontend_type>
|
@@ -4650,7 +4704,7 @@
|
|
4650 |
<show_in_website>1</show_in_website>
|
4651 |
<show_in_store>0</show_in_store>
|
4652 |
</order_status_payment_canceled>
|
4653 |
-
|
4654 |
<label>Hipay status to validate order</label>
|
4655 |
<frontend_type>select</frontend_type>
|
4656 |
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
@@ -4690,17 +4744,26 @@
|
|
4690 |
<show_in_website>1</show_in_website>
|
4691 |
<show_in_store>0</show_in_store>
|
4692 |
</pending_redirect_page>
|
4693 |
-
<
|
4694 |
-
<label>
|
4695 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4696 |
<frontend_type>select</frontend_type>
|
4697 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4698 |
<sort_order>95</sort_order>
|
4699 |
<show_in_default>1</show_in_default>
|
4700 |
<show_in_website>1</show_in_website>
|
4701 |
<show_in_store>0</show_in_store>
|
4702 |
-
|
4703 |
-
|
4704 |
<label>Cancel pending order</label>
|
4705 |
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
4706 |
<frontend_type>select</frontend_type>
|
@@ -4709,16 +4772,7 @@
|
|
4709 |
<show_in_default>1</show_in_default>
|
4710 |
<show_in_website>1</show_in_website>
|
4711 |
<show_in_store>0</show_in_store>
|
4712 |
-
|
4713 |
-
<delay_cancel_pending_order translate="label">
|
4714 |
-
<label>Delay before cancel order</label>
|
4715 |
-
<comment>In Hours</comment>
|
4716 |
-
<frontend_type>text</frontend_type>
|
4717 |
-
<sort_order>98</sort_order>
|
4718 |
-
<show_in_default>1</show_in_default>
|
4719 |
-
<show_in_website>1</show_in_website>
|
4720 |
-
<show_in_store>1</show_in_store>
|
4721 |
-
</delay_cancel_pending_order>
|
4722 |
<delay_cancel_pending_order translate="label">
|
4723 |
<label>Delay before cancel order</label>
|
4724 |
<comment>In Hours</comment>
|
@@ -4737,7 +4791,7 @@
|
|
4737 |
<show_in_website>1</show_in_website>
|
4738 |
<show_in_store>1</show_in_store>
|
4739 |
</send_fraud_payment_email>
|
4740 |
-
|
4741 |
<label>Payment from applicable countries</label>
|
4742 |
<frontend_type>allowspecific</frontend_type>
|
4743 |
<sort_order>100</sort_order>
|
@@ -4779,9 +4833,9 @@
|
|
4779 |
<show_in_website>1</show_in_website>
|
4780 |
<show_in_store>1</show_in_store>
|
4781 |
</sort_order>
|
4782 |
-
<debug
|
4783 |
-
|
4784 |
-
|
4785 |
<frontend_type>select</frontend_type>
|
4786 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4787 |
<sort_order>150</sort_order>
|
@@ -4789,9 +4843,9 @@
|
|
4789 |
<show_in_website>1</show_in_website>
|
4790 |
<show_in_store>0</show_in_store>
|
4791 |
</debug>
|
4792 |
-
|
4793 |
-
|
4794 |
-
|
4795 |
<frontend_type>select</frontend_type>
|
4796 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4797 |
<sort_order>200</sort_order>
|
@@ -4799,12 +4853,12 @@
|
|
4799 |
<show_in_website>1</show_in_website>
|
4800 |
<show_in_store>1</show_in_store>
|
4801 |
</is_test_mode>
|
4802 |
-
|
4803 |
</hipay_postfinancecardapi>
|
4804 |
-
<
|
4805 |
-
<label>HiPay Enterprise
|
4806 |
<frontend_type>text</frontend_type>
|
4807 |
-
<sort_order>
|
4808 |
<show_in_default>1</show_in_default>
|
4809 |
<show_in_website>1</show_in_website>
|
4810 |
<show_in_store>1</show_in_store>
|
@@ -4864,91 +4918,231 @@
|
|
4864 |
</hipay_status_validate_order>
|
4865 |
<success_redirect_page translate="label">
|
4866 |
<label>Redirect page success</label>
|
4867 |
-
<comment>Page to redirect when transaction is successful, leave empty for
|
4868 |
-
checkout/onepage/success
|
4869 |
-
</comment>
|
4870 |
<frontend_type>text</frontend_type>
|
4871 |
-
<sort_order>
|
4872 |
<show_in_default>1</show_in_default>
|
4873 |
<show_in_website>1</show_in_website>
|
4874 |
<show_in_store>0</show_in_store>
|
4875 |
</success_redirect_page>
|
4876 |
-
<failure_redirect_page translate="label">
|
4877 |
-
<label>Redirect page failure</label>
|
4878 |
-
<comment>Page to redirect when transaction fails, leave empty for checkout/onepage/failure
|
4879 |
-
</comment>
|
4880 |
-
<frontend_type>text</frontend_type>
|
4881 |
-
<sort_order>28</sort_order>
|
4882 |
-
<show_in_default>1</show_in_default>
|
4883 |
-
<show_in_website>1</show_in_website>
|
4884 |
-
<show_in_store>0</show_in_store>
|
4885 |
-
</failure_redirect_page>
|
4886 |
<pending_redirect_page translate="label">
|
4887 |
<label>Redirect page pending status</label>
|
4888 |
<comment>Page to redirect when transaction is in pending status</comment>
|
4889 |
<frontend_type>select</frontend_type>
|
4890 |
<source_model>hipay/source_pendingredirect</source_model>
|
4891 |
-
<sort_order>
|
4892 |
<show_in_default>1</show_in_default>
|
4893 |
<show_in_website>1</show_in_website>
|
4894 |
<show_in_store>0</show_in_store>
|
4895 |
</pending_redirect_page>
|
4896 |
-
<
|
4897 |
-
<label>
|
4898 |
-
<comment>Fill cart when payment canceled or refused</comment>
|
4899 |
<frontend_type>select</frontend_type>
|
4900 |
-
<source_model>
|
4901 |
-
<sort_order>
|
4902 |
<show_in_default>1</show_in_default>
|
4903 |
<show_in_website>1</show_in_website>
|
4904 |
<show_in_store>0</show_in_store>
|
4905 |
-
</
|
4906 |
-
<
|
4907 |
-
<label>
|
4908 |
-
<comment>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4909 |
<frontend_type>select</frontend_type>
|
4910 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4911 |
-
<sort_order>
|
4912 |
<show_in_default>1</show_in_default>
|
4913 |
<show_in_website>1</show_in_website>
|
4914 |
<show_in_store>0</show_in_store>
|
4915 |
-
</
|
4916 |
-
<
|
4917 |
-
<label>
|
4918 |
-
<comment>In Hours</comment>
|
4919 |
<frontend_type>text</frontend_type>
|
4920 |
-
<sort_order>
|
4921 |
<show_in_default>1</show_in_default>
|
4922 |
<show_in_website>1</show_in_website>
|
4923 |
<show_in_store>1</show_in_store>
|
4924 |
-
</
|
4925 |
-
<
|
4926 |
-
<label>
|
4927 |
-
<frontend_type>
|
4928 |
-
<
|
4929 |
-
<sort_order>99</sort_order>
|
4930 |
<show_in_default>1</show_in_default>
|
4931 |
<show_in_website>1</show_in_website>
|
4932 |
<show_in_store>1</show_in_store>
|
4933 |
-
</
|
4934 |
-
<
|
4935 |
-
<label>
|
4936 |
-
<frontend_type>
|
4937 |
-
<sort_order>
|
4938 |
-
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
4939 |
<show_in_default>1</show_in_default>
|
4940 |
<show_in_website>1</show_in_website>
|
4941 |
<show_in_store>1</show_in_store>
|
4942 |
-
</
|
4943 |
-
<
|
4944 |
-
<label>
|
4945 |
-
<frontend_type>
|
4946 |
-
<sort_order>
|
4947 |
-
<
|
4948 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4949 |
<show_in_website>1</show_in_website>
|
4950 |
<show_in_store>1</show_in_store>
|
4951 |
</specificcountry>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4952 |
<min_order_total translate="label">
|
4953 |
<label>Minimum Order Total</label>
|
4954 |
<frontend_type>text</frontend_type>
|
@@ -4994,22 +5188,15 @@
|
|
4994 |
<show_in_store>1</show_in_store>
|
4995 |
</is_test_mode>
|
4996 |
</fields>
|
4997 |
-
</
|
4998 |
-
<
|
4999 |
-
<label>HiPay
|
5000 |
<frontend_type>text</frontend_type>
|
5001 |
-
<sort_order>
|
5002 |
<show_in_default>1</show_in_default>
|
5003 |
<show_in_website>1</show_in_website>
|
5004 |
<show_in_store>1</show_in_store>
|
5005 |
<fields>
|
5006 |
-
<notice translate="label" module="hipay">
|
5007 |
-
<frontend_model>hipay/adminhtml_system_config_form_field_Notice</frontend_model>
|
5008 |
-
<sort_order>1</sort_order>
|
5009 |
-
<show_in_default>1</show_in_default>
|
5010 |
-
<show_in_website>1</show_in_website>
|
5011 |
-
<show_in_store>1</show_in_store>
|
5012 |
-
</notice>
|
5013 |
<active translate="label">
|
5014 |
<label>Enabled</label>
|
5015 |
<frontend_type>select</frontend_type>
|
@@ -5065,31 +5252,19 @@
|
|
5065 |
</hipay_status_validate_order>
|
5066 |
<success_redirect_page translate="label">
|
5067 |
<label>Redirect page success</label>
|
5068 |
-
<comment>Page to redirect when transaction is successful, leave empty for
|
5069 |
-
checkout/onepage/success
|
5070 |
-
</comment>
|
5071 |
<frontend_type>text</frontend_type>
|
5072 |
-
<sort_order>
|
5073 |
<show_in_default>1</show_in_default>
|
5074 |
<show_in_website>1</show_in_website>
|
5075 |
<show_in_store>0</show_in_store>
|
5076 |
</success_redirect_page>
|
5077 |
-
<failure_redirect_page translate="label">
|
5078 |
-
<label>Redirect page failure</label>
|
5079 |
-
<comment>Page to redirect when transaction fails, leave empty for checkout/onepage/failure
|
5080 |
-
</comment>
|
5081 |
-
<frontend_type>text</frontend_type>
|
5082 |
-
<sort_order>28</sort_order>
|
5083 |
-
<show_in_default>1</show_in_default>
|
5084 |
-
<show_in_website>1</show_in_website>
|
5085 |
-
<show_in_store>0</show_in_store>
|
5086 |
-
</failure_redirect_page>
|
5087 |
<pending_redirect_page translate="label">
|
5088 |
<label>Redirect page pending status</label>
|
5089 |
<comment>Page to redirect when transaction is in pending status</comment>
|
5090 |
<frontend_type>select</frontend_type>
|
5091 |
<source_model>hipay/source_pendingredirect</source_model>
|
5092 |
-
<sort_order>
|
5093 |
<show_in_default>1</show_in_default>
|
5094 |
<show_in_website>1</show_in_website>
|
5095 |
<show_in_store>0</show_in_store>
|
@@ -5098,7 +5273,7 @@
|
|
5098 |
<label>Payment Action</label>
|
5099 |
<frontend_type>select</frontend_type>
|
5100 |
<source_model>hipay/source_paymentAction</source_model>
|
5101 |
-
<sort_order>
|
5102 |
<show_in_default>1</show_in_default>
|
5103 |
<show_in_website>1</show_in_website>
|
5104 |
<show_in_store>0</show_in_store>
|
@@ -5107,7 +5282,7 @@
|
|
5107 |
<label>Css Url</label>
|
5108 |
<comment>Important, HTTPS protocol is required</comment>
|
5109 |
<frontend_type>text</frontend_type>
|
5110 |
-
<sort_order>
|
5111 |
<show_in_default>1</show_in_default>
|
5112 |
<show_in_website>1</show_in_website>
|
5113 |
<show_in_store>1</show_in_store>
|
@@ -5119,8 +5294,49 @@
|
|
5119 |
<sort_order>35</sort_order>
|
5120 |
<show_in_default>1</show_in_default>
|
5121 |
<show_in_website>1</show_in_website>
|
5122 |
-
<show_in_store>
|
5123 |
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5124 |
<display_selector translate="label">
|
5125 |
<label>Display card selector</label>
|
5126 |
<frontend_type>select</frontend_type>
|
@@ -5158,6 +5374,34 @@
|
|
5158 |
<show_in_website>1</show_in_website>
|
5159 |
<show_in_store>1</show_in_store>
|
5160 |
</send_fraud_payment_email>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5161 |
<allow_use_oneclick translate="label">
|
5162 |
<label>Use Oneclick</label>
|
5163 |
<frontend_type>select</frontend_type>
|
@@ -5197,15 +5441,6 @@
|
|
5197 |
<show_in_website>1</show_in_website>
|
5198 |
<show_in_store>0</show_in_store>
|
5199 |
</cancel_pending_order>
|
5200 |
-
<delay_cancel_pending_order translate="label">
|
5201 |
-
<label>Delay before cancel order</label>
|
5202 |
-
<comment>In Hours</comment>
|
5203 |
-
<frontend_type>text</frontend_type>
|
5204 |
-
<sort_order>98</sort_order>
|
5205 |
-
<show_in_default>1</show_in_default>
|
5206 |
-
<show_in_website>1</show_in_website>
|
5207 |
-
<show_in_store>1</show_in_store>
|
5208 |
-
</delay_cancel_pending_order>
|
5209 |
<send_fraud_payment_email translate="label">
|
5210 |
<label>Send fraud payment email</label>
|
5211 |
<frontend_type>select</frontend_type>
|
@@ -5215,11 +5450,4080 @@
|
|
5215 |
<show_in_website>1</show_in_website>
|
5216 |
<show_in_store>1</show_in_store>
|
5217 |
</send_fraud_payment_email>
|
5218 |
-
<
|
5219 |
-
<label>
|
5220 |
-
<frontend_type>
|
5221 |
-
<sort_order>
|
5222 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5223 |
<show_in_website>1</show_in_website>
|
5224 |
<show_in_store>1</show_in_store>
|
5225 |
</min_order_total>
|
@@ -5260,8 +9564,241 @@
|
|
5260 |
<show_in_store>1</show_in_store>
|
5261 |
</is_test_mode>
|
5262 |
</fields>
|
5263 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5264 |
</groups>
|
5265 |
-
|
5266 |
-
|
5267 |
</config>
|
156 |
<label>Device fingerprint</label>
|
157 |
<frontend_type>select</frontend_type>
|
158 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
159 |
+
<sort_order>110</sort_order>
|
160 |
<show_in_default>1</show_in_default>
|
161 |
<show_in_website>1</show_in_website>
|
162 |
<show_in_store>1</show_in_store>
|
163 |
</fingerprint>
|
164 |
+
<debug>
|
165 |
+
<label>Enable debug log</label>
|
166 |
+
<comment></comment>
|
167 |
+
<frontend_type>select</frontend_type>
|
168 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
169 |
+
<sort_order>150</sort_order>
|
170 |
+
<show_in_default>1</show_in_default>
|
171 |
+
<show_in_website>1</show_in_website>
|
172 |
+
<show_in_store>0</show_in_store>
|
173 |
+
</debug>
|
174 |
</fields>
|
175 |
</hipay_api>
|
176 |
<hipay_api_moto>
|
266 |
</fields>
|
267 |
</hipay_api_moto>
|
268 |
<hipay_basket>
|
269 |
+
<label>Customer's cart items configuration</label>
|
270 |
<frontend_type>text</frontend_type>
|
271 |
<comment></comment>
|
272 |
<sort_order>12</sort_order>
|
275 |
<show_in_store>1</show_in_store>
|
276 |
<fields>
|
277 |
<activate_basket translate="label comment">
|
278 |
+
<label>Send cart items</label>
|
279 |
<frontend_type>select</frontend_type>
|
280 |
+
<comment>If yes, the customer's cart items are sent to HiPay</comment>
|
281 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
282 |
<sort_order>110</sort_order>
|
283 |
<show_in_default>1</show_in_default>
|
304 |
<show_in_website>1</show_in_website>
|
305 |
<show_in_store>1</show_in_store>
|
306 |
</load_product_ean>
|
307 |
+
<separator translate="label,comment">
|
308 |
+
<label>CATEGORY MAPPING</label>
|
309 |
+
<comment></comment>
|
310 |
+
<frontend_type>label</frontend_type>
|
311 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
312 |
+
<sort_order>131</sort_order>
|
313 |
+
<show_in_default>1</show_in_default>
|
314 |
+
<show_in_website>0</show_in_website>
|
315 |
+
<show_in_store>1</show_in_store>
|
316 |
+
</separator>
|
317 |
+
<notice_mapping_mapping_category translate="label" module="hipay">
|
318 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_Notice</frontend_model>
|
319 |
+
<sort_order>140</sort_order>
|
320 |
+
<show_in_default>1</show_in_default>
|
321 |
+
<show_in_website>1</show_in_website>
|
322 |
+
<show_in_store>1</show_in_store>
|
323 |
+
</notice_mapping_mapping_category>
|
324 |
+
<mapping_category translate="comment">
|
325 |
+
<frontend_model>hipay/adminhtml_field_mappingCategory</frontend_model>
|
326 |
+
<backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
|
327 |
+
<sort_order>141</sort_order>
|
328 |
+
<show_in_default>1</show_in_default>
|
329 |
+
<show_in_website>0</show_in_website>
|
330 |
+
<show_in_store>1</show_in_store>
|
331 |
+
</mapping_category>
|
332 |
+
<separator_shipping translate="label,comment">
|
333 |
+
<label>SHIPPING METHOD MAPPING</label>
|
334 |
+
<comment></comment>
|
335 |
+
<frontend_type>label</frontend_type>
|
336 |
+
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
|
337 |
+
<sort_order>142</sort_order>
|
338 |
+
<show_in_default>1</show_in_default>
|
339 |
+
<show_in_website>0</show_in_website>
|
340 |
+
<show_in_store>1</show_in_store>
|
341 |
+
</separator_shipping>
|
342 |
+
<informations_shipping translate="label,comment">
|
343 |
+
<tooltip><![CDATA[This mapping is necessary to indicate a match between your delivery methods and the delivery methods defined at HiPay.
|
344 |
+
<p>
|
345 |
+
For each customer order, depending on the chosen configuration, this information is sent as a supplement to the customer's basket.
|
346 |
+
</p>
|
347 |
+
For each mapping you have to fill out the following information:
|
348 |
+
<p>
|
349 |
+
<ul>
|
350 |
+
<li>"Preparation delay": Estimated day time for order preparation</li>
|
351 |
+
<li>"Delivery delay" : Estimated day time for delivery</li>
|
352 |
+
</ul>
|
353 |
+
</p>
|
354 |
+
From this information, an estimated (estimated) delivery day is calculated and sent with the transaction.
|
355 |
+
<p>
|
356 |
+
<p>
|
357 |
+
<b>This information is required for Oney payment methods (Facily pay 3X, Facily pay 4X)</b></p>]]></tooltip>
|
358 |
+
<label></label>
|
359 |
+
<frontend_type>label</frontend_type>
|
360 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_Information</frontend_model>
|
361 |
+
<sort_order>143</sort_order>
|
362 |
+
<show_in_default>1</show_in_default>
|
363 |
+
<show_in_website>0</show_in_website>
|
364 |
+
<show_in_store>1</show_in_store>
|
365 |
+
</informations_shipping>
|
366 |
+
<notice_mapping_shipping_method translate="label" module="hipay">
|
367 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_Notice</frontend_model>
|
368 |
+
<sort_order>143</sort_order>
|
369 |
+
<show_in_default>1</show_in_default>
|
370 |
+
<show_in_website>1</show_in_website>
|
371 |
+
<show_in_store>1</show_in_store>
|
372 |
+
</notice_mapping_shipping_method>
|
373 |
+
<mapping_shipping_method translate="comment">
|
374 |
+
<frontend_model>hipay/adminhtml_field_mappingShippingMethod</frontend_model>
|
375 |
+
<backend_model>hipay/field_mappingShippingMethod</backend_model>
|
376 |
+
<sort_order>150</sort_order>
|
377 |
+
<show_in_default>1</show_in_default>
|
378 |
+
<show_in_website>0</show_in_website>
|
379 |
+
<show_in_store>1</show_in_store>
|
380 |
+
</mapping_shipping_method>
|
381 |
</fields>
|
382 |
</hipay_basket>
|
383 |
<fraud_payment translate="label">
|
529 |
<hipay_cc translate="label" module="hipay">
|
530 |
<label>HiPay Enterprise Credit Card</label>
|
531 |
<frontend_type>text</frontend_type>
|
532 |
+
<sort_order>10</sort_order>
|
533 |
<show_in_default>1</show_in_default>
|
534 |
<show_in_website>1</show_in_website>
|
535 |
<show_in_store>1</show_in_store>
|
839 |
<hipay_ccxtimes translate="label" module="hipay">
|
840 |
<label>HiPay Enterprise Credit Card Split Payment</label>
|
841 |
<frontend_type>text</frontend_type>
|
842 |
+
<sort_order>20</sort_order>
|
843 |
<show_in_default>1</show_in_default>
|
844 |
<show_in_website>1</show_in_website>
|
845 |
<show_in_store>1</show_in_store>
|
1130 |
<hipay_hosted translate="label" module="hipay">
|
1131 |
<label>HiPay Enterprise Hosted Page</label>
|
1132 |
<frontend_type>text</frontend_type>
|
1133 |
+
<sort_order>21</sort_order>
|
1134 |
<show_in_default>1</show_in_default>
|
1135 |
<show_in_website>1</show_in_website>
|
1136 |
<show_in_store>1</show_in_store>
|
1489 |
<hipay_hostedxtimes translate="label" module="hipay">
|
1490 |
<label>HiPay Enterprise Hosted Page Split Payment</label>
|
1491 |
<frontend_type>text</frontend_type>
|
1492 |
+
<sort_order>30</sort_order>
|
1493 |
<show_in_default>1</show_in_default>
|
1494 |
<show_in_website>1</show_in_website>
|
1495 |
<show_in_store>1</show_in_store>
|
1829 |
<hipay_ideal translate="label" module="hipay">
|
1830 |
<label>HiPay Enterprise iDeal</label>
|
1831 |
<frontend_type>text</frontend_type>
|
1832 |
+
<sort_order>40</sort_order>
|
1833 |
<show_in_default>1</show_in_default>
|
1834 |
<show_in_website>1</show_in_website>
|
1835 |
<show_in_store>1</show_in_store>
|
2041 |
<hipay_ing translate="label" module="hipay">
|
2042 |
<label>HiPay Enterprise ING Home'Pay</label>
|
2043 |
<frontend_type>text</frontend_type>
|
2044 |
+
<sort_order>50</sort_order>
|
2045 |
<show_in_default>1</show_in_default>
|
2046 |
<show_in_website>1</show_in_website>
|
2047 |
<show_in_store>1</show_in_store>
|
2253 |
<hipay_dexia translate="label" module="hipay">
|
2254 |
<label>HiPay Enterprise Belfius / Dexia Direct Net</label>
|
2255 |
<frontend_type>text</frontend_type>
|
2256 |
+
<sort_order>60</sort_order>
|
2257 |
<show_in_default>1</show_in_default>
|
2258 |
<show_in_website>1</show_in_website>
|
2259 |
<show_in_store>1</show_in_store>
|
2829 |
<hipay_giropay translate="label" module="hipay">
|
2830 |
<label>HiPay Enterprise Giropay</label>
|
2831 |
<frontend_type>text</frontend_type>
|
2832 |
+
<sort_order>70</sort_order>
|
2833 |
<show_in_default>1</show_in_default>
|
2834 |
<show_in_website>1</show_in_website>
|
2835 |
<show_in_store>1</show_in_store>
|
3041 |
<hipay_przelewy24api translate="label" module="hipay">
|
3042 |
<label>HiPay Enterprise Przelewy24</label>
|
3043 |
<frontend_type>text</frontend_type>
|
3044 |
+
<sort_order>80</sort_order>
|
3045 |
<show_in_default>1</show_in_default>
|
3046 |
<show_in_website>1</show_in_website>
|
3047 |
<show_in_store>1</show_in_store>
|
3253 |
<hipay_qiwi translate="label" module="hipay">
|
3254 |
<label>HiPay Enterprise Visa Qiwi Wallet</label>
|
3255 |
<frontend_type>text</frontend_type>
|
3256 |
+
<sort_order>90</sort_order>
|
3257 |
<show_in_default>1</show_in_default>
|
3258 |
<show_in_website>1</show_in_website>
|
3259 |
<show_in_store>1</show_in_store>
|
3465 |
<hipay_webmoneyapi translate="label" module="hipay">
|
3466 |
<label>HiPay Enterprise WebMoney Transfer</label>
|
3467 |
<frontend_type>text</frontend_type>
|
3468 |
+
<sort_order>100</sort_order>
|
3469 |
<show_in_default>1</show_in_default>
|
3470 |
<show_in_website>1</show_in_website>
|
3471 |
<show_in_store>1</show_in_store>
|
3677 |
<hipay_yandexapi translate="label" module="hipay">
|
3678 |
<label>HiPay Enterprise Yandex.Money</label>
|
3679 |
<frontend_type>text</frontend_type>
|
3680 |
+
<sort_order>110</sort_order>
|
3681 |
<show_in_default>1</show_in_default>
|
3682 |
<show_in_website>1</show_in_website>
|
3683 |
<show_in_store>1</show_in_store>
|
3889 |
<hipay_sofortapi translate="label" module="hipay">
|
3890 |
<label>HiPay Enterprise Sofort Überweisung</label>
|
3891 |
<frontend_type>text</frontend_type>
|
3892 |
+
<sort_order>120</sort_order>
|
3893 |
<show_in_default>1</show_in_default>
|
3894 |
<show_in_website>1</show_in_website>
|
3895 |
<show_in_store>1</show_in_store>
|
4085 |
<hipay_sisalapi translate="label" module="hipay">
|
4086 |
<label>HiPay Enterprise Sisal</label>
|
4087 |
<frontend_type>text</frontend_type>
|
4088 |
+
<sort_order>130</sort_order>
|
4089 |
<show_in_default>1</show_in_default>
|
4090 |
<show_in_website>1</show_in_website>
|
4091 |
<show_in_store>1</show_in_store>
|
4279 |
<hipay_paypalapi translate="label" module="hipay">
|
4280 |
<label>HiPay Enterprise PayPal</label>
|
4281 |
<frontend_type>text</frontend_type>
|
4282 |
+
<sort_order>140</sort_order>
|
4283 |
<show_in_default>1</show_in_default>
|
4284 |
<show_in_website>1</show_in_website>
|
4285 |
<show_in_store>1</show_in_store>
|
4468 |
<show_in_website>1</show_in_website>
|
4469 |
<show_in_store>1</show_in_store>
|
4470 |
</is_test_mode>
|
4471 |
+
</fields>
|
4472 |
+
</hipay_paypalapi>
|
4473 |
<hipay_sdd translate="label" module="hipay">
|
4474 |
<label>HiPay Enterprise SEPA Direct Debit</label>
|
4475 |
<frontend_type>text</frontend_type>
|
4476 |
+
<sort_order>146</sort_order>
|
4477 |
<show_in_default>1</show_in_default>
|
4478 |
<show_in_website>1</show_in_website>
|
4479 |
<show_in_store>1</show_in_store>
|
4480 |
<fields>
|
4481 |
+
<active translate="label">
|
4482 |
+
<label>Enabled</label>
|
4483 |
+
<frontend_type>select</frontend_type>
|
4484 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4485 |
+
<sort_order>10</sort_order>
|
4486 |
+
<show_in_default>1</show_in_default>
|
4487 |
+
<show_in_website>1</show_in_website>
|
4488 |
+
<show_in_store>1</show_in_store>
|
4489 |
+
</active>
|
4490 |
+
<title translate="label">
|
4491 |
+
<label>Title</label>
|
4492 |
+
<frontend_type>text</frontend_type>
|
4493 |
+
<sort_order>20</sort_order>
|
4494 |
+
<show_in_default>1</show_in_default>
|
4495 |
+
<show_in_website>1</show_in_website>
|
4496 |
+
<show_in_store>1</show_in_store>
|
4497 |
+
</title>
|
4498 |
<order_status_payment_accepted translate="label">
|
4499 |
<label>Order status when payment accepted</label>
|
4500 |
<frontend_type>select</frontend_type>
|
4522 |
<show_in_website>1</show_in_website>
|
4523 |
<show_in_store>0</show_in_store>
|
4524 |
</order_status_payment_canceled>
|
4525 |
+
<hipay_status_validate_order translate="label">
|
4526 |
<label>Hipay status to validate order</label>
|
4527 |
<frontend_type>select</frontend_type>
|
4528 |
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
4533 |
</hipay_status_validate_order>
|
4534 |
<success_redirect_page translate="label">
|
4535 |
<label>Redirect page success</label>
|
4536 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
|
|
|
|
4537 |
<frontend_type>text</frontend_type>
|
4538 |
+
<sort_order>26</sort_order>
|
4539 |
<show_in_default>1</show_in_default>
|
4540 |
<show_in_website>1</show_in_website>
|
4541 |
<show_in_store>0</show_in_store>
|
4542 |
</success_redirect_page>
|
4543 |
+
<pending_redirect_page translate="label">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4544 |
<label>Redirect page pending status</label>
|
4545 |
<comment>Page to redirect when transaction is in pending status</comment>
|
4546 |
<frontend_type>select</frontend_type>
|
4547 |
<source_model>hipay/source_pendingredirect</source_model>
|
4548 |
+
<sort_order>27</sort_order>
|
4549 |
<show_in_default>1</show_in_default>
|
4550 |
<show_in_website>1</show_in_website>
|
4551 |
<show_in_store>0</show_in_store>
|
4552 |
</pending_redirect_page>
|
4553 |
+
<re_add_to_cart translate="label comment">
|
4554 |
+
<label>Add product to cart</label>
|
4555 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4556 |
<frontend_type>select</frontend_type>
|
4557 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4558 |
<sort_order>95</sort_order>
|
4561 |
<show_in_store>0</show_in_store>
|
4562 |
</re_add_to_cart>
|
4563 |
<cancel_pending_order translate="label comment">
|
4564 |
+
<label>Cancel pending order</label>
|
4565 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
4566 |
<frontend_type>select</frontend_type>
|
4567 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4568 |
<sort_order>97</sort_order>
|
4569 |
<show_in_default>1</show_in_default>
|
4570 |
<show_in_website>1</show_in_website>
|
4571 |
<show_in_store>0</show_in_store>
|
4572 |
+
</cancel_pending_order>
|
4573 |
+
<send_fraud_payment_email translate="label">
|
4574 |
+
<label>Send fraud payment email</label>
|
4575 |
+
<frontend_type>select</frontend_type>
|
4576 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4577 |
+
<sort_order>99</sort_order>
|
4578 |
+
<show_in_default>1</show_in_default>
|
4579 |
+
<show_in_website>1</show_in_website>
|
4580 |
+
<show_in_store>1</show_in_store>
|
4581 |
+
</send_fraud_payment_email>
|
4582 |
+
<allowspecific translate="label">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4583 |
<label>Payment from applicable countries</label>
|
4584 |
<frontend_type>allowspecific</frontend_type>
|
4585 |
<sort_order>100</sort_order>
|
4621 |
<show_in_website>1</show_in_website>
|
4622 |
<show_in_store>1</show_in_store>
|
4623 |
</sort_order>
|
4624 |
+
<electronic_signature translate="label">
|
4625 |
+
<label>Enable the electronic signature of the mandate</label>
|
4626 |
+
<frontend_type>select</frontend_type>
|
4627 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4628 |
+
<sort_order>60</sort_order>
|
4629 |
+
<show_in_default>1</show_in_default>
|
4630 |
+
<show_in_website>1</show_in_website>
|
4631 |
+
<show_in_store>0</show_in_store>
|
4632 |
+
</electronic_signature>
|
4633 |
+
<debug translate="label">
|
4634 |
+
<label>Enable debug log</label>
|
4635 |
+
<comment></comment>
|
4636 |
<frontend_type>select</frontend_type>
|
4637 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4638 |
<sort_order>150</sort_order>
|
4640 |
<show_in_website>1</show_in_website>
|
4641 |
<show_in_store>0</show_in_store>
|
4642 |
</debug>
|
4643 |
+
<is_test_mode translate="label comment">
|
4644 |
+
<label>Enable test mode</label>
|
4645 |
+
<comment></comment>
|
4646 |
<frontend_type>select</frontend_type>
|
4647 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4648 |
<sort_order>200</sort_order>
|
4650 |
<show_in_website>1</show_in_website>
|
4651 |
<show_in_store>1</show_in_store>
|
4652 |
</is_test_mode>
|
4653 |
+
</fields>
|
4654 |
+
</hipay_sdd>
|
4655 |
<hipay_postfinancecardapi translate="label" module="hipay">
|
4656 |
+
<label>HiPay Fullservice PostFinance Card</label>
|
4657 |
<frontend_type>text</frontend_type>
|
4658 |
+
<sort_order>147</sort_order>
|
4659 |
<show_in_default>1</show_in_default>
|
4660 |
<show_in_website>1</show_in_website>
|
4661 |
<show_in_store>1</show_in_store>
|
4676 |
<show_in_default>1</show_in_default>
|
4677 |
<show_in_website>1</show_in_website>
|
4678 |
<show_in_store>1</show_in_store>
|
4679 |
+
</title>
|
4680 |
<order_status_payment_accepted translate="label">
|
4681 |
<label>Order status when payment accepted</label>
|
4682 |
<frontend_type>select</frontend_type>
|
4704 |
<show_in_website>1</show_in_website>
|
4705 |
<show_in_store>0</show_in_store>
|
4706 |
</order_status_payment_canceled>
|
4707 |
+
<hipay_status_validate_order translate="label">
|
4708 |
<label>Hipay status to validate order</label>
|
4709 |
<frontend_type>select</frontend_type>
|
4710 |
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
4744 |
<show_in_website>1</show_in_website>
|
4745 |
<show_in_store>0</show_in_store>
|
4746 |
</pending_redirect_page>
|
4747 |
+
<send_fraud_payment_email translate="label">
|
4748 |
+
<label>Send fraud payment email</label>
|
4749 |
+
<frontend_type>select</frontend_type>
|
4750 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4751 |
+
<sort_order>63</sort_order>
|
4752 |
+
<show_in_default>1</show_in_default>
|
4753 |
+
<show_in_website>1</show_in_website>
|
4754 |
+
<show_in_store>1</show_in_store>
|
4755 |
+
</send_fraud_payment_email>
|
4756 |
+
<re_add_to_cart translate="label comment">
|
4757 |
+
<label>Add product to cart</label>
|
4758 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
4759 |
<frontend_type>select</frontend_type>
|
4760 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4761 |
<sort_order>95</sort_order>
|
4762 |
<show_in_default>1</show_in_default>
|
4763 |
<show_in_website>1</show_in_website>
|
4764 |
<show_in_store>0</show_in_store>
|
4765 |
+
</re_add_to_cart>
|
4766 |
+
<cancel_pending_order translate="label comment">
|
4767 |
<label>Cancel pending order</label>
|
4768 |
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
4769 |
<frontend_type>select</frontend_type>
|
4772 |
<show_in_default>1</show_in_default>
|
4773 |
<show_in_website>1</show_in_website>
|
4774 |
<show_in_store>0</show_in_store>
|
4775 |
+
</cancel_pending_order>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4776 |
<delay_cancel_pending_order translate="label">
|
4777 |
<label>Delay before cancel order</label>
|
4778 |
<comment>In Hours</comment>
|
4791 |
<show_in_website>1</show_in_website>
|
4792 |
<show_in_store>1</show_in_store>
|
4793 |
</send_fraud_payment_email>
|
4794 |
+
<allowspecific translate="label">
|
4795 |
<label>Payment from applicable countries</label>
|
4796 |
<frontend_type>allowspecific</frontend_type>
|
4797 |
<sort_order>100</sort_order>
|
4833 |
<show_in_website>1</show_in_website>
|
4834 |
<show_in_store>1</show_in_store>
|
4835 |
</sort_order>
|
4836 |
+
<debug>
|
4837 |
+
<label>Enable debug log</label>
|
4838 |
+
<comment></comment>
|
4839 |
<frontend_type>select</frontend_type>
|
4840 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4841 |
<sort_order>150</sort_order>
|
4843 |
<show_in_website>1</show_in_website>
|
4844 |
<show_in_store>0</show_in_store>
|
4845 |
</debug>
|
4846 |
+
<is_test_mode translate="label comment">
|
4847 |
+
<label>Enable test mode</label>
|
4848 |
+
<comment></comment>
|
4849 |
<frontend_type>select</frontend_type>
|
4850 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4851 |
<sort_order>200</sort_order>
|
4853 |
<show_in_website>1</show_in_website>
|
4854 |
<show_in_store>1</show_in_store>
|
4855 |
</is_test_mode>
|
4856 |
+
</fields>
|
4857 |
</hipay_postfinancecardapi>
|
4858 |
+
<hipay_boleto translate="label" module="hipay">
|
4859 |
+
<label>HiPay Enterprise Boleto</label>
|
4860 |
<frontend_type>text</frontend_type>
|
4861 |
+
<sort_order>240</sort_order>
|
4862 |
<show_in_default>1</show_in_default>
|
4863 |
<show_in_website>1</show_in_website>
|
4864 |
<show_in_store>1</show_in_store>
|
4918 |
</hipay_status_validate_order>
|
4919 |
<success_redirect_page translate="label">
|
4920 |
<label>Redirect page success</label>
|
4921 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
|
|
|
|
4922 |
<frontend_type>text</frontend_type>
|
4923 |
+
<sort_order>26</sort_order>
|
4924 |
<show_in_default>1</show_in_default>
|
4925 |
<show_in_website>1</show_in_website>
|
4926 |
<show_in_store>0</show_in_store>
|
4927 |
</success_redirect_page>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4928 |
<pending_redirect_page translate="label">
|
4929 |
<label>Redirect page pending status</label>
|
4930 |
<comment>Page to redirect when transaction is in pending status</comment>
|
4931 |
<frontend_type>select</frontend_type>
|
4932 |
<source_model>hipay/source_pendingredirect</source_model>
|
4933 |
+
<sort_order>27</sort_order>
|
4934 |
<show_in_default>1</show_in_default>
|
4935 |
<show_in_website>1</show_in_website>
|
4936 |
<show_in_store>0</show_in_store>
|
4937 |
</pending_redirect_page>
|
4938 |
+
<payment_action translate="label">
|
4939 |
+
<label>Payment Action</label>
|
|
|
4940 |
<frontend_type>select</frontend_type>
|
4941 |
+
<source_model>hipay/source_paymentAction</source_model>
|
4942 |
+
<sort_order>28</sort_order>
|
4943 |
<show_in_default>1</show_in_default>
|
4944 |
<show_in_website>1</show_in_website>
|
4945 |
<show_in_store>0</show_in_store>
|
4946 |
+
</payment_action>
|
4947 |
+
<css_url translate="label coment">
|
4948 |
+
<label>Css Url</label>
|
4949 |
+
<comment>Important, HTTPS protocol is required</comment>
|
4950 |
+
<frontend_type>text</frontend_type>
|
4951 |
+
<sort_order>30</sort_order>
|
4952 |
+
<show_in_default>1</show_in_default>
|
4953 |
+
<show_in_website>1</show_in_website>
|
4954 |
+
<show_in_store>1</show_in_store>
|
4955 |
+
</css_url>
|
4956 |
+
<template translate="label">
|
4957 |
+
<label>Page payment template</label>
|
4958 |
+
<frontend_type>select</frontend_type>
|
4959 |
+
<source_model>hipay/source_template</source_model>
|
4960 |
+
<sort_order>35</sort_order>
|
4961 |
+
<show_in_default>1</show_in_default>
|
4962 |
+
<show_in_website>1</show_in_website>
|
4963 |
+
<show_in_store>0</show_in_store>
|
4964 |
+
</template>
|
4965 |
+
<display_iframe translate="label">
|
4966 |
+
<label>Display hosted page in Iframe</label>
|
4967 |
<frontend_type>select</frontend_type>
|
4968 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
4969 |
+
<sort_order>36</sort_order>
|
4970 |
<show_in_default>1</show_in_default>
|
4971 |
<show_in_website>1</show_in_website>
|
4972 |
<show_in_store>0</show_in_store>
|
4973 |
+
</display_iframe>
|
4974 |
+
<iframe_width translate="label">
|
4975 |
+
<label>iFrame Width</label>
|
|
|
4976 |
<frontend_type>text</frontend_type>
|
4977 |
+
<sort_order>37</sort_order>
|
4978 |
<show_in_default>1</show_in_default>
|
4979 |
<show_in_website>1</show_in_website>
|
4980 |
<show_in_store>1</show_in_store>
|
4981 |
+
</iframe_width>
|
4982 |
+
<iframe_height translate="label">
|
4983 |
+
<label>iFrame Height</label>
|
4984 |
+
<frontend_type>text</frontend_type>
|
4985 |
+
<sort_order>38</sort_order>
|
|
|
4986 |
<show_in_default>1</show_in_default>
|
4987 |
<show_in_website>1</show_in_website>
|
4988 |
<show_in_store>1</show_in_store>
|
4989 |
+
</iframe_height>
|
4990 |
+
<iframe_style translate="label">
|
4991 |
+
<label>iFrame Style</label>
|
4992 |
+
<frontend_type>text</frontend_type>show_in_website
|
4993 |
+
<sort_order>39</sort_order>
|
|
|
4994 |
<show_in_default>1</show_in_default>
|
4995 |
<show_in_website>1</show_in_website>
|
4996 |
<show_in_store>1</show_in_store>
|
4997 |
+
</iframe_style>
|
4998 |
+
<iframe_wrapper_style translate="label">
|
4999 |
+
<label>Wrapper iFrame Style</label>
|
5000 |
+
<frontend_type>text</frontend_type>
|
5001 |
+
<sort_order>39</sort_order>
|
5002 |
+
<show_in_default>1</show_in_default>
|
5003 |
+
<show_in_website>1</show_in_website>
|
5004 |
+
<show_in_store>1</show_in_store>
|
5005 |
+
</iframe_wrapper_style>
|
5006 |
+
<display_selector translate="label">
|
5007 |
+
<label>Display card selector</label>
|
5008 |
+
<frontend_type>select</frontend_type>
|
5009 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5010 |
+
<sort_order>40</sort_order>
|
5011 |
+
<show_in_default>1</show_in_default>
|
5012 |
+
<show_in_website>1</show_in_website>
|
5013 |
+
<show_in_store>0</show_in_store>
|
5014 |
+
</display_selector>
|
5015 |
+
<use_3d_secure translate="label">
|
5016 |
+
<label>Use 3D Secure</label>
|
5017 |
+
<frontend_type>select</frontend_type>
|
5018 |
+
<source_model>hipay/source_3ds</source_model>
|
5019 |
+
<sort_order>60</sort_order>
|
5020 |
+
<show_in_default>1</show_in_default>
|
5021 |
+
<show_in_website>1</show_in_website>
|
5022 |
+
<show_in_store>0</show_in_store>
|
5023 |
+
</use_3d_secure>
|
5024 |
+
<config_3ds_rules translate="label comment">
|
5025 |
+
<label>Rules 3D Secure</label>
|
5026 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
5027 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
5028 |
+
<backend_model>hipay/rule_config</backend_model>
|
5029 |
+
<sort_order>61</sort_order>
|
5030 |
+
<show_in_default>1</show_in_default>
|
5031 |
+
<show_in_website>1</show_in_website>
|
5032 |
+
<show_in_store>0</show_in_store>
|
5033 |
+
</config_3ds_rules>
|
5034 |
+
<send_fraud_payment_email translate="label">
|
5035 |
+
<label>Send fraud payment email</label>
|
5036 |
+
<frontend_type>select</frontend_type>
|
5037 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5038 |
+
<sort_order>63</sort_order>
|
5039 |
+
<show_in_default>1</show_in_default>
|
5040 |
+
<show_in_website>1</show_in_website>
|
5041 |
+
<show_in_store>1</show_in_store>
|
5042 |
+
</send_fraud_payment_email>
|
5043 |
+
<!-- @deprecated since version 1.2.6 -->
|
5044 |
+
<!-- <allow_split_payment translate="label">
|
5045 |
+
<label>Use Split Payment</label>
|
5046 |
+
<frontend_type>select</frontend_type>
|
5047 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
5048 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5049 |
+
<sort_order>65</sort_order>
|
5050 |
+
<show_in_default>1</show_in_default>
|
5051 |
+
<show_in_website>1</show_in_website>
|
5052 |
+
<show_in_store>0</show_in_store>
|
5053 |
+
</allow_split_payment>
|
5054 |
+
<split_payment_profile translate="label">
|
5055 |
+
<label>Payment Profile</label>
|
5056 |
+
<frontend_type>multiselect</frontend_type>
|
5057 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
5058 |
+
<sort_order>66</sort_order>
|
5059 |
+
<show_in_default>1</show_in_default>
|
5060 |
+
<show_in_website>1</show_in_website>
|
5061 |
+
<show_in_store>0</show_in_store>
|
5062 |
+
</split_payment_profile>
|
5063 |
+
<min_order_total_split_payment translate="label">
|
5064 |
+
<label>Minimum Order Total for Split Payment</label>
|
5065 |
+
<frontend_type>text</frontend_type>
|
5066 |
+
<sort_order>68</sort_order>
|
5067 |
+
<show_in_default>1</show_in_default>
|
5068 |
+
<show_in_website>1</show_in_website>
|
5069 |
+
<show_in_store>1</show_in_store>
|
5070 |
+
</min_order_total_split_payment> -->
|
5071 |
+
<allow_use_oneclick translate="label">
|
5072 |
+
<label>Use Oneclick</label>
|
5073 |
+
<frontend_type>select</frontend_type>
|
5074 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5075 |
+
<sort_order>70</sort_order>
|
5076 |
+
<show_in_default>1</show_in_default>
|
5077 |
+
<show_in_website>1</show_in_website>
|
5078 |
+
<show_in_store>0</show_in_store>
|
5079 |
+
</allow_use_oneclick>
|
5080 |
+
<filter_oneclick translate="label comment">
|
5081 |
+
<label>Rules Oneclick</label>
|
5082 |
+
<comment>Configure Rules to activate oneclick</comment>
|
5083 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
5084 |
+
<backend_model>hipay/rule_config</backend_model>
|
5085 |
+
<sort_order>80</sort_order>
|
5086 |
+
<show_in_default>1</show_in_default>
|
5087 |
+
<show_in_website>1</show_in_website>
|
5088 |
+
<show_in_store>0</show_in_store>
|
5089 |
+
</filter_oneclick>
|
5090 |
+
<re_add_to_cart translate="label comment">
|
5091 |
+
<label>Add product to cart</label>
|
5092 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
5093 |
+
<frontend_type>select</frontend_type>
|
5094 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5095 |
+
<sort_order>95</sort_order>
|
5096 |
+
<show_in_default>1</show_in_default>
|
5097 |
+
<show_in_website>1</show_in_website>
|
5098 |
+
<show_in_store>0</show_in_store>
|
5099 |
+
</re_add_to_cart>
|
5100 |
+
<cancel_pending_order translate="label comment">
|
5101 |
+
<label>Cancel pending order</label>
|
5102 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
5103 |
+
<frontend_type>select</frontend_type>
|
5104 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5105 |
+
<sort_order>97</sort_order>
|
5106 |
+
<show_in_default>1</show_in_default>
|
5107 |
+
<show_in_website>1</show_in_website>
|
5108 |
+
<show_in_store>0</show_in_store>
|
5109 |
+
</cancel_pending_order>
|
5110 |
+
<send_fraud_payment_email translate="label">
|
5111 |
+
<label>Send fraud payment email</label>
|
5112 |
+
<frontend_type>select</frontend_type>
|
5113 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5114 |
+
<sort_order>99</sort_order>
|
5115 |
+
<show_in_default>1</show_in_default>
|
5116 |
+
<show_in_website>1</show_in_website>
|
5117 |
+
<show_in_store>1</show_in_store>
|
5118 |
+
</send_fraud_payment_email>
|
5119 |
+
<allowspecific translate="label">
|
5120 |
+
<label>Payment from applicable countries</label>
|
5121 |
+
<frontend_type>allowspecific</frontend_type>
|
5122 |
+
<sort_order>100</sort_order>
|
5123 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
5124 |
+
<show_in_default>1</show_in_default>
|
5125 |
+
<show_in_website>1</show_in_website>
|
5126 |
+
<show_in_store>1</show_in_store>
|
5127 |
+
</allowspecific>
|
5128 |
+
<specificcountry translate="label">
|
5129 |
+
<label>Payment from Specific countries</label>
|
5130 |
+
<frontend_type>multiselect</frontend_type>
|
5131 |
+
<sort_order>110</sort_order>
|
5132 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
5133 |
+
<show_in_default>1</show_in_default>
|
5134 |
<show_in_website>1</show_in_website>
|
5135 |
<show_in_store>1</show_in_store>
|
5136 |
</specificcountry>
|
5137 |
+
<currency translate="label">
|
5138 |
+
<label>Accepted Currency</label>
|
5139 |
+
<frontend_type>select</frontend_type>
|
5140 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
5141 |
+
<sort_order>111</sort_order>
|
5142 |
+
<show_in_default>1</show_in_default>
|
5143 |
+
<show_in_website>1</show_in_website>
|
5144 |
+
<show_in_store>1</show_in_store>
|
5145 |
+
</currency>
|
5146 |
<min_order_total translate="label">
|
5147 |
<label>Minimum Order Total</label>
|
5148 |
<frontend_type>text</frontend_type>
|
5188 |
<show_in_store>1</show_in_store>
|
5189 |
</is_test_mode>
|
5190 |
</fields>
|
5191 |
+
</hipay_boleto>
|
5192 |
+
<hipay_itau translate="label" module="hipay">
|
5193 |
+
<label>HiPay Enterprise Itau</label>
|
5194 |
<frontend_type>text</frontend_type>
|
5195 |
+
<sort_order>241</sort_order>
|
5196 |
<show_in_default>1</show_in_default>
|
5197 |
<show_in_website>1</show_in_website>
|
5198 |
<show_in_store>1</show_in_store>
|
5199 |
<fields>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5200 |
<active translate="label">
|
5201 |
<label>Enabled</label>
|
5202 |
<frontend_type>select</frontend_type>
|
5252 |
</hipay_status_validate_order>
|
5253 |
<success_redirect_page translate="label">
|
5254 |
<label>Redirect page success</label>
|
5255 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
|
|
|
|
5256 |
<frontend_type>text</frontend_type>
|
5257 |
+
<sort_order>26</sort_order>
|
5258 |
<show_in_default>1</show_in_default>
|
5259 |
<show_in_website>1</show_in_website>
|
5260 |
<show_in_store>0</show_in_store>
|
5261 |
</success_redirect_page>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5262 |
<pending_redirect_page translate="label">
|
5263 |
<label>Redirect page pending status</label>
|
5264 |
<comment>Page to redirect when transaction is in pending status</comment>
|
5265 |
<frontend_type>select</frontend_type>
|
5266 |
<source_model>hipay/source_pendingredirect</source_model>
|
5267 |
+
<sort_order>27</sort_order>
|
5268 |
<show_in_default>1</show_in_default>
|
5269 |
<show_in_website>1</show_in_website>
|
5270 |
<show_in_store>0</show_in_store>
|
5273 |
<label>Payment Action</label>
|
5274 |
<frontend_type>select</frontend_type>
|
5275 |
<source_model>hipay/source_paymentAction</source_model>
|
5276 |
+
<sort_order>28</sort_order>
|
5277 |
<show_in_default>1</show_in_default>
|
5278 |
<show_in_website>1</show_in_website>
|
5279 |
<show_in_store>0</show_in_store>
|
5282 |
<label>Css Url</label>
|
5283 |
<comment>Important, HTTPS protocol is required</comment>
|
5284 |
<frontend_type>text</frontend_type>
|
5285 |
+
<sort_order>30</sort_order>
|
5286 |
<show_in_default>1</show_in_default>
|
5287 |
<show_in_website>1</show_in_website>
|
5288 |
<show_in_store>1</show_in_store>
|
5294 |
<sort_order>35</sort_order>
|
5295 |
<show_in_default>1</show_in_default>
|
5296 |
<show_in_website>1</show_in_website>
|
5297 |
+
<show_in_store>0</show_in_store>
|
5298 |
</template>
|
5299 |
+
<display_iframe translate="label">
|
5300 |
+
<label>Display hosted page in Iframe</label>
|
5301 |
+
<frontend_type>select</frontend_type>
|
5302 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5303 |
+
<sort_order>36</sort_order>
|
5304 |
+
<show_in_default>1</show_in_default>
|
5305 |
+
<show_in_website>1</show_in_website>
|
5306 |
+
<show_in_store>0</show_in_store>
|
5307 |
+
</display_iframe>
|
5308 |
+
<iframe_width translate="label">
|
5309 |
+
<label>iFrame Width</label>
|
5310 |
+
<frontend_type>text</frontend_type>
|
5311 |
+
<sort_order>37</sort_order>
|
5312 |
+
<show_in_default>1</show_in_default>
|
5313 |
+
<show_in_website>1</show_in_website>
|
5314 |
+
<show_in_store>1</show_in_store>
|
5315 |
+
</iframe_width>
|
5316 |
+
<iframe_height translate="label">
|
5317 |
+
<label>iFrame Height</label>
|
5318 |
+
<frontend_type>text</frontend_type>
|
5319 |
+
<sort_order>38</sort_order>
|
5320 |
+
<show_in_default>1</show_in_default>
|
5321 |
+
<show_in_website>1</show_in_website>
|
5322 |
+
<show_in_store>1</show_in_store>
|
5323 |
+
</iframe_height>
|
5324 |
+
<iframe_style translate="label">
|
5325 |
+
<label>iFrame Style</label>
|
5326 |
+
<frontend_type>text</frontend_type>show_in_website
|
5327 |
+
<sort_order>39</sort_order>
|
5328 |
+
<show_in_default>1</show_in_default>
|
5329 |
+
<show_in_website>1</show_in_website>
|
5330 |
+
<show_in_store>1</show_in_store>
|
5331 |
+
</iframe_style>
|
5332 |
+
<iframe_wrapper_style translate="label">
|
5333 |
+
<label>Wrapper iFrame Style</label>
|
5334 |
+
<frontend_type>text</frontend_type>
|
5335 |
+
<sort_order>39</sort_order>
|
5336 |
+
<show_in_default>1</show_in_default>
|
5337 |
+
<show_in_website>1</show_in_website>
|
5338 |
+
<show_in_store>1</show_in_store>
|
5339 |
+
</iframe_wrapper_style>
|
5340 |
<display_selector translate="label">
|
5341 |
<label>Display card selector</label>
|
5342 |
<frontend_type>select</frontend_type>
|
5374 |
<show_in_website>1</show_in_website>
|
5375 |
<show_in_store>1</show_in_store>
|
5376 |
</send_fraud_payment_email>
|
5377 |
+
<!-- @deprecated since version 1.2.6 -->
|
5378 |
+
<!-- <allow_split_payment translate="label">
|
5379 |
+
<label>Use Split Payment</label>
|
5380 |
+
<frontend_type>select</frontend_type>
|
5381 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
5382 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5383 |
+
<sort_order>65</sort_order>
|
5384 |
+
<show_in_default>1</show_in_default>
|
5385 |
+
<show_in_website>1</show_in_website>
|
5386 |
+
<show_in_store>0</show_in_store>
|
5387 |
+
</allow_split_payment>
|
5388 |
+
<split_payment_profile translate="label">
|
5389 |
+
<label>Payment Profile</label>
|
5390 |
+
<frontend_type>multiselect</frontend_type>
|
5391 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
5392 |
+
<sort_order>66</sort_order>
|
5393 |
+
<show_in_default>1</show_in_default>
|
5394 |
+
<show_in_website>1</show_in_website>
|
5395 |
+
<show_in_store>0</show_in_store>
|
5396 |
+
</split_payment_profile>
|
5397 |
+
<min_order_total_split_payment translate="label">
|
5398 |
+
<label>Minimum Order Total for Split Payment</label>
|
5399 |
+
<frontend_type>text</frontend_type>
|
5400 |
+
<sort_order>68</sort_order>
|
5401 |
+
<show_in_default>1</show_in_default>
|
5402 |
+
<show_in_website>1</show_in_website>
|
5403 |
+
<show_in_store>1</show_in_store>
|
5404 |
+
</min_order_total_split_payment> -->
|
5405 |
<allow_use_oneclick translate="label">
|
5406 |
<label>Use Oneclick</label>
|
5407 |
<frontend_type>select</frontend_type>
|
5441 |
<show_in_website>1</show_in_website>
|
5442 |
<show_in_store>0</show_in_store>
|
5443 |
</cancel_pending_order>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5444 |
<send_fraud_payment_email translate="label">
|
5445 |
<label>Send fraud payment email</label>
|
5446 |
<frontend_type>select</frontend_type>
|
5450 |
<show_in_website>1</show_in_website>
|
5451 |
<show_in_store>1</show_in_store>
|
5452 |
</send_fraud_payment_email>
|
5453 |
+
<allowspecific translate="label">
|
5454 |
+
<label>Payment from applicable countries</label>
|
5455 |
+
<frontend_type>allowspecific</frontend_type>
|
5456 |
+
<sort_order>100</sort_order>
|
5457 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
5458 |
+
<show_in_default>1</show_in_default>
|
5459 |
+
<show_in_website>1</show_in_website>
|
5460 |
+
<show_in_store>1</show_in_store>
|
5461 |
+
</allowspecific>
|
5462 |
+
<specificcountry translate="label">
|
5463 |
+
<label>Payment from Specific countries</label>
|
5464 |
+
<frontend_type>multiselect</frontend_type>
|
5465 |
+
<sort_order>110</sort_order>
|
5466 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
5467 |
+
<show_in_default>1</show_in_default>
|
5468 |
+
<show_in_website>1</show_in_website>
|
5469 |
+
<show_in_store>1</show_in_store>
|
5470 |
+
</specificcountry>
|
5471 |
+
<currency translate="label">
|
5472 |
+
<label>Accepted Currency</label>
|
5473 |
+
<frontend_type>select</frontend_type>
|
5474 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
5475 |
+
<sort_order>111</sort_order>
|
5476 |
+
<show_in_default>1</show_in_default>
|
5477 |
+
<show_in_website>1</show_in_website>
|
5478 |
+
<show_in_store>1</show_in_store>
|
5479 |
+
</currency>
|
5480 |
+
<min_order_total translate="label">
|
5481 |
+
<label>Minimum Order Total</label>
|
5482 |
+
<frontend_type>text</frontend_type>
|
5483 |
+
<sort_order>120</sort_order>
|
5484 |
+
<show_in_default>1</show_in_default>
|
5485 |
+
<show_in_website>1</show_in_website>
|
5486 |
+
<show_in_store>1</show_in_store>
|
5487 |
+
</min_order_total>
|
5488 |
+
<max_order_total translate="label">
|
5489 |
+
<label>Maximum Order Total</label>
|
5490 |
+
<frontend_type>text</frontend_type>
|
5491 |
+
<sort_order>121</sort_order>
|
5492 |
+
<show_in_default>1</show_in_default>
|
5493 |
+
<show_in_website>1</show_in_website>
|
5494 |
+
<show_in_store>1</show_in_store>
|
5495 |
+
</max_order_total>
|
5496 |
+
<sort_order translate="label">
|
5497 |
+
<label>Sort Order</label>
|
5498 |
+
<frontend_type>text</frontend_type>
|
5499 |
+
<sort_order>130</sort_order>
|
5500 |
+
<show_in_default>1</show_in_default>
|
5501 |
+
<show_in_website>1</show_in_website>
|
5502 |
+
<show_in_store>1</show_in_store>
|
5503 |
+
</sort_order>
|
5504 |
+
<debug translate="label">
|
5505 |
+
<label>Enable debug log</label>
|
5506 |
+
<comment></comment>
|
5507 |
+
<frontend_type>select</frontend_type>
|
5508 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5509 |
+
<sort_order>150</sort_order>
|
5510 |
+
<show_in_default>1</show_in_default>
|
5511 |
+
<show_in_website>1</show_in_website>
|
5512 |
+
<show_in_store>0</show_in_store>
|
5513 |
+
</debug>
|
5514 |
+
<is_test_mode translate="label comment">
|
5515 |
+
<label>Enable test mode</label>
|
5516 |
+
<comment></comment>
|
5517 |
+
<frontend_type>select</frontend_type>
|
5518 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5519 |
+
<sort_order>200</sort_order>
|
5520 |
+
<show_in_default>1</show_in_default>
|
5521 |
+
<show_in_website>1</show_in_website>
|
5522 |
+
<show_in_store>1</show_in_store>
|
5523 |
+
</is_test_mode>
|
5524 |
+
</fields>
|
5525 |
+
</hipay_itau>
|
5526 |
+
<hipay_postfinanceefinanceapi translate="label" module="hipay">
|
5527 |
+
<label>HiPay Enterprise PostFinance E-Finance</label>
|
5528 |
+
<frontend_type>text</frontend_type>
|
5529 |
+
<sort_order>241</sort_order>
|
5530 |
+
<show_in_default>1</show_in_default>
|
5531 |
+
<show_in_website>1</show_in_website>
|
5532 |
+
<show_in_store>1</show_in_store>
|
5533 |
+
<fields>
|
5534 |
+
<active translate="label">
|
5535 |
+
<label>Enabled</label>
|
5536 |
+
<frontend_type>select</frontend_type>
|
5537 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5538 |
+
<sort_order>10</sort_order>
|
5539 |
+
<show_in_default>1</show_in_default>
|
5540 |
+
<show_in_website>1</show_in_website>
|
5541 |
+
<show_in_store>1</show_in_store>
|
5542 |
+
</active>
|
5543 |
+
<title translate="label">
|
5544 |
+
<label>Title</label>
|
5545 |
+
<frontend_type>text</frontend_type>
|
5546 |
+
<sort_order>20</sort_order>
|
5547 |
+
<show_in_default>1</show_in_default>
|
5548 |
+
<show_in_website>1</show_in_website>
|
5549 |
+
<show_in_store>1</show_in_store>
|
5550 |
+
</title>
|
5551 |
+
<order_status_payment_accepted translate="label">
|
5552 |
+
<label>Order status when payment accepted</label>
|
5553 |
+
<frontend_type>select</frontend_type>
|
5554 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
5555 |
+
<sort_order>23</sort_order>
|
5556 |
+
<show_in_default>1</show_in_default>
|
5557 |
+
<show_in_website>1</show_in_website>
|
5558 |
+
<show_in_store>0</show_in_store>
|
5559 |
+
</order_status_payment_accepted>
|
5560 |
+
<order_status_payment_refused translate="label">
|
5561 |
+
<label>Order status when payment refused</label>
|
5562 |
+
<frontend_type>select</frontend_type>
|
5563 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
5564 |
+
<sort_order>24</sort_order>
|
5565 |
+
<show_in_default>1</show_in_default>
|
5566 |
+
<show_in_website>1</show_in_website>
|
5567 |
+
<show_in_store>0</show_in_store>
|
5568 |
+
</order_status_payment_refused>
|
5569 |
+
<order_status_payment_canceled translate="label">
|
5570 |
+
<label>Order status when payment canceled by customer</label>
|
5571 |
+
<frontend_type>select</frontend_type>
|
5572 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
5573 |
+
<sort_order>25</sort_order>
|
5574 |
+
<show_in_default>1</show_in_default>
|
5575 |
+
<show_in_website>1</show_in_website>
|
5576 |
+
<show_in_store>0</show_in_store>
|
5577 |
+
</order_status_payment_canceled>
|
5578 |
+
<hipay_status_validate_order translate="label">
|
5579 |
+
<label>Hipay status to validate order</label>
|
5580 |
+
<frontend_type>select</frontend_type>
|
5581 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
5582 |
+
<sort_order>26</sort_order>
|
5583 |
+
<show_in_default>1</show_in_default>
|
5584 |
+
<show_in_website>1</show_in_website>
|
5585 |
+
<show_in_store>0</show_in_store>
|
5586 |
+
</hipay_status_validate_order>
|
5587 |
+
<success_redirect_page translate="label">
|
5588 |
+
<label>Redirect page success</label>
|
5589 |
+
<comment>Page to redirect when transaction is successful, leave empty for
|
5590 |
+
checkout/onepage/success
|
5591 |
+
</comment>
|
5592 |
+
<frontend_type>text</frontend_type>
|
5593 |
+
<sort_order>27</sort_order>
|
5594 |
+
<show_in_default>1</show_in_default>
|
5595 |
+
<show_in_website>1</show_in_website>
|
5596 |
+
<show_in_store>0</show_in_store>
|
5597 |
+
</success_redirect_page>
|
5598 |
+
<failure_redirect_page translate="label">
|
5599 |
+
<label>Redirect page failure</label>
|
5600 |
+
<comment>Page to redirect when transaction fails, leave empty for checkout/onepage/failure
|
5601 |
+
</comment>
|
5602 |
+
<frontend_type>text</frontend_type>
|
5603 |
+
<sort_order>28</sort_order>
|
5604 |
+
<show_in_default>1</show_in_default>
|
5605 |
+
<show_in_website>1</show_in_website>
|
5606 |
+
<show_in_store>0</show_in_store>
|
5607 |
+
</failure_redirect_page>
|
5608 |
+
<pending_redirect_page translate="label">
|
5609 |
+
<label>Redirect page pending status</label>
|
5610 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
5611 |
+
<frontend_type>select</frontend_type>
|
5612 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
5613 |
+
<sort_order>29</sort_order>
|
5614 |
+
<show_in_default>1</show_in_default>
|
5615 |
+
<show_in_website>1</show_in_website>
|
5616 |
+
<show_in_store>0</show_in_store>
|
5617 |
+
</pending_redirect_page>
|
5618 |
+
<re_add_to_cart translate="label comment">
|
5619 |
+
<label>Add product to cart</label>
|
5620 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
5621 |
+
<frontend_type>select</frontend_type>
|
5622 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5623 |
+
<sort_order>95</sort_order>
|
5624 |
+
<show_in_default>1</show_in_default>
|
5625 |
+
<show_in_website>1</show_in_website>
|
5626 |
+
<show_in_store>0</show_in_store>
|
5627 |
+
</re_add_to_cart>
|
5628 |
+
<cancel_pending_order translate="label comment">
|
5629 |
+
<label>Cancel pending order</label>
|
5630 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
5631 |
+
<frontend_type>select</frontend_type>
|
5632 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5633 |
+
<sort_order>97</sort_order>
|
5634 |
+
<show_in_default>1</show_in_default>
|
5635 |
+
<show_in_website>1</show_in_website>
|
5636 |
+
<show_in_store>0</show_in_store>
|
5637 |
+
</cancel_pending_order>
|
5638 |
+
<delay_cancel_pending_order translate="label">
|
5639 |
+
<label>Delay before cancel order</label>
|
5640 |
+
<comment>In Hours</comment>
|
5641 |
+
<frontend_type>text</frontend_type>
|
5642 |
+
<sort_order>98</sort_order>
|
5643 |
+
<show_in_default>1</show_in_default>
|
5644 |
+
<show_in_website>1</show_in_website>
|
5645 |
+
<show_in_store>1</show_in_store>
|
5646 |
+
</delay_cancel_pending_order>
|
5647 |
+
<send_fraud_payment_email translate="label">
|
5648 |
+
<label>Send fraud payment email</label>
|
5649 |
+
<frontend_type>select</frontend_type>
|
5650 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5651 |
+
<sort_order>99</sort_order>
|
5652 |
+
<show_in_default>1</show_in_default>
|
5653 |
+
<show_in_website>1</show_in_website>
|
5654 |
+
<show_in_store>1</show_in_store>
|
5655 |
+
</send_fraud_payment_email>
|
5656 |
+
<allowspecific translate="label">
|
5657 |
+
<label>Payment from applicable countries</label>
|
5658 |
+
<frontend_type>allowspecific</frontend_type>
|
5659 |
+
<sort_order>100</sort_order>
|
5660 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
5661 |
+
<show_in_default>1</show_in_default>
|
5662 |
+
<show_in_website>1</show_in_website>
|
5663 |
+
<show_in_store>1</show_in_store>
|
5664 |
+
</allowspecific>
|
5665 |
+
<specificcountry translate="label">
|
5666 |
+
<label>Payment from Specific countries</label>
|
5667 |
+
<frontend_type>multiselect</frontend_type>
|
5668 |
+
<sort_order>110</sort_order>
|
5669 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
5670 |
+
<show_in_default>1</show_in_default>
|
5671 |
+
<show_in_website>1</show_in_website>
|
5672 |
+
<show_in_store>1</show_in_store>
|
5673 |
+
</specificcountry>
|
5674 |
+
<currency translate="label">
|
5675 |
+
<label>Accepted Currency</label>
|
5676 |
+
<frontend_type>select</frontend_type>
|
5677 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
5678 |
+
<sort_order>111</sort_order>
|
5679 |
+
<show_in_default>1</show_in_default>
|
5680 |
+
<show_in_website>1</show_in_website>
|
5681 |
+
<show_in_store>1</show_in_store>
|
5682 |
+
</currency>
|
5683 |
+
<min_order_total translate="label">
|
5684 |
+
<label>Minimum Order Total</label>
|
5685 |
+
<frontend_type>text</frontend_type>
|
5686 |
+
<sort_order>120</sort_order>
|
5687 |
+
<show_in_default>1</show_in_default>
|
5688 |
+
<show_in_website>1</show_in_website>
|
5689 |
+
<show_in_store>1</show_in_store>
|
5690 |
+
</min_order_total>
|
5691 |
+
<max_order_total translate="label">
|
5692 |
+
<label>Maximum Order Total</label>
|
5693 |
+
<frontend_type>text</frontend_type>
|
5694 |
+
<sort_order>121</sort_order>
|
5695 |
+
<show_in_default>1</show_in_default>
|
5696 |
+
<show_in_website>1</show_in_website>
|
5697 |
+
<show_in_store>1</show_in_store>
|
5698 |
+
</max_order_total>
|
5699 |
+
<sort_order translate="label">
|
5700 |
+
<label>Sort Order</label>
|
5701 |
+
<frontend_type>text</frontend_type>
|
5702 |
+
<sort_order>130</sort_order>
|
5703 |
+
<show_in_default>1</show_in_default>
|
5704 |
+
<show_in_website>1</show_in_website>
|
5705 |
+
<show_in_store>1</show_in_store>
|
5706 |
+
</sort_order>
|
5707 |
+
<debug translate="label">
|
5708 |
+
<label>Enable debug log</label>
|
5709 |
+
<comment></comment>
|
5710 |
+
<frontend_type>select</frontend_type>
|
5711 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5712 |
+
<sort_order>150</sort_order>
|
5713 |
+
<show_in_default>1</show_in_default>
|
5714 |
+
<show_in_website>1</show_in_website>
|
5715 |
+
<show_in_store>0</show_in_store>
|
5716 |
+
</debug>
|
5717 |
+
<is_test_mode translate="label comment">
|
5718 |
+
<label>Enable test mode</label>
|
5719 |
+
<comment></comment>
|
5720 |
+
<frontend_type>select</frontend_type>
|
5721 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5722 |
+
<sort_order>200</sort_order>
|
5723 |
+
<show_in_default>1</show_in_default>
|
5724 |
+
<show_in_website>1</show_in_website>
|
5725 |
+
<show_in_store>1</show_in_store>
|
5726 |
+
</is_test_mode>
|
5727 |
+
</fields>
|
5728 |
+
</hipay_postfinanceefinanceapi>
|
5729 |
+
<hipay_klarna translate="label" module="hipay">
|
5730 |
+
<label>HiPay Klarna Invoice</label>
|
5731 |
+
<frontend_type>text</frontend_type>
|
5732 |
+
<sort_order>230</sort_order>
|
5733 |
+
<show_in_default>1</show_in_default>
|
5734 |
+
<show_in_website>1</show_in_website>
|
5735 |
+
<show_in_store>1</show_in_store>
|
5736 |
+
<fields>
|
5737 |
+
<notice translate="label" module="hipay">
|
5738 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_Notice</frontend_model>
|
5739 |
+
<sort_order>1</sort_order>
|
5740 |
+
<show_in_default>1</show_in_default>
|
5741 |
+
<show_in_website>1</show_in_website>
|
5742 |
+
<show_in_store>1</show_in_store>
|
5743 |
+
</notice>
|
5744 |
+
<active translate="label">
|
5745 |
+
<label>Enabled</label>
|
5746 |
+
<frontend_type>select</frontend_type>
|
5747 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5748 |
+
<sort_order>10</sort_order>
|
5749 |
+
<show_in_default>1</show_in_default>
|
5750 |
+
<show_in_website>1</show_in_website>
|
5751 |
+
<show_in_store>1</show_in_store>
|
5752 |
+
</active>
|
5753 |
+
<title translate="label">
|
5754 |
+
<label>Title</label>
|
5755 |
+
<frontend_type>text</frontend_type>
|
5756 |
+
<sort_order>20</sort_order>
|
5757 |
+
<show_in_default>1</show_in_default>
|
5758 |
+
<show_in_website>1</show_in_website>
|
5759 |
+
<show_in_store>1</show_in_store>
|
5760 |
+
</title>
|
5761 |
+
<order_status_payment_accepted translate="label">
|
5762 |
+
<label>Order status when payment accepted</label>
|
5763 |
+
<frontend_type>select</frontend_type>
|
5764 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
5765 |
+
<sort_order>23</sort_order>
|
5766 |
+
<show_in_default>1</show_in_default>
|
5767 |
+
<show_in_website>1</show_in_website>
|
5768 |
+
<show_in_store>0</show_in_store>
|
5769 |
+
</order_status_payment_accepted>
|
5770 |
+
<order_status_payment_refused translate="label">
|
5771 |
+
<label>Order status when payment refused</label>
|
5772 |
+
<frontend_type>select</frontend_type>
|
5773 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
5774 |
+
<sort_order>24</sort_order>
|
5775 |
+
<show_in_default>1</show_in_default>
|
5776 |
+
<show_in_website>1</show_in_website>
|
5777 |
+
<show_in_store>0</show_in_store>
|
5778 |
+
</order_status_payment_refused>
|
5779 |
+
<order_status_payment_canceled translate="label">
|
5780 |
+
<label>Order status when payment canceled by customer</label>
|
5781 |
+
<frontend_type>select</frontend_type>
|
5782 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
5783 |
+
<sort_order>25</sort_order>
|
5784 |
+
<show_in_default>1</show_in_default>
|
5785 |
+
<show_in_website>1</show_in_website>
|
5786 |
+
<show_in_store>0</show_in_store>
|
5787 |
+
</order_status_payment_canceled>
|
5788 |
+
<hipay_status_validate_order translate="label">
|
5789 |
+
<label>Hipay status to validate order</label>
|
5790 |
+
<frontend_type>select</frontend_type>
|
5791 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
5792 |
+
<sort_order>26</sort_order>
|
5793 |
+
<show_in_default>1</show_in_default>
|
5794 |
+
<show_in_website>1</show_in_website>
|
5795 |
+
<show_in_store>0</show_in_store>
|
5796 |
+
</hipay_status_validate_order>
|
5797 |
+
<success_redirect_page translate="label">
|
5798 |
+
<label>Redirect page success</label>
|
5799 |
+
<comment>Page to redirect when transaction is successful, leave empty for
|
5800 |
+
checkout/onepage/success
|
5801 |
+
</comment>
|
5802 |
+
<frontend_type>text</frontend_type>
|
5803 |
+
<sort_order>27</sort_order>
|
5804 |
+
<show_in_default>1</show_in_default>
|
5805 |
+
<show_in_website>1</show_in_website>
|
5806 |
+
<show_in_store>0</show_in_store>
|
5807 |
+
</success_redirect_page>
|
5808 |
+
<failure_redirect_page translate="label">
|
5809 |
+
<label>Redirect page failure</label>
|
5810 |
+
<comment>Page to redirect when transaction fails, leave empty for checkout/onepage/failure
|
5811 |
+
</comment>
|
5812 |
+
<frontend_type>text</frontend_type>
|
5813 |
+
<sort_order>28</sort_order>
|
5814 |
+
<show_in_default>1</show_in_default>
|
5815 |
+
<show_in_website>1</show_in_website>
|
5816 |
+
<show_in_store>0</show_in_store>
|
5817 |
+
</failure_redirect_page>
|
5818 |
+
<pending_redirect_page translate="label">
|
5819 |
+
<label>Redirect page pending status</label>
|
5820 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
5821 |
+
<frontend_type>select</frontend_type>
|
5822 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
5823 |
+
<sort_order>29</sort_order>
|
5824 |
+
<show_in_default>1</show_in_default>
|
5825 |
+
<show_in_website>1</show_in_website>
|
5826 |
+
<show_in_store>0</show_in_store>
|
5827 |
+
</pending_redirect_page>
|
5828 |
+
<payment_action translate="label">
|
5829 |
+
<label>Payment Action</label>
|
5830 |
+
<frontend_type>select</frontend_type>
|
5831 |
+
<source_model>hipay/source_paymentAction</source_model>
|
5832 |
+
<sort_order>30</sort_order>
|
5833 |
+
<show_in_default>1</show_in_default>
|
5834 |
+
<show_in_website>1</show_in_website>
|
5835 |
+
<show_in_store>0</show_in_store>
|
5836 |
+
</payment_action>
|
5837 |
+
<css_url translate="label coment">
|
5838 |
+
<label>Css Url</label>
|
5839 |
+
<comment>Important, HTTPS protocol is required</comment>
|
5840 |
+
<frontend_type>text</frontend_type>
|
5841 |
+
<sort_order>32</sort_order>
|
5842 |
+
<show_in_default>1</show_in_default>
|
5843 |
+
<show_in_website>1</show_in_website>
|
5844 |
+
<show_in_store>1</show_in_store>
|
5845 |
+
</css_url>
|
5846 |
+
<template translate="label">
|
5847 |
+
<label>Page payment template</label>
|
5848 |
+
<frontend_type>select</frontend_type>
|
5849 |
+
<source_model>hipay/source_template</source_model>
|
5850 |
+
<sort_order>35</sort_order>
|
5851 |
+
<show_in_default>1</show_in_default>
|
5852 |
+
<show_in_website>1</show_in_website>
|
5853 |
+
<show_in_store>1</show_in_store>
|
5854 |
+
</template>
|
5855 |
+
<display_selector translate="label">
|
5856 |
+
<label>Display card selector</label>
|
5857 |
+
<frontend_type>select</frontend_type>
|
5858 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5859 |
+
<sort_order>40</sort_order>
|
5860 |
+
<show_in_default>1</show_in_default>
|
5861 |
+
<show_in_website>1</show_in_website>
|
5862 |
+
<show_in_store>0</show_in_store>
|
5863 |
+
</display_selector>
|
5864 |
+
<use_3d_secure translate="label">
|
5865 |
+
<label>Use 3D Secure</label>
|
5866 |
+
<frontend_type>select</frontend_type>
|
5867 |
+
<source_model>hipay/source_3ds</source_model>
|
5868 |
+
<sort_order>60</sort_order>
|
5869 |
+
<show_in_default>1</show_in_default>
|
5870 |
+
<show_in_website>1</show_in_website>
|
5871 |
+
<show_in_store>0</show_in_store>
|
5872 |
+
</use_3d_secure>
|
5873 |
+
<config_3ds_rules translate="label comment">
|
5874 |
+
<label>Rules 3D Secure</label>
|
5875 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
5876 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
5877 |
+
<backend_model>hipay/rule_config</backend_model>
|
5878 |
+
<sort_order>61</sort_order>
|
5879 |
+
<show_in_default>1</show_in_default>
|
5880 |
+
<show_in_website>1</show_in_website>
|
5881 |
+
<show_in_store>0</show_in_store>
|
5882 |
+
</config_3ds_rules>
|
5883 |
+
<send_fraud_payment_email translate="label">
|
5884 |
+
<label>Send fraud payment email</label>
|
5885 |
+
<frontend_type>select</frontend_type>
|
5886 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5887 |
+
<sort_order>63</sort_order>
|
5888 |
+
<show_in_default>1</show_in_default>
|
5889 |
+
<show_in_website>1</show_in_website>
|
5890 |
+
<show_in_store>1</show_in_store>
|
5891 |
+
</send_fraud_payment_email>
|
5892 |
+
<allow_use_oneclick translate="label">
|
5893 |
+
<label>Use Oneclick</label>
|
5894 |
+
<frontend_type>select</frontend_type>
|
5895 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5896 |
+
<sort_order>70</sort_order>
|
5897 |
+
<show_in_default>1</show_in_default>
|
5898 |
+
<show_in_website>1</show_in_website>
|
5899 |
+
<show_in_store>0</show_in_store>
|
5900 |
+
</allow_use_oneclick>
|
5901 |
+
<filter_oneclick translate="label comment">
|
5902 |
+
<label>Rules Oneclick</label>
|
5903 |
+
<comment>Configure Rules to activate oneclick</comment>
|
5904 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
5905 |
+
<backend_model>hipay/rule_config</backend_model>
|
5906 |
+
<sort_order>80</sort_order>
|
5907 |
+
<show_in_default>1</show_in_default>
|
5908 |
+
<show_in_website>1</show_in_website>
|
5909 |
+
<show_in_store>0</show_in_store>
|
5910 |
+
</filter_oneclick>
|
5911 |
+
<re_add_to_cart translate="label comment">
|
5912 |
+
<label>Add product to cart</label>
|
5913 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
5914 |
+
<frontend_type>select</frontend_type>
|
5915 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5916 |
+
<sort_order>95</sort_order>
|
5917 |
+
<show_in_default>1</show_in_default>
|
5918 |
+
<show_in_website>1</show_in_website>
|
5919 |
+
<show_in_store>0</show_in_store>
|
5920 |
+
</re_add_to_cart>
|
5921 |
+
<cancel_pending_order translate="label comment">
|
5922 |
+
<label>Cancel pending order</label>
|
5923 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
5924 |
+
<frontend_type>select</frontend_type>
|
5925 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5926 |
+
<sort_order>97</sort_order>
|
5927 |
+
<show_in_default>1</show_in_default>
|
5928 |
+
<show_in_website>1</show_in_website>
|
5929 |
+
<show_in_store>0</show_in_store>
|
5930 |
+
</cancel_pending_order>
|
5931 |
+
<delay_cancel_pending_order translate="label">
|
5932 |
+
<label>Delay before cancel order</label>
|
5933 |
+
<comment>In Hours</comment>
|
5934 |
+
<frontend_type>text</frontend_type>
|
5935 |
+
<sort_order>98</sort_order>
|
5936 |
+
<show_in_default>1</show_in_default>
|
5937 |
+
<show_in_website>1</show_in_website>
|
5938 |
+
<show_in_store>1</show_in_store>
|
5939 |
+
</delay_cancel_pending_order>
|
5940 |
+
<send_fraud_payment_email translate="label">
|
5941 |
+
<label>Send fraud payment email</label>
|
5942 |
+
<frontend_type>select</frontend_type>
|
5943 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5944 |
+
<sort_order>99</sort_order>
|
5945 |
+
<show_in_default>1</show_in_default>
|
5946 |
+
<show_in_website>1</show_in_website>
|
5947 |
+
<show_in_store>1</show_in_store>
|
5948 |
+
</send_fraud_payment_email>
|
5949 |
+
<min_order_total translate="label">
|
5950 |
+
<label>Minimum Order Total</label>
|
5951 |
+
<frontend_type>text</frontend_type>
|
5952 |
+
<sort_order>120</sort_order>
|
5953 |
+
<show_in_default>1</show_in_default>
|
5954 |
+
<show_in_website>1</show_in_website>
|
5955 |
+
<show_in_store>1</show_in_store>
|
5956 |
+
</min_order_total>
|
5957 |
+
<max_order_total translate="label">
|
5958 |
+
<label>Maximum Order Total</label>
|
5959 |
+
<frontend_type>text</frontend_type>
|
5960 |
+
<sort_order>121</sort_order>
|
5961 |
+
<show_in_default>1</show_in_default>
|
5962 |
+
<show_in_website>1</show_in_website>
|
5963 |
+
<show_in_store>1</show_in_store>
|
5964 |
+
</max_order_total>
|
5965 |
+
<sort_order translate="label">
|
5966 |
+
<label>Sort Order</label>
|
5967 |
+
<frontend_type>text</frontend_type>
|
5968 |
+
<sort_order>130</sort_order>
|
5969 |
+
<show_in_default>1</show_in_default>
|
5970 |
+
<show_in_website>1</show_in_website>
|
5971 |
+
<show_in_store>1</show_in_store>
|
5972 |
+
</sort_order>
|
5973 |
+
<debug translate="label">
|
5974 |
+
<label>Enable debug log</label>
|
5975 |
+
<comment></comment>
|
5976 |
+
<frontend_type>select</frontend_type>
|
5977 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5978 |
+
<sort_order>150</sort_order>
|
5979 |
+
<show_in_default>1</show_in_default>
|
5980 |
+
<show_in_website>1</show_in_website>
|
5981 |
+
<show_in_store>0</show_in_store>
|
5982 |
+
</debug>
|
5983 |
+
<is_test_mode translate="label comment">
|
5984 |
+
<label>Enable test mode</label>
|
5985 |
+
<comment></comment>
|
5986 |
+
<frontend_type>select</frontend_type>
|
5987 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
5988 |
+
<sort_order>200</sort_order>
|
5989 |
+
<show_in_default>1</show_in_default>
|
5990 |
+
<show_in_website>1</show_in_website>
|
5991 |
+
<show_in_store>1</show_in_store>
|
5992 |
+
</is_test_mode>
|
5993 |
+
</fields>
|
5994 |
+
</hipay_klarna>
|
5995 |
+
<hipay_bradesco translate="label" module="hipay">
|
5996 |
+
<label>HiPay Enterprise Bradesco</label>
|
5997 |
+
<frontend_type>text</frontend_type>
|
5998 |
+
<sort_order>242</sort_order>
|
5999 |
+
<show_in_default>1</show_in_default>
|
6000 |
+
<show_in_website>1</show_in_website>
|
6001 |
+
<show_in_store>1</show_in_store>
|
6002 |
+
<fields>
|
6003 |
+
<active translate="label">
|
6004 |
+
<label>Enabled</label>
|
6005 |
+
<frontend_type>select</frontend_type>
|
6006 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6007 |
+
<sort_order>10</sort_order>
|
6008 |
+
<show_in_default>1</show_in_default>
|
6009 |
+
<show_in_website>1</show_in_website>
|
6010 |
+
<show_in_store>1</show_in_store>
|
6011 |
+
</active>
|
6012 |
+
<title translate="label">
|
6013 |
+
<label>Title</label>
|
6014 |
+
<frontend_type>text</frontend_type>
|
6015 |
+
<sort_order>20</sort_order>
|
6016 |
+
<show_in_default>1</show_in_default>
|
6017 |
+
<show_in_website>1</show_in_website>
|
6018 |
+
<show_in_store>1</show_in_store>
|
6019 |
+
</title>
|
6020 |
+
<order_status_payment_accepted translate="label">
|
6021 |
+
<label>Order status when payment accepted</label>
|
6022 |
+
<frontend_type>select</frontend_type>
|
6023 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
6024 |
+
<sort_order>23</sort_order>
|
6025 |
+
<show_in_default>1</show_in_default>
|
6026 |
+
<show_in_website>1</show_in_website>
|
6027 |
+
<show_in_store>0</show_in_store>
|
6028 |
+
</order_status_payment_accepted>
|
6029 |
+
<order_status_payment_refused translate="label">
|
6030 |
+
<label>Order status when payment refused</label>
|
6031 |
+
<frontend_type>select</frontend_type>
|
6032 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
6033 |
+
<sort_order>24</sort_order>
|
6034 |
+
<show_in_default>1</show_in_default>
|
6035 |
+
<show_in_website>1</show_in_website>
|
6036 |
+
<show_in_store>0</show_in_store>
|
6037 |
+
</order_status_payment_refused>
|
6038 |
+
<order_status_payment_canceled translate="label">
|
6039 |
+
<label>Order status when payment canceled by customer</label>
|
6040 |
+
<frontend_type>select</frontend_type>
|
6041 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
6042 |
+
<sort_order>25</sort_order>
|
6043 |
+
<show_in_default>1</show_in_default>
|
6044 |
+
<show_in_website>1</show_in_website>
|
6045 |
+
<show_in_store>0</show_in_store>
|
6046 |
+
</order_status_payment_canceled>
|
6047 |
+
<hipay_status_validate_order translate="label">
|
6048 |
+
<label>Hipay status to validate order</label>
|
6049 |
+
<frontend_type>select</frontend_type>
|
6050 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
6051 |
+
<sort_order>26</sort_order>
|
6052 |
+
<show_in_default>1</show_in_default>
|
6053 |
+
<show_in_website>1</show_in_website>
|
6054 |
+
<show_in_store>0</show_in_store>
|
6055 |
+
</hipay_status_validate_order>
|
6056 |
+
<success_redirect_page translate="label">
|
6057 |
+
<label>Redirect page success</label>
|
6058 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
6059 |
+
<frontend_type>text</frontend_type>
|
6060 |
+
<sort_order>26</sort_order>
|
6061 |
+
<show_in_default>1</show_in_default>
|
6062 |
+
<show_in_website>1</show_in_website>
|
6063 |
+
<show_in_store>0</show_in_store>
|
6064 |
+
</success_redirect_page>
|
6065 |
+
<pending_redirect_page translate="label">
|
6066 |
+
<label>Redirect page pending status</label>
|
6067 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
6068 |
+
<frontend_type>select</frontend_type>
|
6069 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
6070 |
+
<sort_order>27</sort_order>
|
6071 |
+
<show_in_default>1</show_in_default>
|
6072 |
+
<show_in_website>1</show_in_website>
|
6073 |
+
<show_in_store>0</show_in_store>
|
6074 |
+
</pending_redirect_page>
|
6075 |
+
<payment_action translate="label">
|
6076 |
+
<label>Payment Action</label>
|
6077 |
+
<frontend_type>select</frontend_type>
|
6078 |
+
<source_model>hipay/source_paymentAction</source_model>
|
6079 |
+
<sort_order>28</sort_order>
|
6080 |
+
<show_in_default>1</show_in_default>
|
6081 |
+
<show_in_website>1</show_in_website>
|
6082 |
+
<show_in_store>0</show_in_store>
|
6083 |
+
</payment_action>
|
6084 |
+
<css_url translate="label coment">
|
6085 |
+
<label>Css Url</label>
|
6086 |
+
<comment>Important, HTTPS protocol is required</comment>
|
6087 |
+
<frontend_type>text</frontend_type>
|
6088 |
+
<sort_order>30</sort_order>
|
6089 |
+
<show_in_default>1</show_in_default>
|
6090 |
+
<show_in_website>1</show_in_website>
|
6091 |
+
<show_in_store>1</show_in_store>
|
6092 |
+
</css_url>
|
6093 |
+
<template translate="label">
|
6094 |
+
<label>Page payment template</label>
|
6095 |
+
<frontend_type>select</frontend_type>
|
6096 |
+
<source_model>hipay/source_template</source_model>
|
6097 |
+
<sort_order>35</sort_order>
|
6098 |
+
<show_in_default>1</show_in_default>
|
6099 |
+
<show_in_website>1</show_in_website>
|
6100 |
+
<show_in_store>0</show_in_store>
|
6101 |
+
</template>
|
6102 |
+
<display_iframe translate="label">
|
6103 |
+
<label>Display hosted page in Iframe</label>
|
6104 |
+
<frontend_type>select</frontend_type>
|
6105 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6106 |
+
<sort_order>36</sort_order>
|
6107 |
+
<show_in_default>1</show_in_default>
|
6108 |
+
<show_in_website>1</show_in_website>
|
6109 |
+
<show_in_store>0</show_in_store>
|
6110 |
+
</display_iframe>
|
6111 |
+
<iframe_width translate="label">
|
6112 |
+
<label>iFrame Width</label>
|
6113 |
+
<frontend_type>text</frontend_type>
|
6114 |
+
<sort_order>37</sort_order>
|
6115 |
+
<show_in_default>1</show_in_default>
|
6116 |
+
<show_in_website>1</show_in_website>
|
6117 |
+
<show_in_store>1</show_in_store>
|
6118 |
+
</iframe_width>
|
6119 |
+
<iframe_height translate="label">
|
6120 |
+
<label>iFrame Height</label>
|
6121 |
+
<frontend_type>text</frontend_type>
|
6122 |
+
<sort_order>38</sort_order>
|
6123 |
+
<show_in_default>1</show_in_default>
|
6124 |
+
<show_in_website>1</show_in_website>
|
6125 |
+
<show_in_store>1</show_in_store>
|
6126 |
+
</iframe_height>
|
6127 |
+
<iframe_style translate="label">
|
6128 |
+
<label>iFrame Style</label>
|
6129 |
+
<frontend_type>text</frontend_type>show_in_website
|
6130 |
+
<sort_order>39</sort_order>
|
6131 |
+
<show_in_default>1</show_in_default>
|
6132 |
+
<show_in_website>1</show_in_website>
|
6133 |
+
<show_in_store>1</show_in_store>
|
6134 |
+
</iframe_style>
|
6135 |
+
<iframe_wrapper_style translate="label">
|
6136 |
+
<label>Wrapper iFrame Style</label>
|
6137 |
+
<frontend_type>text</frontend_type>
|
6138 |
+
<sort_order>39</sort_order>
|
6139 |
+
<show_in_default>1</show_in_default>
|
6140 |
+
<show_in_website>1</show_in_website>
|
6141 |
+
<show_in_store>1</show_in_store>
|
6142 |
+
</iframe_wrapper_style>
|
6143 |
+
<display_selector translate="label">
|
6144 |
+
<label>Display card selector</label>
|
6145 |
+
<frontend_type>select</frontend_type>
|
6146 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6147 |
+
<sort_order>40</sort_order>
|
6148 |
+
<show_in_default>1</show_in_default>
|
6149 |
+
<show_in_website>1</show_in_website>
|
6150 |
+
<show_in_store>0</show_in_store>
|
6151 |
+
</display_selector>
|
6152 |
+
<use_3d_secure translate="label">
|
6153 |
+
<label>Use 3D Secure</label>
|
6154 |
+
<frontend_type>select</frontend_type>
|
6155 |
+
<source_model>hipay/source_3ds</source_model>
|
6156 |
+
<sort_order>60</sort_order>
|
6157 |
+
<show_in_default>1</show_in_default>
|
6158 |
+
<show_in_website>1</show_in_website>
|
6159 |
+
<show_in_store>0</show_in_store>
|
6160 |
+
</use_3d_secure>
|
6161 |
+
<config_3ds_rules translate="label comment">
|
6162 |
+
<label>Rules 3D Secure</label>
|
6163 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
6164 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
6165 |
+
<backend_model>hipay/rule_config</backend_model>
|
6166 |
+
<sort_order>61</sort_order>
|
6167 |
+
<show_in_default>1</show_in_default>
|
6168 |
+
<show_in_website>1</show_in_website>
|
6169 |
+
<show_in_store>0</show_in_store>
|
6170 |
+
</config_3ds_rules>
|
6171 |
+
<send_fraud_payment_email translate="label">
|
6172 |
+
<label>Send fraud payment email</label>
|
6173 |
+
<frontend_type>select</frontend_type>
|
6174 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6175 |
+
<sort_order>63</sort_order>
|
6176 |
+
<show_in_default>1</show_in_default>
|
6177 |
+
<show_in_website>1</show_in_website>
|
6178 |
+
<show_in_store>1</show_in_store>
|
6179 |
+
</send_fraud_payment_email>
|
6180 |
+
<!-- @deprecated since version 1.2.6 -->
|
6181 |
+
<!-- <allow_split_payment translate="label">
|
6182 |
+
<label>Use Split Payment</label>
|
6183 |
+
<frontend_type>select</frontend_type>
|
6184 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
6185 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6186 |
+
<sort_order>65</sort_order>
|
6187 |
+
<show_in_default>1</show_in_default>
|
6188 |
+
<show_in_website>1</show_in_website>
|
6189 |
+
<show_in_store>0</show_in_store>
|
6190 |
+
</allow_split_payment>
|
6191 |
+
<split_payment_profile translate="label">
|
6192 |
+
<label>Payment Profile</label>
|
6193 |
+
<frontend_type>multiselect</frontend_type>
|
6194 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
6195 |
+
<sort_order>66</sort_order>
|
6196 |
+
<show_in_default>1</show_in_default>
|
6197 |
+
<show_in_website>1</show_in_website>
|
6198 |
+
<show_in_store>0</show_in_store>
|
6199 |
+
</split_payment_profile>
|
6200 |
+
<min_order_total_split_payment translate="label">
|
6201 |
+
<label>Minimum Order Total for Split Payment</label>
|
6202 |
+
<frontend_type>text</frontend_type>
|
6203 |
+
<sort_order>68</sort_order>
|
6204 |
+
<show_in_default>1</show_in_default>
|
6205 |
+
<show_in_website>1</show_in_website>
|
6206 |
+
<show_in_store>1</show_in_store>
|
6207 |
+
</min_order_total_split_payment> -->
|
6208 |
+
<allow_use_oneclick translate="label">
|
6209 |
+
<label>Use Oneclick</label>
|
6210 |
+
<frontend_type>select</frontend_type>
|
6211 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6212 |
+
<sort_order>70</sort_order>
|
6213 |
+
<show_in_default>1</show_in_default>
|
6214 |
+
<show_in_website>1</show_in_website>
|
6215 |
+
<show_in_store>0</show_in_store>
|
6216 |
+
</allow_use_oneclick>
|
6217 |
+
<filter_oneclick translate="label comment">
|
6218 |
+
<label>Rules Oneclick</label>
|
6219 |
+
<comment>Configure Rules to activate oneclick</comment>
|
6220 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
6221 |
+
<backend_model>hipay/rule_config</backend_model>
|
6222 |
+
<sort_order>80</sort_order>
|
6223 |
+
<show_in_default>1</show_in_default>
|
6224 |
+
<show_in_website>1</show_in_website>
|
6225 |
+
<show_in_store>0</show_in_store>
|
6226 |
+
</filter_oneclick>
|
6227 |
+
<re_add_to_cart translate="label comment">
|
6228 |
+
<label>Add product to cart</label>
|
6229 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
6230 |
+
<frontend_type>select</frontend_type>
|
6231 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6232 |
+
<sort_order>95</sort_order>
|
6233 |
+
<show_in_default>1</show_in_default>
|
6234 |
+
<show_in_website>1</show_in_website>
|
6235 |
+
<show_in_store>0</show_in_store>
|
6236 |
+
</re_add_to_cart>
|
6237 |
+
<cancel_pending_order translate="label comment">
|
6238 |
+
<label>Cancel pending order</label>
|
6239 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
6240 |
+
<frontend_type>select</frontend_type>
|
6241 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6242 |
+
<sort_order>97</sort_order>
|
6243 |
+
<show_in_default>1</show_in_default>
|
6244 |
+
<show_in_website>1</show_in_website>
|
6245 |
+
<show_in_store>0</show_in_store>
|
6246 |
+
</cancel_pending_order>
|
6247 |
+
<send_fraud_payment_email translate="label">
|
6248 |
+
<label>Send fraud payment email</label>
|
6249 |
+
<frontend_type>select</frontend_type>
|
6250 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6251 |
+
<sort_order>99</sort_order>
|
6252 |
+
<show_in_default>1</show_in_default>
|
6253 |
+
<show_in_website>1</show_in_website>
|
6254 |
+
<show_in_store>1</show_in_store>
|
6255 |
+
</send_fraud_payment_email>
|
6256 |
+
<allowspecific translate="label">
|
6257 |
+
<label>Payment from applicable countries</label>
|
6258 |
+
<frontend_type>allowspecific</frontend_type>
|
6259 |
+
<sort_order>100</sort_order>
|
6260 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
6261 |
+
<show_in_default>1</show_in_default>
|
6262 |
+
<show_in_website>1</show_in_website>
|
6263 |
+
<show_in_store>1</show_in_store>
|
6264 |
+
</allowspecific>
|
6265 |
+
<specificcountry translate="label">
|
6266 |
+
<label>Payment from Specific countries</label>
|
6267 |
+
<frontend_type>multiselect</frontend_type>
|
6268 |
+
<sort_order>110</sort_order>
|
6269 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
6270 |
+
<show_in_default>1</show_in_default>
|
6271 |
+
<show_in_website>1</show_in_website>
|
6272 |
+
<show_in_store>1</show_in_store>
|
6273 |
+
</specificcountry>
|
6274 |
+
<currency translate="label">
|
6275 |
+
<label>Accepted Currency</label>
|
6276 |
+
<frontend_type>select</frontend_type>
|
6277 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
6278 |
+
<sort_order>111</sort_order>
|
6279 |
+
<show_in_default>1</show_in_default>
|
6280 |
+
<show_in_website>1</show_in_website>
|
6281 |
+
<show_in_store>1</show_in_store>
|
6282 |
+
</currency>
|
6283 |
+
<min_order_total translate="label">
|
6284 |
+
<label>Minimum Order Total</label>
|
6285 |
+
<frontend_type>text</frontend_type>
|
6286 |
+
<sort_order>120</sort_order>
|
6287 |
+
<show_in_default>1</show_in_default>
|
6288 |
+
<show_in_website>1</show_in_website>
|
6289 |
+
<show_in_store>1</show_in_store>
|
6290 |
+
</min_order_total>
|
6291 |
+
<max_order_total translate="label">
|
6292 |
+
<label>Maximum Order Total</label>
|
6293 |
+
<frontend_type>text</frontend_type>
|
6294 |
+
<sort_order>121</sort_order>
|
6295 |
+
<show_in_default>1</show_in_default>
|
6296 |
+
<show_in_website>1</show_in_website>
|
6297 |
+
<show_in_store>1</show_in_store>
|
6298 |
+
</max_order_total>
|
6299 |
+
<sort_order translate="label">
|
6300 |
+
<label>Sort Order</label>
|
6301 |
+
<frontend_type>text</frontend_type>
|
6302 |
+
<sort_order>130</sort_order>
|
6303 |
+
<show_in_default>1</show_in_default>
|
6304 |
+
<show_in_website>1</show_in_website>
|
6305 |
+
<show_in_store>1</show_in_store>
|
6306 |
+
</sort_order>
|
6307 |
+
<debug translate="label">
|
6308 |
+
<label>Enable debug log</label>
|
6309 |
+
<comment></comment>
|
6310 |
+
<frontend_type>select</frontend_type>
|
6311 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6312 |
+
<sort_order>150</sort_order>
|
6313 |
+
<show_in_default>1</show_in_default>
|
6314 |
+
<show_in_website>1</show_in_website>
|
6315 |
+
<show_in_store>0</show_in_store>
|
6316 |
+
</debug>
|
6317 |
+
<is_test_mode translate="label comment">
|
6318 |
+
<label>Enable test mode</label>
|
6319 |
+
<comment></comment>
|
6320 |
+
<frontend_type>select</frontend_type>
|
6321 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6322 |
+
<sort_order>200</sort_order>
|
6323 |
+
<show_in_default>1</show_in_default>
|
6324 |
+
<show_in_website>1</show_in_website>
|
6325 |
+
<show_in_store>1</show_in_store>
|
6326 |
+
</is_test_mode>
|
6327 |
+
</fields>
|
6328 |
+
</hipay_bradesco>
|
6329 |
+
<hipay_banco translate="label" module="hipay">
|
6330 |
+
<label>HiPay Enterprise Banco do brasil</label>
|
6331 |
+
<frontend_type>text</frontend_type>
|
6332 |
+
<sort_order>243</sort_order>
|
6333 |
+
<show_in_default>1</show_in_default>
|
6334 |
+
<show_in_website>1</show_in_website>
|
6335 |
+
<show_in_store>1</show_in_store>
|
6336 |
+
<fields>
|
6337 |
+
<active translate="label">
|
6338 |
+
<label>Enabled</label>
|
6339 |
+
<frontend_type>select</frontend_type>
|
6340 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6341 |
+
<sort_order>10</sort_order>
|
6342 |
+
<show_in_default>1</show_in_default>
|
6343 |
+
<show_in_website>1</show_in_website>
|
6344 |
+
<show_in_store>1</show_in_store>
|
6345 |
+
</active>
|
6346 |
+
<title translate="label">
|
6347 |
+
<label>Title</label>
|
6348 |
+
<frontend_type>text</frontend_type>
|
6349 |
+
<sort_order>20</sort_order>
|
6350 |
+
<show_in_default>1</show_in_default>
|
6351 |
+
<show_in_website>1</show_in_website>
|
6352 |
+
<show_in_store>1</show_in_store>
|
6353 |
+
</title>
|
6354 |
+
<order_status_payment_accepted translate="label">
|
6355 |
+
<label>Order status when payment accepted</label>
|
6356 |
+
<frontend_type>select</frontend_type>
|
6357 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
6358 |
+
<sort_order>23</sort_order>
|
6359 |
+
<show_in_default>1</show_in_default>
|
6360 |
+
<show_in_website>1</show_in_website>
|
6361 |
+
<show_in_store>0</show_in_store>
|
6362 |
+
</order_status_payment_accepted>
|
6363 |
+
<order_status_payment_refused translate="label">
|
6364 |
+
<label>Order status when payment refused</label>
|
6365 |
+
<frontend_type>select</frontend_type>
|
6366 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
6367 |
+
<sort_order>24</sort_order>
|
6368 |
+
<show_in_default>1</show_in_default>
|
6369 |
+
<show_in_website>1</show_in_website>
|
6370 |
+
<show_in_store>0</show_in_store>
|
6371 |
+
</order_status_payment_refused>
|
6372 |
+
<order_status_payment_canceled translate="label">
|
6373 |
+
<label>Order status when payment canceled by customer</label>
|
6374 |
+
<frontend_type>select</frontend_type>
|
6375 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
6376 |
+
<sort_order>25</sort_order>
|
6377 |
+
<show_in_default>1</show_in_default>
|
6378 |
+
<show_in_website>1</show_in_website>
|
6379 |
+
<show_in_store>0</show_in_store>
|
6380 |
+
</order_status_payment_canceled>
|
6381 |
+
<hipay_status_validate_order translate="label">
|
6382 |
+
<label>Hipay status to validate order</label>
|
6383 |
+
<frontend_type>select</frontend_type>
|
6384 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
6385 |
+
<sort_order>26</sort_order>
|
6386 |
+
<show_in_default>1</show_in_default>
|
6387 |
+
<show_in_website>1</show_in_website>
|
6388 |
+
<show_in_store>0</show_in_store>
|
6389 |
+
</hipay_status_validate_order>
|
6390 |
+
<success_redirect_page translate="label">
|
6391 |
+
<label>Redirect page success</label>
|
6392 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
6393 |
+
<frontend_type>text</frontend_type>
|
6394 |
+
<sort_order>26</sort_order>
|
6395 |
+
<show_in_default>1</show_in_default>
|
6396 |
+
<show_in_website>1</show_in_website>
|
6397 |
+
<show_in_store>0</show_in_store>
|
6398 |
+
</success_redirect_page>
|
6399 |
+
<pending_redirect_page translate="label">
|
6400 |
+
<label>Redirect page pending status</label>
|
6401 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
6402 |
+
<frontend_type>select</frontend_type>
|
6403 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
6404 |
+
<sort_order>27</sort_order>
|
6405 |
+
<show_in_default>1</show_in_default>
|
6406 |
+
<show_in_website>1</show_in_website>
|
6407 |
+
<show_in_store>0</show_in_store>
|
6408 |
+
</pending_redirect_page>
|
6409 |
+
<payment_action translate="label">
|
6410 |
+
<label>Payment Action</label>
|
6411 |
+
<frontend_type>select</frontend_type>
|
6412 |
+
<source_model>hipay/source_paymentAction</source_model>
|
6413 |
+
<sort_order>28</sort_order>
|
6414 |
+
<show_in_default>1</show_in_default>
|
6415 |
+
<show_in_website>1</show_in_website>
|
6416 |
+
<show_in_store>0</show_in_store>
|
6417 |
+
</payment_action>
|
6418 |
+
<css_url translate="label coment">
|
6419 |
+
<label>Css Url</label>
|
6420 |
+
<comment>Important, HTTPS protocol is required</comment>
|
6421 |
+
<frontend_type>text</frontend_type>
|
6422 |
+
<sort_order>30</sort_order>
|
6423 |
+
<show_in_default>1</show_in_default>
|
6424 |
+
<show_in_website>1</show_in_website>
|
6425 |
+
<show_in_store>1</show_in_store>
|
6426 |
+
</css_url>
|
6427 |
+
<template translate="label">
|
6428 |
+
<label>Page payment template</label>
|
6429 |
+
<frontend_type>select</frontend_type>
|
6430 |
+
<source_model>hipay/source_template</source_model>
|
6431 |
+
<sort_order>35</sort_order>
|
6432 |
+
<show_in_default>1</show_in_default>
|
6433 |
+
<show_in_website>1</show_in_website>
|
6434 |
+
<show_in_store>0</show_in_store>
|
6435 |
+
</template>
|
6436 |
+
<display_iframe translate="label">
|
6437 |
+
<label>Display hosted page in Iframe</label>
|
6438 |
+
<frontend_type>select</frontend_type>
|
6439 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6440 |
+
<sort_order>36</sort_order>
|
6441 |
+
<show_in_default>1</show_in_default>
|
6442 |
+
<show_in_website>1</show_in_website>
|
6443 |
+
<show_in_store>0</show_in_store>
|
6444 |
+
</display_iframe>
|
6445 |
+
<iframe_width translate="label">
|
6446 |
+
<label>iFrame Width</label>
|
6447 |
+
<frontend_type>text</frontend_type>
|
6448 |
+
<sort_order>37</sort_order>
|
6449 |
+
<show_in_default>1</show_in_default>
|
6450 |
+
<show_in_website>1</show_in_website>
|
6451 |
+
<show_in_store>1</show_in_store>
|
6452 |
+
</iframe_width>
|
6453 |
+
<iframe_height translate="label">
|
6454 |
+
<label>iFrame Height</label>
|
6455 |
+
<frontend_type>text</frontend_type>
|
6456 |
+
<sort_order>38</sort_order>
|
6457 |
+
<show_in_default>1</show_in_default>
|
6458 |
+
<show_in_website>1</show_in_website>
|
6459 |
+
<show_in_store>1</show_in_store>
|
6460 |
+
</iframe_height>
|
6461 |
+
<iframe_style translate="label">
|
6462 |
+
<label>iFrame Style</label>
|
6463 |
+
<frontend_type>text</frontend_type>show_in_website
|
6464 |
+
<sort_order>39</sort_order>
|
6465 |
+
<show_in_default>1</show_in_default>
|
6466 |
+
<show_in_website>1</show_in_website>
|
6467 |
+
<show_in_store>1</show_in_store>
|
6468 |
+
</iframe_style>
|
6469 |
+
<iframe_wrapper_style translate="label">
|
6470 |
+
<label>Wrapper iFrame Style</label>
|
6471 |
+
<frontend_type>text</frontend_type>
|
6472 |
+
<sort_order>39</sort_order>
|
6473 |
+
<show_in_default>1</show_in_default>
|
6474 |
+
<show_in_website>1</show_in_website>
|
6475 |
+
<show_in_store>1</show_in_store>
|
6476 |
+
</iframe_wrapper_style>
|
6477 |
+
<display_selector translate="label">
|
6478 |
+
<label>Display card selector</label>
|
6479 |
+
<frontend_type>select</frontend_type>
|
6480 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6481 |
+
<sort_order>40</sort_order>
|
6482 |
+
<show_in_default>1</show_in_default>
|
6483 |
+
<show_in_website>1</show_in_website>
|
6484 |
+
<show_in_store>0</show_in_store>
|
6485 |
+
</display_selector>
|
6486 |
+
<use_3d_secure translate="label">
|
6487 |
+
<label>Use 3D Secure</label>
|
6488 |
+
<frontend_type>select</frontend_type>
|
6489 |
+
<source_model>hipay/source_3ds</source_model>
|
6490 |
+
<sort_order>60</sort_order>
|
6491 |
+
<show_in_default>1</show_in_default>
|
6492 |
+
<show_in_website>1</show_in_website>
|
6493 |
+
<show_in_store>0</show_in_store>
|
6494 |
+
</use_3d_secure>
|
6495 |
+
<config_3ds_rules translate="label comment">
|
6496 |
+
<label>Rules 3D Secure</label>
|
6497 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
6498 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
6499 |
+
<backend_model>hipay/rule_config</backend_model>
|
6500 |
+
<sort_order>61</sort_order>
|
6501 |
+
<show_in_default>1</show_in_default>
|
6502 |
+
<show_in_website>1</show_in_website>
|
6503 |
+
<show_in_store>0</show_in_store>
|
6504 |
+
</config_3ds_rules>
|
6505 |
+
<send_fraud_payment_email translate="label">
|
6506 |
+
<label>Send fraud payment email</label>
|
6507 |
+
<frontend_type>select</frontend_type>
|
6508 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6509 |
+
<sort_order>63</sort_order>
|
6510 |
+
<show_in_default>1</show_in_default>
|
6511 |
+
<show_in_website>1</show_in_website>
|
6512 |
+
<show_in_store>1</show_in_store>
|
6513 |
+
</send_fraud_payment_email>
|
6514 |
+
<!-- @deprecated since version 1.2.6 -->
|
6515 |
+
<!-- <allow_split_payment translate="label">
|
6516 |
+
<label>Use Split Payment</label>
|
6517 |
+
<frontend_type>select</frontend_type>
|
6518 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
6519 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6520 |
+
<sort_order>65</sort_order>
|
6521 |
+
<show_in_default>1</show_in_default>
|
6522 |
+
<show_in_website>1</show_in_website>
|
6523 |
+
<show_in_store>0</show_in_store>
|
6524 |
+
</allow_split_payment>
|
6525 |
+
<split_payment_profile translate="label">
|
6526 |
+
<label>Payment Profile</label>
|
6527 |
+
<frontend_type>multiselect</frontend_type>
|
6528 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
6529 |
+
<sort_order>66</sort_order>
|
6530 |
+
<show_in_default>1</show_in_default>
|
6531 |
+
<show_in_website>1</show_in_website>
|
6532 |
+
<show_in_store>0</show_in_store>
|
6533 |
+
</split_payment_profile>
|
6534 |
+
<min_order_total_split_payment translate="label">
|
6535 |
+
<label>Minimum Order Total for Split Payment</label>
|
6536 |
+
<frontend_type>text</frontend_type>
|
6537 |
+
<sort_order>68</sort_order>
|
6538 |
+
<show_in_default>1</show_in_default>
|
6539 |
+
<show_in_website>1</show_in_website>
|
6540 |
+
<show_in_store>1</show_in_store>
|
6541 |
+
</min_order_total_split_payment> -->
|
6542 |
+
<allow_use_oneclick translate="label">
|
6543 |
+
<label>Use Oneclick</label>
|
6544 |
+
<frontend_type>select</frontend_type>
|
6545 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6546 |
+
<sort_order>70</sort_order>
|
6547 |
+
<show_in_default>1</show_in_default>
|
6548 |
+
<show_in_website>1</show_in_website>
|
6549 |
+
<show_in_store>0</show_in_store>
|
6550 |
+
</allow_use_oneclick>
|
6551 |
+
<filter_oneclick translate="label comment">
|
6552 |
+
<label>Rules Oneclick</label>
|
6553 |
+
<comment>Configure Rules to activate oneclick</comment>
|
6554 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
6555 |
+
<backend_model>hipay/rule_config</backend_model>
|
6556 |
+
<sort_order>80</sort_order>
|
6557 |
+
<show_in_default>1</show_in_default>
|
6558 |
+
<show_in_website>1</show_in_website>
|
6559 |
+
<show_in_store>0</show_in_store>
|
6560 |
+
</filter_oneclick>
|
6561 |
+
<re_add_to_cart translate="label comment">
|
6562 |
+
<label>Add product to cart</label>
|
6563 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
6564 |
+
<frontend_type>select</frontend_type>
|
6565 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6566 |
+
<sort_order>95</sort_order>
|
6567 |
+
<show_in_default>1</show_in_default>
|
6568 |
+
<show_in_website>1</show_in_website>
|
6569 |
+
<show_in_store>0</show_in_store>
|
6570 |
+
</re_add_to_cart>
|
6571 |
+
<cancel_pending_order translate="label comment">
|
6572 |
+
<label>Cancel pending order</label>
|
6573 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
6574 |
+
<frontend_type>select</frontend_type>
|
6575 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6576 |
+
<sort_order>97</sort_order>
|
6577 |
+
<show_in_default>1</show_in_default>
|
6578 |
+
<show_in_website>1</show_in_website>
|
6579 |
+
<show_in_store>0</show_in_store>
|
6580 |
+
</cancel_pending_order>
|
6581 |
+
<send_fraud_payment_email translate="label">
|
6582 |
+
<label>Send fraud payment email</label>
|
6583 |
+
<frontend_type>select</frontend_type>
|
6584 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6585 |
+
<sort_order>99</sort_order>
|
6586 |
+
<show_in_default>1</show_in_default>
|
6587 |
+
<show_in_website>1</show_in_website>
|
6588 |
+
<show_in_store>1</show_in_store>
|
6589 |
+
</send_fraud_payment_email>
|
6590 |
+
<allowspecific translate="label">
|
6591 |
+
<label>Payment from applicable countries</label>
|
6592 |
+
<frontend_type>allowspecific</frontend_type>
|
6593 |
+
<sort_order>100</sort_order>
|
6594 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
6595 |
+
<show_in_default>1</show_in_default>
|
6596 |
+
<show_in_website>1</show_in_website>
|
6597 |
+
<show_in_store>1</show_in_store>
|
6598 |
+
</allowspecific>
|
6599 |
+
<specificcountry translate="label">
|
6600 |
+
<label>Payment from Specific countries</label>
|
6601 |
+
<frontend_type>multiselect</frontend_type>
|
6602 |
+
<sort_order>110</sort_order>
|
6603 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
6604 |
+
<show_in_default>1</show_in_default>
|
6605 |
+
<show_in_website>1</show_in_website>
|
6606 |
+
<show_in_store>1</show_in_store>
|
6607 |
+
</specificcountry>
|
6608 |
+
<currency translate="label">
|
6609 |
+
<label>Accepted Currency</label>
|
6610 |
+
<frontend_type>select</frontend_type>
|
6611 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
6612 |
+
<sort_order>111</sort_order>
|
6613 |
+
<show_in_default>1</show_in_default>
|
6614 |
+
<show_in_website>1</show_in_website>
|
6615 |
+
<show_in_store>1</show_in_store>
|
6616 |
+
</currency>
|
6617 |
+
<min_order_total translate="label">
|
6618 |
+
<label>Minimum Order Total</label>
|
6619 |
+
<frontend_type>text</frontend_type>
|
6620 |
+
<sort_order>120</sort_order>
|
6621 |
+
<show_in_default>1</show_in_default>
|
6622 |
+
<show_in_website>1</show_in_website>
|
6623 |
+
<show_in_store>1</show_in_store>
|
6624 |
+
</min_order_total>
|
6625 |
+
<max_order_total translate="label">
|
6626 |
+
<label>Maximum Order Total</label>
|
6627 |
+
<frontend_type>text</frontend_type>
|
6628 |
+
<sort_order>121</sort_order>
|
6629 |
+
<show_in_default>1</show_in_default>
|
6630 |
+
<show_in_website>1</show_in_website>
|
6631 |
+
<show_in_store>1</show_in_store>
|
6632 |
+
</max_order_total>
|
6633 |
+
<sort_order translate="label">
|
6634 |
+
<label>Sort Order</label>
|
6635 |
+
<frontend_type>text</frontend_type>
|
6636 |
+
<sort_order>130</sort_order>
|
6637 |
+
<show_in_default>1</show_in_default>
|
6638 |
+
<show_in_website>1</show_in_website>
|
6639 |
+
<show_in_store>1</show_in_store>
|
6640 |
+
</sort_order>
|
6641 |
+
<debug translate="label">
|
6642 |
+
<label>Enable debug log</label>
|
6643 |
+
<comment></comment>
|
6644 |
+
<frontend_type>select</frontend_type>
|
6645 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6646 |
+
<sort_order>150</sort_order>
|
6647 |
+
<show_in_default>1</show_in_default>
|
6648 |
+
<show_in_website>1</show_in_website>
|
6649 |
+
<show_in_store>0</show_in_store>
|
6650 |
+
</debug>
|
6651 |
+
<is_test_mode translate="label comment">
|
6652 |
+
<label>Enable test mode</label>
|
6653 |
+
<comment></comment>
|
6654 |
+
<frontend_type>select</frontend_type>
|
6655 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6656 |
+
<sort_order>200</sort_order>
|
6657 |
+
<show_in_default>1</show_in_default>
|
6658 |
+
<show_in_website>1</show_in_website>
|
6659 |
+
<show_in_store>1</show_in_store>
|
6660 |
+
</is_test_mode>
|
6661 |
+
</fields>
|
6662 |
+
</hipay_banco>
|
6663 |
+
<hipay_santander translate="label" module="hipay">
|
6664 |
+
<label>HiPay Enterprise Santander HomeBanking</label>
|
6665 |
+
<frontend_type>text</frontend_type>
|
6666 |
+
<sort_order>244</sort_order>
|
6667 |
+
<show_in_default>1</show_in_default>
|
6668 |
+
<show_in_website>1</show_in_website>
|
6669 |
+
<show_in_store>1</show_in_store>
|
6670 |
+
<fields>
|
6671 |
+
<active translate="label">
|
6672 |
+
<label>Enabled</label>
|
6673 |
+
<frontend_type>select</frontend_type>
|
6674 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6675 |
+
<sort_order>10</sort_order>
|
6676 |
+
<show_in_default>1</show_in_default>
|
6677 |
+
<show_in_website>1</show_in_website>
|
6678 |
+
<show_in_store>1</show_in_store>
|
6679 |
+
</active>
|
6680 |
+
<title translate="label">
|
6681 |
+
<label>Title</label>
|
6682 |
+
<frontend_type>text</frontend_type>
|
6683 |
+
<sort_order>20</sort_order>
|
6684 |
+
<show_in_default>1</show_in_default>
|
6685 |
+
<show_in_website>1</show_in_website>
|
6686 |
+
<show_in_store>1</show_in_store>
|
6687 |
+
</title>
|
6688 |
+
<order_status_payment_accepted translate="label">
|
6689 |
+
<label>Order status when payment accepted</label>
|
6690 |
+
<frontend_type>select</frontend_type>
|
6691 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
6692 |
+
<sort_order>23</sort_order>
|
6693 |
+
<show_in_default>1</show_in_default>
|
6694 |
+
<show_in_website>1</show_in_website>
|
6695 |
+
<show_in_store>0</show_in_store>
|
6696 |
+
</order_status_payment_accepted>
|
6697 |
+
<order_status_payment_refused translate="label">
|
6698 |
+
<label>Order status when payment refused</label>
|
6699 |
+
<frontend_type>select</frontend_type>
|
6700 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
6701 |
+
<sort_order>24</sort_order>
|
6702 |
+
<show_in_default>1</show_in_default>
|
6703 |
+
<show_in_website>1</show_in_website>
|
6704 |
+
<show_in_store>0</show_in_store>
|
6705 |
+
</order_status_payment_refused>
|
6706 |
+
<order_status_payment_canceled translate="label">
|
6707 |
+
<label>Order status when payment canceled by customer</label>
|
6708 |
+
<frontend_type>select</frontend_type>
|
6709 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
6710 |
+
<sort_order>25</sort_order>
|
6711 |
+
<show_in_default>1</show_in_default>
|
6712 |
+
<show_in_website>1</show_in_website>
|
6713 |
+
<show_in_store>0</show_in_store>
|
6714 |
+
</order_status_payment_canceled>
|
6715 |
+
<hipay_status_validate_order translate="label">
|
6716 |
+
<label>Hipay status to validate order</label>
|
6717 |
+
<frontend_type>select</frontend_type>
|
6718 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
6719 |
+
<sort_order>26</sort_order>
|
6720 |
+
<show_in_default>1</show_in_default>
|
6721 |
+
<show_in_website>1</show_in_website>
|
6722 |
+
<show_in_store>0</show_in_store>
|
6723 |
+
</hipay_status_validate_order>
|
6724 |
+
<success_redirect_page translate="label">
|
6725 |
+
<label>Redirect page success</label>
|
6726 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
6727 |
+
<frontend_type>text</frontend_type>
|
6728 |
+
<sort_order>26</sort_order>
|
6729 |
+
<show_in_default>1</show_in_default>
|
6730 |
+
<show_in_website>1</show_in_website>
|
6731 |
+
<show_in_store>0</show_in_store>
|
6732 |
+
</success_redirect_page>
|
6733 |
+
<pending_redirect_page translate="label">
|
6734 |
+
<label>Redirect page pending status</label>
|
6735 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
6736 |
+
<frontend_type>select</frontend_type>
|
6737 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
6738 |
+
<sort_order>27</sort_order>
|
6739 |
+
<show_in_default>1</show_in_default>
|
6740 |
+
<show_in_website>1</show_in_website>
|
6741 |
+
<show_in_store>0</show_in_store>
|
6742 |
+
</pending_redirect_page>
|
6743 |
+
<payment_action translate="label">
|
6744 |
+
<label>Payment Action</label>
|
6745 |
+
<frontend_type>select</frontend_type>
|
6746 |
+
<source_model>hipay/source_paymentAction</source_model>
|
6747 |
+
<sort_order>28</sort_order>
|
6748 |
+
<show_in_default>1</show_in_default>
|
6749 |
+
<show_in_website>1</show_in_website>
|
6750 |
+
<show_in_store>0</show_in_store>
|
6751 |
+
</payment_action>
|
6752 |
+
<css_url translate="label coment">
|
6753 |
+
<label>Css Url</label>
|
6754 |
+
<comment>Important, HTTPS protocol is required</comment>
|
6755 |
+
<frontend_type>text</frontend_type>
|
6756 |
+
<sort_order>30</sort_order>
|
6757 |
+
<show_in_default>1</show_in_default>
|
6758 |
+
<show_in_website>1</show_in_website>
|
6759 |
+
<show_in_store>1</show_in_store>
|
6760 |
+
</css_url>
|
6761 |
+
<template translate="label">
|
6762 |
+
<label>Page payment template</label>
|
6763 |
+
<frontend_type>select</frontend_type>
|
6764 |
+
<source_model>hipay/source_template</source_model>
|
6765 |
+
<sort_order>35</sort_order>
|
6766 |
+
<show_in_default>1</show_in_default>
|
6767 |
+
<show_in_website>1</show_in_website>
|
6768 |
+
<show_in_store>0</show_in_store>
|
6769 |
+
</template>
|
6770 |
+
<display_iframe translate="label">
|
6771 |
+
<label>Display hosted page in Iframe</label>
|
6772 |
+
<frontend_type>select</frontend_type>
|
6773 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6774 |
+
<sort_order>36</sort_order>
|
6775 |
+
<show_in_default>1</show_in_default>
|
6776 |
+
<show_in_website>1</show_in_website>
|
6777 |
+
<show_in_store>0</show_in_store>
|
6778 |
+
</display_iframe>
|
6779 |
+
<iframe_width translate="label">
|
6780 |
+
<label>iFrame Width</label>
|
6781 |
+
<frontend_type>text</frontend_type>
|
6782 |
+
<sort_order>37</sort_order>
|
6783 |
+
<show_in_default>1</show_in_default>
|
6784 |
+
<show_in_website>1</show_in_website>
|
6785 |
+
<show_in_store>1</show_in_store>
|
6786 |
+
</iframe_width>
|
6787 |
+
<iframe_height translate="label">
|
6788 |
+
<label>iFrame Height</label>
|
6789 |
+
<frontend_type>text</frontend_type>
|
6790 |
+
<sort_order>38</sort_order>
|
6791 |
+
<show_in_default>1</show_in_default>
|
6792 |
+
<show_in_website>1</show_in_website>
|
6793 |
+
<show_in_store>1</show_in_store>
|
6794 |
+
</iframe_height>
|
6795 |
+
<iframe_style translate="label">
|
6796 |
+
<label>iFrame Style</label>
|
6797 |
+
<frontend_type>text</frontend_type>show_in_website
|
6798 |
+
<sort_order>39</sort_order>
|
6799 |
+
<show_in_default>1</show_in_default>
|
6800 |
+
<show_in_website>1</show_in_website>
|
6801 |
+
<show_in_store>1</show_in_store>
|
6802 |
+
</iframe_style>
|
6803 |
+
<iframe_wrapper_style translate="label">
|
6804 |
+
<label>Wrapper iFrame Style</label>
|
6805 |
+
<frontend_type>text</frontend_type>
|
6806 |
+
<sort_order>39</sort_order>
|
6807 |
+
<show_in_default>1</show_in_default>
|
6808 |
+
<show_in_website>1</show_in_website>
|
6809 |
+
<show_in_store>1</show_in_store>
|
6810 |
+
</iframe_wrapper_style>
|
6811 |
+
<display_selector translate="label">
|
6812 |
+
<label>Display card selector</label>
|
6813 |
+
<frontend_type>select</frontend_type>
|
6814 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6815 |
+
<sort_order>40</sort_order>
|
6816 |
+
<show_in_default>1</show_in_default>
|
6817 |
+
<show_in_website>1</show_in_website>
|
6818 |
+
<show_in_store>0</show_in_store>
|
6819 |
+
</display_selector>
|
6820 |
+
<use_3d_secure translate="label">
|
6821 |
+
<label>Use 3D Secure</label>
|
6822 |
+
<frontend_type>select</frontend_type>
|
6823 |
+
<source_model>hipay/source_3ds</source_model>
|
6824 |
+
<sort_order>60</sort_order>
|
6825 |
+
<show_in_default>1</show_in_default>
|
6826 |
+
<show_in_website>1</show_in_website>
|
6827 |
+
<show_in_store>0</show_in_store>
|
6828 |
+
</use_3d_secure>
|
6829 |
+
<config_3ds_rules translate="label comment">
|
6830 |
+
<label>Rules 3D Secure</label>
|
6831 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
6832 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
6833 |
+
<backend_model>hipay/rule_config</backend_model>
|
6834 |
+
<sort_order>61</sort_order>
|
6835 |
+
<show_in_default>1</show_in_default>
|
6836 |
+
<show_in_website>1</show_in_website>
|
6837 |
+
<show_in_store>0</show_in_store>
|
6838 |
+
</config_3ds_rules>
|
6839 |
+
<send_fraud_payment_email translate="label">
|
6840 |
+
<label>Send fraud payment email</label>
|
6841 |
+
<frontend_type>select</frontend_type>
|
6842 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6843 |
+
<sort_order>63</sort_order>
|
6844 |
+
<show_in_default>1</show_in_default>
|
6845 |
+
<show_in_website>1</show_in_website>
|
6846 |
+
<show_in_store>1</show_in_store>
|
6847 |
+
</send_fraud_payment_email>
|
6848 |
+
<!-- @deprecated since version 1.2.6 -->
|
6849 |
+
<!-- <allow_split_payment translate="label">
|
6850 |
+
<label>Use Split Payment</label>
|
6851 |
+
<frontend_type>select</frontend_type>
|
6852 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
6853 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6854 |
+
<sort_order>65</sort_order>
|
6855 |
+
<show_in_default>1</show_in_default>
|
6856 |
+
<show_in_website>1</show_in_website>
|
6857 |
+
<show_in_store>0</show_in_store>
|
6858 |
+
</allow_split_payment>
|
6859 |
+
<split_payment_profile translate="label">
|
6860 |
+
<label>Payment Profile</label>
|
6861 |
+
<frontend_type>multiselect</frontend_type>
|
6862 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
6863 |
+
<sort_order>66</sort_order>
|
6864 |
+
<show_in_default>1</show_in_default>
|
6865 |
+
<show_in_website>1</show_in_website>
|
6866 |
+
<show_in_store>0</show_in_store>
|
6867 |
+
</split_payment_profile>
|
6868 |
+
<min_order_total_split_payment translate="label">
|
6869 |
+
<label>Minimum Order Total for Split Payment</label>
|
6870 |
+
<frontend_type>text</frontend_type>
|
6871 |
+
<sort_order>68</sort_order>
|
6872 |
+
<show_in_default>1</show_in_default>
|
6873 |
+
<show_in_website>1</show_in_website>
|
6874 |
+
<show_in_store>1</show_in_store>
|
6875 |
+
</min_order_total_split_payment> -->
|
6876 |
+
<allow_use_oneclick translate="label">
|
6877 |
+
<label>Use Oneclick</label>
|
6878 |
+
<frontend_type>select</frontend_type>
|
6879 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6880 |
+
<sort_order>70</sort_order>
|
6881 |
+
<show_in_default>1</show_in_default>
|
6882 |
+
<show_in_website>1</show_in_website>
|
6883 |
+
<show_in_store>0</show_in_store>
|
6884 |
+
</allow_use_oneclick>
|
6885 |
+
<filter_oneclick translate="label comment">
|
6886 |
+
<label>Rules Oneclick</label>
|
6887 |
+
<comment>Configure Rules to activate oneclick</comment>
|
6888 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
6889 |
+
<backend_model>hipay/rule_config</backend_model>
|
6890 |
+
<sort_order>80</sort_order>
|
6891 |
+
<show_in_default>1</show_in_default>
|
6892 |
+
<show_in_website>1</show_in_website>
|
6893 |
+
<show_in_store>0</show_in_store>
|
6894 |
+
</filter_oneclick>
|
6895 |
+
<re_add_to_cart translate="label comment">
|
6896 |
+
<label>Add product to cart</label>
|
6897 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
6898 |
+
<frontend_type>select</frontend_type>
|
6899 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6900 |
+
<sort_order>95</sort_order>
|
6901 |
+
<show_in_default>1</show_in_default>
|
6902 |
+
<show_in_website>1</show_in_website>
|
6903 |
+
<show_in_store>0</show_in_store>
|
6904 |
+
</re_add_to_cart>
|
6905 |
+
<cancel_pending_order translate="label comment">
|
6906 |
+
<label>Cancel pending order</label>
|
6907 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
6908 |
+
<frontend_type>select</frontend_type>
|
6909 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6910 |
+
<sort_order>97</sort_order>
|
6911 |
+
<show_in_default>1</show_in_default>
|
6912 |
+
<show_in_website>1</show_in_website>
|
6913 |
+
<show_in_store>0</show_in_store>
|
6914 |
+
</cancel_pending_order>
|
6915 |
+
<send_fraud_payment_email translate="label">
|
6916 |
+
<label>Send fraud payment email</label>
|
6917 |
+
<frontend_type>select</frontend_type>
|
6918 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6919 |
+
<sort_order>99</sort_order>
|
6920 |
+
<show_in_default>1</show_in_default>
|
6921 |
+
<show_in_website>1</show_in_website>
|
6922 |
+
<show_in_store>1</show_in_store>
|
6923 |
+
</send_fraud_payment_email>
|
6924 |
+
<allowspecific translate="label">
|
6925 |
+
<label>Payment from applicable countries</label>
|
6926 |
+
<frontend_type>allowspecific</frontend_type>
|
6927 |
+
<sort_order>100</sort_order>
|
6928 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
6929 |
+
<show_in_default>1</show_in_default>
|
6930 |
+
<show_in_website>1</show_in_website>
|
6931 |
+
<show_in_store>1</show_in_store>
|
6932 |
+
</allowspecific>
|
6933 |
+
<specificcountry translate="label">
|
6934 |
+
<label>Payment from Specific countries</label>
|
6935 |
+
<frontend_type>multiselect</frontend_type>
|
6936 |
+
<sort_order>110</sort_order>
|
6937 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
6938 |
+
<show_in_default>1</show_in_default>
|
6939 |
+
<show_in_website>1</show_in_website>
|
6940 |
+
<show_in_store>1</show_in_store>
|
6941 |
+
</specificcountry>
|
6942 |
+
<currency translate="label">
|
6943 |
+
<label>Accepted Currency</label>
|
6944 |
+
<frontend_type>select</frontend_type>
|
6945 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
6946 |
+
<sort_order>111</sort_order>
|
6947 |
+
<show_in_default>1</show_in_default>
|
6948 |
+
<show_in_website>1</show_in_website>
|
6949 |
+
<show_in_store>1</show_in_store>
|
6950 |
+
</currency>
|
6951 |
+
<min_order_total translate="label">
|
6952 |
+
<label>Minimum Order Total</label>
|
6953 |
+
<frontend_type>text</frontend_type>
|
6954 |
+
<sort_order>120</sort_order>
|
6955 |
+
<show_in_default>1</show_in_default>
|
6956 |
+
<show_in_website>1</show_in_website>
|
6957 |
+
<show_in_store>1</show_in_store>
|
6958 |
+
</min_order_total>
|
6959 |
+
<max_order_total translate="label">
|
6960 |
+
<label>Maximum Order Total</label>
|
6961 |
+
<frontend_type>text</frontend_type>
|
6962 |
+
<sort_order>121</sort_order>
|
6963 |
+
<show_in_default>1</show_in_default>
|
6964 |
+
<show_in_website>1</show_in_website>
|
6965 |
+
<show_in_store>1</show_in_store>
|
6966 |
+
</max_order_total>
|
6967 |
+
<sort_order translate="label">
|
6968 |
+
<label>Sort Order</label>
|
6969 |
+
<frontend_type>text</frontend_type>
|
6970 |
+
<sort_order>130</sort_order>
|
6971 |
+
<show_in_default>1</show_in_default>
|
6972 |
+
<show_in_website>1</show_in_website>
|
6973 |
+
<show_in_store>1</show_in_store>
|
6974 |
+
</sort_order>
|
6975 |
+
<debug translate="label">
|
6976 |
+
<label>Enable debug log</label>
|
6977 |
+
<comment></comment>
|
6978 |
+
<frontend_type>select</frontend_type>
|
6979 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6980 |
+
<sort_order>150</sort_order>
|
6981 |
+
<show_in_default>1</show_in_default>
|
6982 |
+
<show_in_website>1</show_in_website>
|
6983 |
+
<show_in_store>0</show_in_store>
|
6984 |
+
</debug>
|
6985 |
+
<is_test_mode translate="label comment">
|
6986 |
+
<label>Enable test mode</label>
|
6987 |
+
<comment></comment>
|
6988 |
+
<frontend_type>select</frontend_type>
|
6989 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
6990 |
+
<sort_order>200</sort_order>
|
6991 |
+
<show_in_default>1</show_in_default>
|
6992 |
+
<show_in_website>1</show_in_website>
|
6993 |
+
<show_in_store>1</show_in_store>
|
6994 |
+
</is_test_mode>
|
6995 |
+
</fields>
|
6996 |
+
</hipay_santander>
|
6997 |
+
<hipay_aura translate="label" module="hipay">
|
6998 |
+
<label>HiPay Enterprise Aura</label>
|
6999 |
+
<frontend_type>text</frontend_type>
|
7000 |
+
<sort_order>245</sort_order>
|
7001 |
+
<show_in_default>1</show_in_default>
|
7002 |
+
<show_in_website>1</show_in_website>
|
7003 |
+
<show_in_store>1</show_in_store>
|
7004 |
+
<fields>
|
7005 |
+
<active translate="label">
|
7006 |
+
<label>Enabled</label>
|
7007 |
+
<frontend_type>select</frontend_type>
|
7008 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7009 |
+
<sort_order>10</sort_order>
|
7010 |
+
<show_in_default>1</show_in_default>
|
7011 |
+
<show_in_website>1</show_in_website>
|
7012 |
+
<show_in_store>1</show_in_store>
|
7013 |
+
</active>
|
7014 |
+
<title translate="label">
|
7015 |
+
<label>Title</label>
|
7016 |
+
<frontend_type>text</frontend_type>
|
7017 |
+
<sort_order>20</sort_order>
|
7018 |
+
<show_in_default>1</show_in_default>
|
7019 |
+
<show_in_website>1</show_in_website>
|
7020 |
+
<show_in_store>1</show_in_store>
|
7021 |
+
</title>
|
7022 |
+
<order_status_payment_accepted translate="label">
|
7023 |
+
<label>Order status when payment accepted</label>
|
7024 |
+
<frontend_type>select</frontend_type>
|
7025 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
7026 |
+
<sort_order>23</sort_order>
|
7027 |
+
<show_in_default>1</show_in_default>
|
7028 |
+
<show_in_website>1</show_in_website>
|
7029 |
+
<show_in_store>0</show_in_store>
|
7030 |
+
</order_status_payment_accepted>
|
7031 |
+
<order_status_payment_refused translate="label">
|
7032 |
+
<label>Order status when payment refused</label>
|
7033 |
+
<frontend_type>select</frontend_type>
|
7034 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
7035 |
+
<sort_order>24</sort_order>
|
7036 |
+
<show_in_default>1</show_in_default>
|
7037 |
+
<show_in_website>1</show_in_website>
|
7038 |
+
<show_in_store>0</show_in_store>
|
7039 |
+
</order_status_payment_refused>
|
7040 |
+
<order_status_payment_canceled translate="label">
|
7041 |
+
<label>Order status when payment canceled by customer</label>
|
7042 |
+
<frontend_type>select</frontend_type>
|
7043 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
7044 |
+
<sort_order>25</sort_order>
|
7045 |
+
<show_in_default>1</show_in_default>
|
7046 |
+
<show_in_website>1</show_in_website>
|
7047 |
+
<show_in_store>0</show_in_store>
|
7048 |
+
</order_status_payment_canceled>
|
7049 |
+
<hipay_status_validate_order translate="label">
|
7050 |
+
<label>Hipay status to validate order</label>
|
7051 |
+
<frontend_type>select</frontend_type>
|
7052 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
7053 |
+
<sort_order>26</sort_order>
|
7054 |
+
<show_in_default>1</show_in_default>
|
7055 |
+
<show_in_website>1</show_in_website>
|
7056 |
+
<show_in_store>0</show_in_store>
|
7057 |
+
</hipay_status_validate_order>
|
7058 |
+
<success_redirect_page translate="label">
|
7059 |
+
<label>Redirect page success</label>
|
7060 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
7061 |
+
<frontend_type>text</frontend_type>
|
7062 |
+
<sort_order>26</sort_order>
|
7063 |
+
<show_in_default>1</show_in_default>
|
7064 |
+
<show_in_website>1</show_in_website>
|
7065 |
+
<show_in_store>0</show_in_store>
|
7066 |
+
</success_redirect_page>
|
7067 |
+
<pending_redirect_page translate="label">
|
7068 |
+
<label>Redirect page pending status</label>
|
7069 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
7070 |
+
<frontend_type>select</frontend_type>
|
7071 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
7072 |
+
<sort_order>27</sort_order>
|
7073 |
+
<show_in_default>1</show_in_default>
|
7074 |
+
<show_in_website>1</show_in_website>
|
7075 |
+
<show_in_store>0</show_in_store>
|
7076 |
+
</pending_redirect_page>
|
7077 |
+
<payment_action translate="label">
|
7078 |
+
<label>Payment Action</label>
|
7079 |
+
<frontend_type>select</frontend_type>
|
7080 |
+
<source_model>hipay/source_paymentAction</source_model>
|
7081 |
+
<sort_order>28</sort_order>
|
7082 |
+
<show_in_default>1</show_in_default>
|
7083 |
+
<show_in_website>1</show_in_website>
|
7084 |
+
<show_in_store>0</show_in_store>
|
7085 |
+
</payment_action>
|
7086 |
+
<css_url translate="label coment">
|
7087 |
+
<label>Css Url</label>
|
7088 |
+
<comment>Important, HTTPS protocol is required</comment>
|
7089 |
+
<frontend_type>text</frontend_type>
|
7090 |
+
<sort_order>30</sort_order>
|
7091 |
+
<show_in_default>1</show_in_default>
|
7092 |
+
<show_in_website>1</show_in_website>
|
7093 |
+
<show_in_store>1</show_in_store>
|
7094 |
+
</css_url>
|
7095 |
+
<template translate="label">
|
7096 |
+
<label>Page payment template</label>
|
7097 |
+
<frontend_type>select</frontend_type>
|
7098 |
+
<source_model>hipay/source_template</source_model>
|
7099 |
+
<sort_order>35</sort_order>
|
7100 |
+
<show_in_default>1</show_in_default>
|
7101 |
+
<show_in_website>1</show_in_website>
|
7102 |
+
<show_in_store>0</show_in_store>
|
7103 |
+
</template>
|
7104 |
+
<display_iframe translate="label">
|
7105 |
+
<label>Display hosted page in Iframe</label>
|
7106 |
+
<frontend_type>select</frontend_type>
|
7107 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7108 |
+
<sort_order>36</sort_order>
|
7109 |
+
<show_in_default>1</show_in_default>
|
7110 |
+
<show_in_website>1</show_in_website>
|
7111 |
+
<show_in_store>0</show_in_store>
|
7112 |
+
</display_iframe>
|
7113 |
+
<iframe_width translate="label">
|
7114 |
+
<label>iFrame Width</label>
|
7115 |
+
<frontend_type>text</frontend_type>
|
7116 |
+
<sort_order>37</sort_order>
|
7117 |
+
<show_in_default>1</show_in_default>
|
7118 |
+
<show_in_website>1</show_in_website>
|
7119 |
+
<show_in_store>1</show_in_store>
|
7120 |
+
</iframe_width>
|
7121 |
+
<iframe_height translate="label">
|
7122 |
+
<label>iFrame Height</label>
|
7123 |
+
<frontend_type>text</frontend_type>
|
7124 |
+
<sort_order>38</sort_order>
|
7125 |
+
<show_in_default>1</show_in_default>
|
7126 |
+
<show_in_website>1</show_in_website>
|
7127 |
+
<show_in_store>1</show_in_store>
|
7128 |
+
</iframe_height>
|
7129 |
+
<iframe_style translate="label">
|
7130 |
+
<label>iFrame Style</label>
|
7131 |
+
<frontend_type>text</frontend_type>show_in_website
|
7132 |
+
<sort_order>39</sort_order>
|
7133 |
+
<show_in_default>1</show_in_default>
|
7134 |
+
<show_in_website>1</show_in_website>
|
7135 |
+
<show_in_store>1</show_in_store>
|
7136 |
+
</iframe_style>
|
7137 |
+
<iframe_wrapper_style translate="label">
|
7138 |
+
<label>Wrapper iFrame Style</label>
|
7139 |
+
<frontend_type>text</frontend_type>
|
7140 |
+
<sort_order>39</sort_order>
|
7141 |
+
<show_in_default>1</show_in_default>
|
7142 |
+
<show_in_website>1</show_in_website>
|
7143 |
+
<show_in_store>1</show_in_store>
|
7144 |
+
</iframe_wrapper_style>
|
7145 |
+
<display_selector translate="label">
|
7146 |
+
<label>Display card selector</label>
|
7147 |
+
<frontend_type>select</frontend_type>
|
7148 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7149 |
+
<sort_order>40</sort_order>
|
7150 |
+
<show_in_default>1</show_in_default>
|
7151 |
+
<show_in_website>1</show_in_website>
|
7152 |
+
<show_in_store>0</show_in_store>
|
7153 |
+
</display_selector>
|
7154 |
+
<use_3d_secure translate="label">
|
7155 |
+
<label>Use 3D Secure</label>
|
7156 |
+
<frontend_type>select</frontend_type>
|
7157 |
+
<source_model>hipay/source_3ds</source_model>
|
7158 |
+
<sort_order>60</sort_order>
|
7159 |
+
<show_in_default>1</show_in_default>
|
7160 |
+
<show_in_website>1</show_in_website>
|
7161 |
+
<show_in_store>0</show_in_store>
|
7162 |
+
</use_3d_secure>
|
7163 |
+
<config_3ds_rules translate="label comment">
|
7164 |
+
<label>Rules 3D Secure</label>
|
7165 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
7166 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
7167 |
+
<backend_model>hipay/rule_config</backend_model>
|
7168 |
+
<sort_order>61</sort_order>
|
7169 |
+
<show_in_default>1</show_in_default>
|
7170 |
+
<show_in_website>1</show_in_website>
|
7171 |
+
<show_in_store>0</show_in_store>
|
7172 |
+
</config_3ds_rules>
|
7173 |
+
<send_fraud_payment_email translate="label">
|
7174 |
+
<label>Send fraud payment email</label>
|
7175 |
+
<frontend_type>select</frontend_type>
|
7176 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7177 |
+
<sort_order>63</sort_order>
|
7178 |
+
<show_in_default>1</show_in_default>
|
7179 |
+
<show_in_website>1</show_in_website>
|
7180 |
+
<show_in_store>1</show_in_store>
|
7181 |
+
</send_fraud_payment_email>
|
7182 |
+
<!-- @deprecated since version 1.2.6 -->
|
7183 |
+
<!-- <allow_split_payment translate="label">
|
7184 |
+
<label>Use Split Payment</label>
|
7185 |
+
<frontend_type>select</frontend_type>
|
7186 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
7187 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7188 |
+
<sort_order>65</sort_order>
|
7189 |
+
<show_in_default>1</show_in_default>
|
7190 |
+
<show_in_website>1</show_in_website>
|
7191 |
+
<show_in_store>0</show_in_store>
|
7192 |
+
</allow_split_payment>
|
7193 |
+
<split_payment_profile translate="label">
|
7194 |
+
<label>Payment Profile</label>
|
7195 |
+
<frontend_type>multiselect</frontend_type>
|
7196 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
7197 |
+
<sort_order>66</sort_order>
|
7198 |
+
<show_in_default>1</show_in_default>
|
7199 |
+
<show_in_website>1</show_in_website>
|
7200 |
+
<show_in_store>0</show_in_store>
|
7201 |
+
</split_payment_profile>
|
7202 |
+
<min_order_total_split_payment translate="label">
|
7203 |
+
<label>Minimum Order Total for Split Payment</label>
|
7204 |
+
<frontend_type>text</frontend_type>
|
7205 |
+
<sort_order>68</sort_order>
|
7206 |
+
<show_in_default>1</show_in_default>
|
7207 |
+
<show_in_website>1</show_in_website>
|
7208 |
+
<show_in_store>1</show_in_store>
|
7209 |
+
</min_order_total_split_payment> -->
|
7210 |
+
<allow_use_oneclick translate="label">
|
7211 |
+
<label>Use Oneclick</label>
|
7212 |
+
<frontend_type>select</frontend_type>
|
7213 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7214 |
+
<sort_order>70</sort_order>
|
7215 |
+
<show_in_default>1</show_in_default>
|
7216 |
+
<show_in_website>1</show_in_website>
|
7217 |
+
<show_in_store>0</show_in_store>
|
7218 |
+
</allow_use_oneclick>
|
7219 |
+
<filter_oneclick translate="label comment">
|
7220 |
+
<label>Rules Oneclick</label>
|
7221 |
+
<comment>Configure Rules to activate oneclick</comment>
|
7222 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
7223 |
+
<backend_model>hipay/rule_config</backend_model>
|
7224 |
+
<sort_order>80</sort_order>
|
7225 |
+
<show_in_default>1</show_in_default>
|
7226 |
+
<show_in_website>1</show_in_website>
|
7227 |
+
<show_in_store>0</show_in_store>
|
7228 |
+
</filter_oneclick>
|
7229 |
+
<re_add_to_cart translate="label comment">
|
7230 |
+
<label>Add product to cart</label>
|
7231 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
7232 |
+
<frontend_type>select</frontend_type>
|
7233 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7234 |
+
<sort_order>95</sort_order>
|
7235 |
+
<show_in_default>1</show_in_default>
|
7236 |
+
<show_in_website>1</show_in_website>
|
7237 |
+
<show_in_store>0</show_in_store>
|
7238 |
+
</re_add_to_cart>
|
7239 |
+
<cancel_pending_order translate="label comment">
|
7240 |
+
<label>Cancel pending order</label>
|
7241 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
7242 |
+
<frontend_type>select</frontend_type>
|
7243 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7244 |
+
<sort_order>97</sort_order>
|
7245 |
+
<show_in_default>1</show_in_default>
|
7246 |
+
<show_in_website>1</show_in_website>
|
7247 |
+
<show_in_store>0</show_in_store>
|
7248 |
+
</cancel_pending_order>
|
7249 |
+
<send_fraud_payment_email translate="label">
|
7250 |
+
<label>Send fraud payment email</label>
|
7251 |
+
<frontend_type>select</frontend_type>
|
7252 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7253 |
+
<sort_order>99</sort_order>
|
7254 |
+
<show_in_default>1</show_in_default>
|
7255 |
+
<show_in_website>1</show_in_website>
|
7256 |
+
<show_in_store>1</show_in_store>
|
7257 |
+
</send_fraud_payment_email>
|
7258 |
+
<allowspecific translate="label">
|
7259 |
+
<label>Payment from applicable countries</label>
|
7260 |
+
<frontend_type>allowspecific</frontend_type>
|
7261 |
+
<sort_order>100</sort_order>
|
7262 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
7263 |
+
<show_in_default>1</show_in_default>
|
7264 |
+
<show_in_website>1</show_in_website>
|
7265 |
+
<show_in_store>1</show_in_store>
|
7266 |
+
</allowspecific>
|
7267 |
+
<specificcountry translate="label">
|
7268 |
+
<label>Payment from Specific countries</label>
|
7269 |
+
<frontend_type>multiselect</frontend_type>
|
7270 |
+
<sort_order>110</sort_order>
|
7271 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
7272 |
+
<show_in_default>1</show_in_default>
|
7273 |
+
<show_in_website>1</show_in_website>
|
7274 |
+
<show_in_store>1</show_in_store>
|
7275 |
+
</specificcountry>
|
7276 |
+
<currency translate="label">
|
7277 |
+
<label>Accepted Currency</label>
|
7278 |
+
<frontend_type>select</frontend_type>
|
7279 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
7280 |
+
<sort_order>111</sort_order>
|
7281 |
+
<show_in_default>1</show_in_default>
|
7282 |
+
<show_in_website>1</show_in_website>
|
7283 |
+
<show_in_store>1</show_in_store>
|
7284 |
+
</currency>
|
7285 |
+
<min_order_total translate="label">
|
7286 |
+
<label>Minimum Order Total</label>
|
7287 |
+
<frontend_type>text</frontend_type>
|
7288 |
+
<sort_order>120</sort_order>
|
7289 |
+
<show_in_default>1</show_in_default>
|
7290 |
+
<show_in_website>1</show_in_website>
|
7291 |
+
<show_in_store>1</show_in_store>
|
7292 |
+
</min_order_total>
|
7293 |
+
<max_order_total translate="label">
|
7294 |
+
<label>Maximum Order Total</label>
|
7295 |
+
<frontend_type>text</frontend_type>
|
7296 |
+
<sort_order>121</sort_order>
|
7297 |
+
<show_in_default>1</show_in_default>
|
7298 |
+
<show_in_website>1</show_in_website>
|
7299 |
+
<show_in_store>1</show_in_store>
|
7300 |
+
</max_order_total>
|
7301 |
+
<sort_order translate="label">
|
7302 |
+
<label>Sort Order</label>
|
7303 |
+
<frontend_type>text</frontend_type>
|
7304 |
+
<sort_order>130</sort_order>
|
7305 |
+
<show_in_default>1</show_in_default>
|
7306 |
+
<show_in_website>1</show_in_website>
|
7307 |
+
<show_in_store>1</show_in_store>
|
7308 |
+
</sort_order>
|
7309 |
+
<debug translate="label">
|
7310 |
+
<label>Enable debug log</label>
|
7311 |
+
<comment></comment>
|
7312 |
+
<frontend_type>select</frontend_type>
|
7313 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7314 |
+
<sort_order>150</sort_order>
|
7315 |
+
<show_in_default>1</show_in_default>
|
7316 |
+
<show_in_website>1</show_in_website>
|
7317 |
+
<show_in_store>0</show_in_store>
|
7318 |
+
</debug>
|
7319 |
+
<is_test_mode translate="label comment">
|
7320 |
+
<label>Enable test mode</label>
|
7321 |
+
<comment></comment>
|
7322 |
+
<frontend_type>select</frontend_type>
|
7323 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7324 |
+
<sort_order>200</sort_order>
|
7325 |
+
<show_in_default>1</show_in_default>
|
7326 |
+
<show_in_website>1</show_in_website>
|
7327 |
+
<show_in_store>1</show_in_store>
|
7328 |
+
</is_test_mode>
|
7329 |
+
</fields>
|
7330 |
+
</hipay_aura>
|
7331 |
+
<hipay_caixa translate="label" module="hipay">
|
7332 |
+
<label>HiPay Enterprise Caixa</label>
|
7333 |
+
<frontend_type>text</frontend_type>
|
7334 |
+
<sort_order>246</sort_order>
|
7335 |
+
<show_in_default>1</show_in_default>
|
7336 |
+
<show_in_website>1</show_in_website>
|
7337 |
+
<show_in_store>1</show_in_store>
|
7338 |
+
<fields>
|
7339 |
+
<active translate="label">
|
7340 |
+
<label>Enabled</label>
|
7341 |
+
<frontend_type>select</frontend_type>
|
7342 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7343 |
+
<sort_order>10</sort_order>
|
7344 |
+
<show_in_default>1</show_in_default>
|
7345 |
+
<show_in_website>1</show_in_website>
|
7346 |
+
<show_in_store>1</show_in_store>
|
7347 |
+
</active>
|
7348 |
+
<title translate="label">
|
7349 |
+
<label>Title</label>
|
7350 |
+
<frontend_type>text</frontend_type>
|
7351 |
+
<sort_order>20</sort_order>
|
7352 |
+
<show_in_default>1</show_in_default>
|
7353 |
+
<show_in_website>1</show_in_website>
|
7354 |
+
<show_in_store>1</show_in_store>
|
7355 |
+
</title>
|
7356 |
+
<order_status_payment_accepted translate="label">
|
7357 |
+
<label>Order status when payment accepted</label>
|
7358 |
+
<frontend_type>select</frontend_type>
|
7359 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
7360 |
+
<sort_order>23</sort_order>
|
7361 |
+
<show_in_default>1</show_in_default>
|
7362 |
+
<show_in_website>1</show_in_website>
|
7363 |
+
<show_in_store>0</show_in_store>
|
7364 |
+
</order_status_payment_accepted>
|
7365 |
+
<order_status_payment_refused translate="label">
|
7366 |
+
<label>Order status when payment refused</label>
|
7367 |
+
<frontend_type>select</frontend_type>
|
7368 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
7369 |
+
<sort_order>24</sort_order>
|
7370 |
+
<show_in_default>1</show_in_default>
|
7371 |
+
<show_in_website>1</show_in_website>
|
7372 |
+
<show_in_store>0</show_in_store>
|
7373 |
+
</order_status_payment_refused>
|
7374 |
+
<order_status_payment_canceled translate="label">
|
7375 |
+
<label>Order status when payment canceled by customer</label>
|
7376 |
+
<frontend_type>select</frontend_type>
|
7377 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
7378 |
+
<sort_order>25</sort_order>
|
7379 |
+
<show_in_default>1</show_in_default>
|
7380 |
+
<show_in_website>1</show_in_website>
|
7381 |
+
<show_in_store>0</show_in_store>
|
7382 |
+
</order_status_payment_canceled>
|
7383 |
+
<hipay_status_validate_order translate="label">
|
7384 |
+
<label>Hipay status to validate order</label>
|
7385 |
+
<frontend_type>select</frontend_type>
|
7386 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
7387 |
+
<sort_order>26</sort_order>
|
7388 |
+
<show_in_default>1</show_in_default>
|
7389 |
+
<show_in_website>1</show_in_website>
|
7390 |
+
<show_in_store>0</show_in_store>
|
7391 |
+
</hipay_status_validate_order>
|
7392 |
+
<success_redirect_page translate="label">
|
7393 |
+
<label>Redirect page success</label>
|
7394 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
7395 |
+
<frontend_type>text</frontend_type>
|
7396 |
+
<sort_order>26</sort_order>
|
7397 |
+
<show_in_default>1</show_in_default>
|
7398 |
+
<show_in_website>1</show_in_website>
|
7399 |
+
<show_in_store>0</show_in_store>
|
7400 |
+
</success_redirect_page>
|
7401 |
+
<pending_redirect_page translate="label">
|
7402 |
+
<label>Redirect page pending status</label>
|
7403 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
7404 |
+
<frontend_type>select</frontend_type>
|
7405 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
7406 |
+
<sort_order>27</sort_order>
|
7407 |
+
<show_in_default>1</show_in_default>
|
7408 |
+
<show_in_website>1</show_in_website>
|
7409 |
+
<show_in_store>0</show_in_store>
|
7410 |
+
</pending_redirect_page>
|
7411 |
+
<payment_action translate="label">
|
7412 |
+
<label>Payment Action</label>
|
7413 |
+
<frontend_type>select</frontend_type>
|
7414 |
+
<source_model>hipay/source_paymentAction</source_model>
|
7415 |
+
<sort_order>28</sort_order>
|
7416 |
+
<show_in_default>1</show_in_default>
|
7417 |
+
<show_in_website>1</show_in_website>
|
7418 |
+
<show_in_store>0</show_in_store>
|
7419 |
+
</payment_action>
|
7420 |
+
<css_url translate="label coment">
|
7421 |
+
<label>Css Url</label>
|
7422 |
+
<comment>Important, HTTPS protocol is required</comment>
|
7423 |
+
<frontend_type>text</frontend_type>
|
7424 |
+
<sort_order>30</sort_order>
|
7425 |
+
<show_in_default>1</show_in_default>
|
7426 |
+
<show_in_website>1</show_in_website>
|
7427 |
+
<show_in_store>1</show_in_store>
|
7428 |
+
</css_url>
|
7429 |
+
<template translate="label">
|
7430 |
+
<label>Page payment template</label>
|
7431 |
+
<frontend_type>select</frontend_type>
|
7432 |
+
<source_model>hipay/source_template</source_model>
|
7433 |
+
<sort_order>35</sort_order>
|
7434 |
+
<show_in_default>1</show_in_default>
|
7435 |
+
<show_in_website>1</show_in_website>
|
7436 |
+
<show_in_store>0</show_in_store>
|
7437 |
+
</template>
|
7438 |
+
<display_iframe translate="label">
|
7439 |
+
<label>Display hosted page in Iframe</label>
|
7440 |
+
<frontend_type>select</frontend_type>
|
7441 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7442 |
+
<sort_order>36</sort_order>
|
7443 |
+
<show_in_default>1</show_in_default>
|
7444 |
+
<show_in_website>1</show_in_website>
|
7445 |
+
<show_in_store>0</show_in_store>
|
7446 |
+
</display_iframe>
|
7447 |
+
<iframe_width translate="label">
|
7448 |
+
<label>iFrame Width</label>
|
7449 |
+
<frontend_type>text</frontend_type>
|
7450 |
+
<sort_order>37</sort_order>
|
7451 |
+
<show_in_default>1</show_in_default>
|
7452 |
+
<show_in_website>1</show_in_website>
|
7453 |
+
<show_in_store>1</show_in_store>
|
7454 |
+
</iframe_width>
|
7455 |
+
<iframe_height translate="label">
|
7456 |
+
<label>iFrame Height</label>
|
7457 |
+
<frontend_type>text</frontend_type>
|
7458 |
+
<sort_order>38</sort_order>
|
7459 |
+
<show_in_default>1</show_in_default>
|
7460 |
+
<show_in_website>1</show_in_website>
|
7461 |
+
<show_in_store>1</show_in_store>
|
7462 |
+
</iframe_height>
|
7463 |
+
<iframe_style translate="label">
|
7464 |
+
<label>iFrame Style</label>
|
7465 |
+
<frontend_type>text</frontend_type>show_in_website
|
7466 |
+
<sort_order>39</sort_order>
|
7467 |
+
<show_in_default>1</show_in_default>
|
7468 |
+
<show_in_website>1</show_in_website>
|
7469 |
+
<show_in_store>1</show_in_store>
|
7470 |
+
</iframe_style>
|
7471 |
+
<iframe_wrapper_style translate="label">
|
7472 |
+
<label>Wrapper iFrame Style</label>
|
7473 |
+
<frontend_type>text</frontend_type>
|
7474 |
+
<sort_order>39</sort_order>
|
7475 |
+
<show_in_default>1</show_in_default>
|
7476 |
+
<show_in_website>1</show_in_website>
|
7477 |
+
<show_in_store>1</show_in_store>
|
7478 |
+
</iframe_wrapper_style>
|
7479 |
+
<display_selector translate="label">
|
7480 |
+
<label>Display card selector</label>
|
7481 |
+
<frontend_type>select</frontend_type>
|
7482 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7483 |
+
<sort_order>40</sort_order>
|
7484 |
+
<show_in_default>1</show_in_default>
|
7485 |
+
<show_in_website>1</show_in_website>
|
7486 |
+
<show_in_store>0</show_in_store>
|
7487 |
+
</display_selector>
|
7488 |
+
<use_3d_secure translate="label">
|
7489 |
+
<label>Use 3D Secure</label>
|
7490 |
+
<frontend_type>select</frontend_type>
|
7491 |
+
<source_model>hipay/source_3ds</source_model>
|
7492 |
+
<sort_order>60</sort_order>
|
7493 |
+
<show_in_default>1</show_in_default>
|
7494 |
+
<show_in_website>1</show_in_website>
|
7495 |
+
<show_in_store>0</show_in_store>
|
7496 |
+
</use_3d_secure>
|
7497 |
+
<config_3ds_rules translate="label comment">
|
7498 |
+
<label>Rules 3D Secure</label>
|
7499 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
7500 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
7501 |
+
<backend_model>hipay/rule_config</backend_model>
|
7502 |
+
<sort_order>61</sort_order>
|
7503 |
+
<show_in_default>1</show_in_default>
|
7504 |
+
<show_in_website>1</show_in_website>
|
7505 |
+
<show_in_store>0</show_in_store>
|
7506 |
+
</config_3ds_rules>
|
7507 |
+
<send_fraud_payment_email translate="label">
|
7508 |
+
<label>Send fraud payment email</label>
|
7509 |
+
<frontend_type>select</frontend_type>
|
7510 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7511 |
+
<sort_order>63</sort_order>
|
7512 |
+
<show_in_default>1</show_in_default>
|
7513 |
+
<show_in_website>1</show_in_website>
|
7514 |
+
<show_in_store>1</show_in_store>
|
7515 |
+
</send_fraud_payment_email>
|
7516 |
+
<!-- @deprecated since version 1.2.6 -->
|
7517 |
+
<!-- <allow_split_payment translate="label">
|
7518 |
+
<label>Use Split Payment</label>
|
7519 |
+
<frontend_type>select</frontend_type>
|
7520 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
7521 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7522 |
+
<sort_order>65</sort_order>
|
7523 |
+
<show_in_default>1</show_in_default>
|
7524 |
+
<show_in_website>1</show_in_website>
|
7525 |
+
<show_in_store>0</show_in_store>
|
7526 |
+
</allow_split_payment>
|
7527 |
+
<split_payment_profile translate="label">
|
7528 |
+
<label>Payment Profile</label>
|
7529 |
+
<frontend_type>multiselect</frontend_type>
|
7530 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
7531 |
+
<sort_order>66</sort_order>
|
7532 |
+
<show_in_default>1</show_in_default>
|
7533 |
+
<show_in_website>1</show_in_website>
|
7534 |
+
<show_in_store>0</show_in_store>
|
7535 |
+
</split_payment_profile>
|
7536 |
+
<min_order_total_split_payment translate="label">
|
7537 |
+
<label>Minimum Order Total for Split Payment</label>
|
7538 |
+
<frontend_type>text</frontend_type>
|
7539 |
+
<sort_order>68</sort_order>
|
7540 |
+
<show_in_default>1</show_in_default>
|
7541 |
+
<show_in_website>1</show_in_website>
|
7542 |
+
<show_in_store>1</show_in_store>
|
7543 |
+
</min_order_total_split_payment> -->
|
7544 |
+
<allow_use_oneclick translate="label">
|
7545 |
+
<label>Use Oneclick</label>
|
7546 |
+
<frontend_type>select</frontend_type>
|
7547 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7548 |
+
<sort_order>70</sort_order>
|
7549 |
+
<show_in_default>1</show_in_default>
|
7550 |
+
<show_in_website>1</show_in_website>
|
7551 |
+
<show_in_store>0</show_in_store>
|
7552 |
+
</allow_use_oneclick>
|
7553 |
+
<filter_oneclick translate="label comment">
|
7554 |
+
<label>Rules Oneclick</label>
|
7555 |
+
<comment>Configure Rules to activate oneclick</comment>
|
7556 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
7557 |
+
<backend_model>hipay/rule_config</backend_model>
|
7558 |
+
<sort_order>80</sort_order>
|
7559 |
+
<show_in_default>1</show_in_default>
|
7560 |
+
<show_in_website>1</show_in_website>
|
7561 |
+
<show_in_store>0</show_in_store>
|
7562 |
+
</filter_oneclick>
|
7563 |
+
<re_add_to_cart translate="label comment">
|
7564 |
+
<label>Add product to cart</label>
|
7565 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
7566 |
+
<frontend_type>select</frontend_type>
|
7567 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7568 |
+
<sort_order>95</sort_order>
|
7569 |
+
<show_in_default>1</show_in_default>
|
7570 |
+
<show_in_website>1</show_in_website>
|
7571 |
+
<show_in_store>0</show_in_store>
|
7572 |
+
</re_add_to_cart>
|
7573 |
+
<cancel_pending_order translate="label comment">
|
7574 |
+
<label>Cancel pending order</label>
|
7575 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
7576 |
+
<frontend_type>select</frontend_type>
|
7577 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7578 |
+
<sort_order>97</sort_order>
|
7579 |
+
<show_in_default>1</show_in_default>
|
7580 |
+
<show_in_website>1</show_in_website>
|
7581 |
+
<show_in_store>0</show_in_store>
|
7582 |
+
</cancel_pending_order>
|
7583 |
+
<send_fraud_payment_email translate="label">
|
7584 |
+
<label>Send fraud payment email</label>
|
7585 |
+
<frontend_type>select</frontend_type>
|
7586 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7587 |
+
<sort_order>99</sort_order>
|
7588 |
+
<show_in_default>1</show_in_default>
|
7589 |
+
<show_in_website>1</show_in_website>
|
7590 |
+
<show_in_store>1</show_in_store>
|
7591 |
+
</send_fraud_payment_email>
|
7592 |
+
<allowspecific translate="label">
|
7593 |
+
<label>Payment from applicable countries</label>
|
7594 |
+
<frontend_type>allowspecific</frontend_type>
|
7595 |
+
<sort_order>100</sort_order>
|
7596 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
7597 |
+
<show_in_default>1</show_in_default>
|
7598 |
+
<show_in_website>1</show_in_website>
|
7599 |
+
<show_in_store>1</show_in_store>
|
7600 |
+
</allowspecific>
|
7601 |
+
<specificcountry translate="label">
|
7602 |
+
<label>Payment from Specific countries</label>
|
7603 |
+
<frontend_type>multiselect</frontend_type>
|
7604 |
+
<sort_order>110</sort_order>
|
7605 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
7606 |
+
<show_in_default>1</show_in_default>
|
7607 |
+
<show_in_website>1</show_in_website>
|
7608 |
+
<show_in_store>1</show_in_store>
|
7609 |
+
</specificcountry>
|
7610 |
+
<currency translate="label">
|
7611 |
+
<label>Accepted Currency</label>
|
7612 |
+
<frontend_type>select</frontend_type>
|
7613 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
7614 |
+
<sort_order>111</sort_order>
|
7615 |
+
<show_in_default>1</show_in_default>
|
7616 |
+
<show_in_website>1</show_in_website>
|
7617 |
+
<show_in_store>1</show_in_store>
|
7618 |
+
</currency>
|
7619 |
+
<min_order_total translate="label">
|
7620 |
+
<label>Minimum Order Total</label>
|
7621 |
+
<frontend_type>text</frontend_type>
|
7622 |
+
<sort_order>120</sort_order>
|
7623 |
+
<show_in_default>1</show_in_default>
|
7624 |
+
<show_in_website>1</show_in_website>
|
7625 |
+
<show_in_store>1</show_in_store>
|
7626 |
+
</min_order_total>
|
7627 |
+
<max_order_total translate="label">
|
7628 |
+
<label>Maximum Order Total</label>
|
7629 |
+
<frontend_type>text</frontend_type>
|
7630 |
+
<sort_order>121</sort_order>
|
7631 |
+
<show_in_default>1</show_in_default>
|
7632 |
+
<show_in_website>1</show_in_website>
|
7633 |
+
<show_in_store>1</show_in_store>
|
7634 |
+
</max_order_total>
|
7635 |
+
<sort_order translate="label">
|
7636 |
+
<label>Sort Order</label>
|
7637 |
+
<frontend_type>text</frontend_type>
|
7638 |
+
<sort_order>130</sort_order>
|
7639 |
+
<show_in_default>1</show_in_default>
|
7640 |
+
<show_in_website>1</show_in_website>
|
7641 |
+
<show_in_store>1</show_in_store>
|
7642 |
+
</sort_order>
|
7643 |
+
<debug translate="label">
|
7644 |
+
<label>Enable debug log</label>
|
7645 |
+
<comment></comment>
|
7646 |
+
<frontend_type>select</frontend_type>
|
7647 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7648 |
+
<sort_order>150</sort_order>
|
7649 |
+
<show_in_default>1</show_in_default>
|
7650 |
+
<show_in_website>1</show_in_website>
|
7651 |
+
<show_in_store>0</show_in_store>
|
7652 |
+
</debug>
|
7653 |
+
<is_test_mode translate="label comment">
|
7654 |
+
<label>Enable test mode</label>
|
7655 |
+
<comment></comment>
|
7656 |
+
<frontend_type>select</frontend_type>
|
7657 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7658 |
+
<sort_order>200</sort_order>
|
7659 |
+
<show_in_default>1</show_in_default>
|
7660 |
+
<show_in_website>1</show_in_website>
|
7661 |
+
<show_in_store>1</show_in_store>
|
7662 |
+
</is_test_mode>
|
7663 |
+
</fields>
|
7664 |
+
</hipay_caixa>
|
7665 |
+
<!--<hipay_discover translate="label" module="hipay">
|
7666 |
+
<label>Discover</label>
|
7667 |
+
<frontend_type>text</frontend_type>
|
7668 |
+
<sort_order>247</sort_order>
|
7669 |
+
<show_in_default>1</show_in_default>
|
7670 |
+
<show_in_website>1</show_in_website>
|
7671 |
+
<show_in_store>1</show_in_store>
|
7672 |
+
<fields>
|
7673 |
+
<active translate="label">
|
7674 |
+
<label>Enabled</label>
|
7675 |
+
<frontend_type>select</frontend_type>
|
7676 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7677 |
+
<sort_order>10</sort_order>
|
7678 |
+
<show_in_default>1</show_in_default>
|
7679 |
+
<show_in_website>1</show_in_website>
|
7680 |
+
<show_in_store>1</show_in_store>
|
7681 |
+
</active>
|
7682 |
+
<title translate="label">
|
7683 |
+
<label>Title</label>
|
7684 |
+
<frontend_type>text</frontend_type>
|
7685 |
+
<sort_order>20</sort_order>
|
7686 |
+
<show_in_default>1</show_in_default>
|
7687 |
+
<show_in_website>1</show_in_website>
|
7688 |
+
<show_in_store>1</show_in_store>
|
7689 |
+
</title>
|
7690 |
+
<order_status_payment_accepted translate="label">
|
7691 |
+
<label>Order status when payment accepted</label>
|
7692 |
+
<frontend_type>select</frontend_type>
|
7693 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
7694 |
+
<sort_order>23</sort_order>
|
7695 |
+
<show_in_default>1</show_in_default>
|
7696 |
+
<show_in_website>1</show_in_website>
|
7697 |
+
<show_in_store>0</show_in_store>
|
7698 |
+
</order_status_payment_accepted>
|
7699 |
+
<order_status_payment_refused translate="label">
|
7700 |
+
<label>Order status when payment refused</label>
|
7701 |
+
<frontend_type>select</frontend_type>
|
7702 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
7703 |
+
<sort_order>24</sort_order>
|
7704 |
+
<show_in_default>1</show_in_default>
|
7705 |
+
<show_in_website>1</show_in_website>
|
7706 |
+
<show_in_store>0</show_in_store>
|
7707 |
+
</order_status_payment_refused>
|
7708 |
+
<order_status_payment_canceled translate="label">
|
7709 |
+
<label>Order status when payment canceled by customer</label>
|
7710 |
+
<frontend_type>select</frontend_type>
|
7711 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
7712 |
+
<sort_order>25</sort_order>
|
7713 |
+
<show_in_default>1</show_in_default>
|
7714 |
+
<show_in_website>1</show_in_website>
|
7715 |
+
<show_in_store>0</show_in_store>
|
7716 |
+
</order_status_payment_canceled>
|
7717 |
+
<hipay_status_validate_order translate="label">
|
7718 |
+
<label>Hipay status to validate order</label>
|
7719 |
+
<frontend_type>select</frontend_type>
|
7720 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
7721 |
+
<sort_order>26</sort_order>
|
7722 |
+
<show_in_default>1</show_in_default>
|
7723 |
+
<show_in_website>1</show_in_website>
|
7724 |
+
<show_in_store>0</show_in_store>
|
7725 |
+
</hipay_status_validate_order>
|
7726 |
+
<success_redirect_page translate="label">
|
7727 |
+
<label>Redirect page success</label>
|
7728 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
7729 |
+
<frontend_type>text</frontend_type>
|
7730 |
+
<sort_order>26</sort_order>
|
7731 |
+
<show_in_default>1</show_in_default>
|
7732 |
+
<show_in_website>1</show_in_website>
|
7733 |
+
<show_in_store>0</show_in_store>
|
7734 |
+
</success_redirect_page>
|
7735 |
+
<pending_redirect_page translate="label">
|
7736 |
+
<label>Redirect page pending status</label>
|
7737 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
7738 |
+
<frontend_type>select</frontend_type>
|
7739 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
7740 |
+
<sort_order>27</sort_order>
|
7741 |
+
<show_in_default>1</show_in_default>
|
7742 |
+
<show_in_website>1</show_in_website>
|
7743 |
+
<show_in_store>0</show_in_store>
|
7744 |
+
</pending_redirect_page>
|
7745 |
+
<payment_action translate="label">
|
7746 |
+
<label>Payment Action</label>
|
7747 |
+
<frontend_type>select</frontend_type>
|
7748 |
+
<source_model>hipay/source_paymentAction</source_model>
|
7749 |
+
<sort_order>28</sort_order>
|
7750 |
+
<show_in_default>1</show_in_default>
|
7751 |
+
<show_in_website>1</show_in_website>
|
7752 |
+
<show_in_store>0</show_in_store>
|
7753 |
+
</payment_action>
|
7754 |
+
<css_url translate="label coment">
|
7755 |
+
<label>Css Url</label>
|
7756 |
+
<comment>Important, HTTPS protocol is required</comment>
|
7757 |
+
<frontend_type>text</frontend_type>
|
7758 |
+
<sort_order>30</sort_order>
|
7759 |
+
<show_in_default>1</show_in_default>
|
7760 |
+
<show_in_website>1</show_in_website>
|
7761 |
+
<show_in_store>1</show_in_store>
|
7762 |
+
</css_url>
|
7763 |
+
<template translate="label">
|
7764 |
+
<label>Page payment template</label>
|
7765 |
+
<frontend_type>select</frontend_type>
|
7766 |
+
<source_model>hipay/source_template</source_model>
|
7767 |
+
<sort_order>35</sort_order>
|
7768 |
+
<show_in_default>1</show_in_default>
|
7769 |
+
<show_in_website>1</show_in_website>
|
7770 |
+
<show_in_store>0</show_in_store>
|
7771 |
+
</template>
|
7772 |
+
<display_iframe translate="label">
|
7773 |
+
<label>Display hosted page in Iframe</label>
|
7774 |
+
<frontend_type>select</frontend_type>
|
7775 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7776 |
+
<sort_order>36</sort_order>
|
7777 |
+
<show_in_default>1</show_in_default>
|
7778 |
+
<show_in_website>1</show_in_website>
|
7779 |
+
<show_in_store>0</show_in_store>
|
7780 |
+
</display_iframe>
|
7781 |
+
<iframe_width translate="label">
|
7782 |
+
<label>iFrame Width</label>
|
7783 |
+
<frontend_type>text</frontend_type>
|
7784 |
+
<sort_order>37</sort_order>
|
7785 |
+
<show_in_default>1</show_in_default>
|
7786 |
+
<show_in_website>1</show_in_website>
|
7787 |
+
<show_in_store>1</show_in_store>
|
7788 |
+
</iframe_width>
|
7789 |
+
<iframe_height translate="label">
|
7790 |
+
<label>iFrame Height</label>
|
7791 |
+
<frontend_type>text</frontend_type>
|
7792 |
+
<sort_order>38</sort_order>
|
7793 |
+
<show_in_default>1</show_in_default>
|
7794 |
+
<show_in_website>1</show_in_website>
|
7795 |
+
<show_in_store>1</show_in_store>
|
7796 |
+
</iframe_height>
|
7797 |
+
<iframe_style translate="label">
|
7798 |
+
<label>iFrame Style</label>
|
7799 |
+
<frontend_type>text</frontend_type>show_in_website
|
7800 |
+
<sort_order>39</sort_order>
|
7801 |
+
<show_in_default>1</show_in_default>
|
7802 |
+
<show_in_website>1</show_in_website>
|
7803 |
+
<show_in_store>1</show_in_store>
|
7804 |
+
</iframe_style>
|
7805 |
+
<iframe_wrapper_style translate="label">
|
7806 |
+
<label>Wrapper iFrame Style</label>
|
7807 |
+
<frontend_type>text</frontend_type>
|
7808 |
+
<sort_order>39</sort_order>
|
7809 |
+
<show_in_default>1</show_in_default>
|
7810 |
+
<show_in_website>1</show_in_website>
|
7811 |
+
<show_in_store>1</show_in_store>
|
7812 |
+
</iframe_wrapper_style>
|
7813 |
+
<display_selector translate="label">
|
7814 |
+
<label>Display card selector</label>
|
7815 |
+
<frontend_type>select</frontend_type>
|
7816 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7817 |
+
<sort_order>40</sort_order>
|
7818 |
+
<show_in_default>1</show_in_default>
|
7819 |
+
<show_in_website>1</show_in_website>
|
7820 |
+
<show_in_store>0</show_in_store>
|
7821 |
+
</display_selector>
|
7822 |
+
<use_3d_secure translate="label">
|
7823 |
+
<label>Use 3D Secure</label>
|
7824 |
+
<frontend_type>select</frontend_type>
|
7825 |
+
<source_model>hipay/source_3ds</source_model>
|
7826 |
+
<sort_order>60</sort_order>
|
7827 |
+
<show_in_default>1</show_in_default>
|
7828 |
+
<show_in_website>1</show_in_website>
|
7829 |
+
<show_in_store>0</show_in_store>
|
7830 |
+
</use_3d_secure>
|
7831 |
+
<config_3ds_rules translate="label comment">
|
7832 |
+
<label>Rules 3D Secure</label>
|
7833 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
7834 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
7835 |
+
<backend_model>hipay/rule_config</backend_model>
|
7836 |
+
<sort_order>61</sort_order>
|
7837 |
+
<show_in_default>1</show_in_default>
|
7838 |
+
<show_in_website>1</show_in_website>
|
7839 |
+
<show_in_store>0</show_in_store>
|
7840 |
+
</config_3ds_rules>
|
7841 |
+
<send_fraud_payment_email translate="label">
|
7842 |
+
<label>Send fraud payment email</label>
|
7843 |
+
<frontend_type>select</frontend_type>
|
7844 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7845 |
+
<sort_order>63</sort_order>
|
7846 |
+
<show_in_default>1</show_in_default>
|
7847 |
+
<show_in_website>1</show_in_website>
|
7848 |
+
<show_in_store>1</show_in_store>
|
7849 |
+
</send_fraud_payment_email>
|
7850 |
+
<allow_split_payment translate="label">
|
7851 |
+
<label>Use Split Payment</label>
|
7852 |
+
<frontend_type>select</frontend_type>
|
7853 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
7854 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7855 |
+
<sort_order>65</sort_order>
|
7856 |
+
<show_in_default>1</show_in_default>
|
7857 |
+
<show_in_website>1</show_in_website>
|
7858 |
+
<show_in_store>0</show_in_store>
|
7859 |
+
</allow_split_payment>
|
7860 |
+
<split_payment_profile translate="label">
|
7861 |
+
<label>Payment Profile</label>
|
7862 |
+
<frontend_type>multiselect</frontend_type>
|
7863 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
7864 |
+
<sort_order>66</sort_order>
|
7865 |
+
<show_in_default>1</show_in_default>
|
7866 |
+
<show_in_website>1</show_in_website>
|
7867 |
+
<show_in_store>0</show_in_store>
|
7868 |
+
</split_payment_profile>
|
7869 |
+
<min_order_total_split_payment translate="label">
|
7870 |
+
<label>Minimum Order Total for Split Payment</label>
|
7871 |
+
<frontend_type>text</frontend_type>
|
7872 |
+
<sort_order>68</sort_order>
|
7873 |
+
<show_in_default>1</show_in_default>
|
7874 |
+
<show_in_website>1</show_in_website>
|
7875 |
+
<show_in_store>1</show_in_store>
|
7876 |
+
</min_order_total_split_payment>
|
7877 |
+
<allow_use_oneclick translate="label">
|
7878 |
+
<label>Use Oneclick</label>
|
7879 |
+
<frontend_type>select</frontend_type>
|
7880 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7881 |
+
<sort_order>70</sort_order>
|
7882 |
+
<show_in_default>1</show_in_default>
|
7883 |
+
<show_in_website>1</show_in_website>
|
7884 |
+
<show_in_store>0</show_in_store>
|
7885 |
+
</allow_use_oneclick>
|
7886 |
+
<filter_oneclick translate="label comment">
|
7887 |
+
<label>Rules Oneclick</label>
|
7888 |
+
<comment>Configure Rules to activate oneclick</comment>
|
7889 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
7890 |
+
<backend_model>hipay/rule_config</backend_model>
|
7891 |
+
<sort_order>80</sort_order>
|
7892 |
+
<show_in_default>1</show_in_default>
|
7893 |
+
<show_in_website>1</show_in_website>
|
7894 |
+
<show_in_store>0</show_in_store>
|
7895 |
+
</filter_oneclick>
|
7896 |
+
<re_add_to_cart translate="label comment">
|
7897 |
+
<label>Add product to cart</label>
|
7898 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
7899 |
+
<frontend_type>select</frontend_type>
|
7900 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7901 |
+
<sort_order>95</sort_order>
|
7902 |
+
<show_in_default>1</show_in_default>
|
7903 |
+
<show_in_website>1</show_in_website>
|
7904 |
+
<show_in_store>0</show_in_store>
|
7905 |
+
</re_add_to_cart>
|
7906 |
+
<cancel_pending_order translate="label comment">
|
7907 |
+
<label>Cancel pending order</label>
|
7908 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
7909 |
+
<frontend_type>select</frontend_type>
|
7910 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7911 |
+
<sort_order>97</sort_order>
|
7912 |
+
<show_in_default>1</show_in_default>
|
7913 |
+
<show_in_website>1</show_in_website>
|
7914 |
+
<show_in_store>0</show_in_store>
|
7915 |
+
</cancel_pending_order>
|
7916 |
+
<send_fraud_payment_email translate="label">
|
7917 |
+
<label>Send fraud payment email</label>
|
7918 |
+
<frontend_type>select</frontend_type>
|
7919 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7920 |
+
<sort_order>99</sort_order>
|
7921 |
+
<show_in_default>1</show_in_default>
|
7922 |
+
<show_in_website>1</show_in_website>
|
7923 |
+
<show_in_store>1</show_in_store>
|
7924 |
+
</send_fraud_payment_email>
|
7925 |
+
<allowspecific translate="label">
|
7926 |
+
<label>Payment from applicable countries</label>
|
7927 |
+
<frontend_type>allowspecific</frontend_type>
|
7928 |
+
<sort_order>100</sort_order>
|
7929 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
7930 |
+
<show_in_default>1</show_in_default>
|
7931 |
+
<show_in_website>1</show_in_website>
|
7932 |
+
<show_in_store>1</show_in_store>
|
7933 |
+
</allowspecific>
|
7934 |
+
<specificcountry translate="label">
|
7935 |
+
<label>Payment from Specific countries</label>
|
7936 |
+
<frontend_type>multiselect</frontend_type>
|
7937 |
+
<sort_order>110</sort_order>
|
7938 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
7939 |
+
<show_in_default>1</show_in_default>
|
7940 |
+
<show_in_website>1</show_in_website>
|
7941 |
+
<show_in_store>1</show_in_store>
|
7942 |
+
</specificcountry>
|
7943 |
+
<currency translate="label">
|
7944 |
+
<label>Accepted Currency</label>
|
7945 |
+
<frontend_type>select</frontend_type>
|
7946 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
7947 |
+
<sort_order>111</sort_order>
|
7948 |
+
<show_in_default>1</show_in_default>
|
7949 |
+
<show_in_website>1</show_in_website>
|
7950 |
+
<show_in_store>1</show_in_store>
|
7951 |
+
</currency>
|
7952 |
+
<min_order_total translate="label">
|
7953 |
+
<label>Minimum Order Total</label>
|
7954 |
+
<frontend_type>text</frontend_type>
|
7955 |
+
<sort_order>120</sort_order>
|
7956 |
+
<show_in_default>1</show_in_default>
|
7957 |
+
<show_in_website>1</show_in_website>
|
7958 |
+
<show_in_store>1</show_in_store>
|
7959 |
+
</min_order_total>
|
7960 |
+
<max_order_total translate="label">
|
7961 |
+
<label>Maximum Order Total</label>
|
7962 |
+
<frontend_type>text</frontend_type>
|
7963 |
+
<sort_order>121</sort_order>
|
7964 |
+
<show_in_default>1</show_in_default>
|
7965 |
+
<show_in_website>1</show_in_website>
|
7966 |
+
<show_in_store>1</show_in_store>
|
7967 |
+
</max_order_total>
|
7968 |
+
<sort_order translate="label">
|
7969 |
+
<label>Sort Order</label>
|
7970 |
+
<frontend_type>text</frontend_type>
|
7971 |
+
<sort_order>130</sort_order>
|
7972 |
+
<show_in_default>1</show_in_default>
|
7973 |
+
<show_in_website>1</show_in_website>
|
7974 |
+
<show_in_store>1</show_in_store>
|
7975 |
+
</sort_order>
|
7976 |
+
<debug translate="label">
|
7977 |
+
<label>Enable debug log</label>
|
7978 |
+
<comment></comment>
|
7979 |
+
<frontend_type>select</frontend_type>
|
7980 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7981 |
+
<sort_order>150</sort_order>
|
7982 |
+
<show_in_default>1</show_in_default>
|
7983 |
+
<show_in_website>1</show_in_website>
|
7984 |
+
<show_in_store>0</show_in_store>
|
7985 |
+
</debug>
|
7986 |
+
<is_test_mode translate="label comment">
|
7987 |
+
<label>Enable test mode</label>
|
7988 |
+
<comment></comment>
|
7989 |
+
<frontend_type>select</frontend_type>
|
7990 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
7991 |
+
<sort_order>200</sort_order>
|
7992 |
+
<show_in_default>1</show_in_default>
|
7993 |
+
<show_in_website>1</show_in_website>
|
7994 |
+
<show_in_store>1</show_in_store>
|
7995 |
+
</is_test_mode>
|
7996 |
+
</fields>
|
7997 |
+
</hipay_discover> -->
|
7998 |
+
<hipay_oxxo translate="label" module="hipay">
|
7999 |
+
<label>HiPay Enterprise Oxxo</label>
|
8000 |
+
<frontend_type>text</frontend_type>
|
8001 |
+
<sort_order>248</sort_order>
|
8002 |
+
<show_in_default>1</show_in_default>
|
8003 |
+
<show_in_website>1</show_in_website>
|
8004 |
+
<show_in_store>1</show_in_store>
|
8005 |
+
<fields>
|
8006 |
+
<active translate="label">
|
8007 |
+
<label>Enabled</label>
|
8008 |
+
<frontend_type>select</frontend_type>
|
8009 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8010 |
+
<sort_order>10</sort_order>
|
8011 |
+
<show_in_default>1</show_in_default>
|
8012 |
+
<show_in_website>1</show_in_website>
|
8013 |
+
<show_in_store>1</show_in_store>
|
8014 |
+
</active>
|
8015 |
+
<title translate="label">
|
8016 |
+
<label>Title</label>
|
8017 |
+
<frontend_type>text</frontend_type>
|
8018 |
+
<sort_order>20</sort_order>
|
8019 |
+
<show_in_default>1</show_in_default>
|
8020 |
+
<show_in_website>1</show_in_website>
|
8021 |
+
<show_in_store>1</show_in_store>
|
8022 |
+
</title>
|
8023 |
+
<order_status_payment_accepted translate="label">
|
8024 |
+
<label>Order status when payment accepted</label>
|
8025 |
+
<frontend_type>select</frontend_type>
|
8026 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
8027 |
+
<sort_order>23</sort_order>
|
8028 |
+
<show_in_default>1</show_in_default>
|
8029 |
+
<show_in_website>1</show_in_website>
|
8030 |
+
<show_in_store>0</show_in_store>
|
8031 |
+
</order_status_payment_accepted>
|
8032 |
+
<order_status_payment_refused translate="label">
|
8033 |
+
<label>Order status when payment refused</label>
|
8034 |
+
<frontend_type>select</frontend_type>
|
8035 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
8036 |
+
<sort_order>24</sort_order>
|
8037 |
+
<show_in_default>1</show_in_default>
|
8038 |
+
<show_in_website>1</show_in_website>
|
8039 |
+
<show_in_store>0</show_in_store>
|
8040 |
+
</order_status_payment_refused>
|
8041 |
+
<order_status_payment_canceled translate="label">
|
8042 |
+
<label>Order status when payment canceled by customer</label>
|
8043 |
+
<frontend_type>select</frontend_type>
|
8044 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
8045 |
+
<sort_order>25</sort_order>
|
8046 |
+
<show_in_default>1</show_in_default>
|
8047 |
+
<show_in_website>1</show_in_website>
|
8048 |
+
<show_in_store>0</show_in_store>
|
8049 |
+
</order_status_payment_canceled>
|
8050 |
+
<hipay_status_validate_order translate="label">
|
8051 |
+
<label>Hipay status to validate order</label>
|
8052 |
+
<frontend_type>select</frontend_type>
|
8053 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
8054 |
+
<sort_order>26</sort_order>
|
8055 |
+
<show_in_default>1</show_in_default>
|
8056 |
+
<show_in_website>1</show_in_website>
|
8057 |
+
<show_in_store>0</show_in_store>
|
8058 |
+
</hipay_status_validate_order>
|
8059 |
+
<success_redirect_page translate="label">
|
8060 |
+
<label>Redirect page success</label>
|
8061 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
8062 |
+
<frontend_type>text</frontend_type>
|
8063 |
+
<sort_order>26</sort_order>
|
8064 |
+
<show_in_default>1</show_in_default>
|
8065 |
+
<show_in_website>1</show_in_website>
|
8066 |
+
<show_in_store>0</show_in_store>
|
8067 |
+
</success_redirect_page>
|
8068 |
+
<pending_redirect_page translate="label">
|
8069 |
+
<label>Redirect page pending status</label>
|
8070 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
8071 |
+
<frontend_type>select</frontend_type>
|
8072 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
8073 |
+
<sort_order>27</sort_order>
|
8074 |
+
<show_in_default>1</show_in_default>
|
8075 |
+
<show_in_website>1</show_in_website>
|
8076 |
+
<show_in_store>0</show_in_store>
|
8077 |
+
</pending_redirect_page>
|
8078 |
+
<payment_action translate="label">
|
8079 |
+
<label>Payment Action</label>
|
8080 |
+
<frontend_type>select</frontend_type>
|
8081 |
+
<source_model>hipay/source_paymentAction</source_model>
|
8082 |
+
<sort_order>28</sort_order>
|
8083 |
+
<show_in_default>1</show_in_default>
|
8084 |
+
<show_in_website>1</show_in_website>
|
8085 |
+
<show_in_store>0</show_in_store>
|
8086 |
+
</payment_action>
|
8087 |
+
<css_url translate="label coment">
|
8088 |
+
<label>Css Url</label>
|
8089 |
+
<comment>Important, HTTPS protocol is required</comment>
|
8090 |
+
<frontend_type>text</frontend_type>
|
8091 |
+
<sort_order>30</sort_order>
|
8092 |
+
<show_in_default>1</show_in_default>
|
8093 |
+
<show_in_website>1</show_in_website>
|
8094 |
+
<show_in_store>1</show_in_store>
|
8095 |
+
</css_url>
|
8096 |
+
<template translate="label">
|
8097 |
+
<label>Page payment template</label>
|
8098 |
+
<frontend_type>select</frontend_type>
|
8099 |
+
<source_model>hipay/source_template</source_model>
|
8100 |
+
<sort_order>35</sort_order>
|
8101 |
+
<show_in_default>1</show_in_default>
|
8102 |
+
<show_in_website>1</show_in_website>
|
8103 |
+
<show_in_store>0</show_in_store>
|
8104 |
+
</template>
|
8105 |
+
<display_iframe translate="label">
|
8106 |
+
<label>Display hosted page in Iframe</label>
|
8107 |
+
<frontend_type>select</frontend_type>
|
8108 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8109 |
+
<sort_order>36</sort_order>
|
8110 |
+
<show_in_default>1</show_in_default>
|
8111 |
+
<show_in_website>1</show_in_website>
|
8112 |
+
<show_in_store>0</show_in_store>
|
8113 |
+
</display_iframe>
|
8114 |
+
<iframe_width translate="label">
|
8115 |
+
<label>iFrame Width</label>
|
8116 |
+
<frontend_type>text</frontend_type>
|
8117 |
+
<sort_order>37</sort_order>
|
8118 |
+
<show_in_default>1</show_in_default>
|
8119 |
+
<show_in_website>1</show_in_website>
|
8120 |
+
<show_in_store>1</show_in_store>
|
8121 |
+
</iframe_width>
|
8122 |
+
<iframe_height translate="label">
|
8123 |
+
<label>iFrame Height</label>
|
8124 |
+
<frontend_type>text</frontend_type>
|
8125 |
+
<sort_order>38</sort_order>
|
8126 |
+
<show_in_default>1</show_in_default>
|
8127 |
+
<show_in_website>1</show_in_website>
|
8128 |
+
<show_in_store>1</show_in_store>
|
8129 |
+
</iframe_height>
|
8130 |
+
<iframe_style translate="label">
|
8131 |
+
<label>iFrame Style</label>
|
8132 |
+
<frontend_type>text</frontend_type>show_in_website
|
8133 |
+
<sort_order>39</sort_order>
|
8134 |
+
<show_in_default>1</show_in_default>
|
8135 |
+
<show_in_website>1</show_in_website>
|
8136 |
+
<show_in_store>1</show_in_store>
|
8137 |
+
</iframe_style>
|
8138 |
+
<iframe_wrapper_style translate="label">
|
8139 |
+
<label>Wrapper iFrame Style</label>
|
8140 |
+
<frontend_type>text</frontend_type>
|
8141 |
+
<sort_order>39</sort_order>
|
8142 |
+
<show_in_default>1</show_in_default>
|
8143 |
+
<show_in_website>1</show_in_website>
|
8144 |
+
<show_in_store>1</show_in_store>
|
8145 |
+
</iframe_wrapper_style>
|
8146 |
+
<display_selector translate="label">
|
8147 |
+
<label>Display card selector</label>
|
8148 |
+
<frontend_type>select</frontend_type>
|
8149 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8150 |
+
<sort_order>40</sort_order>
|
8151 |
+
<show_in_default>1</show_in_default>
|
8152 |
+
<show_in_website>1</show_in_website>
|
8153 |
+
<show_in_store>0</show_in_store>
|
8154 |
+
</display_selector>
|
8155 |
+
<use_3d_secure translate="label">
|
8156 |
+
<label>Use 3D Secure</label>
|
8157 |
+
<frontend_type>select</frontend_type>
|
8158 |
+
<source_model>hipay/source_3ds</source_model>
|
8159 |
+
<sort_order>60</sort_order>
|
8160 |
+
<show_in_default>1</show_in_default>
|
8161 |
+
<show_in_website>1</show_in_website>
|
8162 |
+
<show_in_store>0</show_in_store>
|
8163 |
+
</use_3d_secure>
|
8164 |
+
<config_3ds_rules translate="label comment">
|
8165 |
+
<label>Rules 3D Secure</label>
|
8166 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
8167 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
8168 |
+
<backend_model>hipay/rule_config</backend_model>
|
8169 |
+
<sort_order>61</sort_order>
|
8170 |
+
<show_in_default>1</show_in_default>
|
8171 |
+
<show_in_website>1</show_in_website>
|
8172 |
+
<show_in_store>0</show_in_store>
|
8173 |
+
</config_3ds_rules>
|
8174 |
+
<send_fraud_payment_email translate="label">
|
8175 |
+
<label>Send fraud payment email</label>
|
8176 |
+
<frontend_type>select</frontend_type>
|
8177 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8178 |
+
<sort_order>63</sort_order>
|
8179 |
+
<show_in_default>1</show_in_default>
|
8180 |
+
<show_in_website>1</show_in_website>
|
8181 |
+
<show_in_store>1</show_in_store>
|
8182 |
+
</send_fraud_payment_email>
|
8183 |
+
<!-- @deprecated since version 1.2.6 -->
|
8184 |
+
<!-- <allow_split_payment translate="label">
|
8185 |
+
<label>Use Split Payment</label>
|
8186 |
+
<frontend_type>select</frontend_type>
|
8187 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
8188 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8189 |
+
<sort_order>65</sort_order>
|
8190 |
+
<show_in_default>1</show_in_default>
|
8191 |
+
<show_in_website>1</show_in_website>
|
8192 |
+
<show_in_store>0</show_in_store>
|
8193 |
+
</allow_split_payment>
|
8194 |
+
<split_payment_profile translate="label">
|
8195 |
+
<label>Payment Profile</label>
|
8196 |
+
<frontend_type>multiselect</frontend_type>
|
8197 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
8198 |
+
<sort_order>66</sort_order>
|
8199 |
+
<show_in_default>1</show_in_default>
|
8200 |
+
<show_in_website>1</show_in_website>
|
8201 |
+
<show_in_store>0</show_in_store>
|
8202 |
+
</split_payment_profile>
|
8203 |
+
<min_order_total_split_payment translate="label">
|
8204 |
+
<label>Minimum Order Total for Split Payment</label>
|
8205 |
+
<frontend_type>text</frontend_type>
|
8206 |
+
<sort_order>68</sort_order>
|
8207 |
+
<show_in_default>1</show_in_default>
|
8208 |
+
<show_in_website>1</show_in_website>
|
8209 |
+
<show_in_store>1</show_in_store>
|
8210 |
+
</min_order_total_split_payment> -->
|
8211 |
+
<allow_use_oneclick translate="label">
|
8212 |
+
<label>Use Oneclick</label>
|
8213 |
+
<frontend_type>select</frontend_type>
|
8214 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8215 |
+
<sort_order>70</sort_order>
|
8216 |
+
<show_in_default>1</show_in_default>
|
8217 |
+
<show_in_website>1</show_in_website>
|
8218 |
+
<show_in_store>0</show_in_store>
|
8219 |
+
</allow_use_oneclick>
|
8220 |
+
<filter_oneclick translate="label comment">
|
8221 |
+
<label>Rules Oneclick</label>
|
8222 |
+
<comment>Configure Rules to activate oneclick</comment>
|
8223 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
8224 |
+
<backend_model>hipay/rule_config</backend_model>
|
8225 |
+
<sort_order>80</sort_order>
|
8226 |
+
<show_in_default>1</show_in_default>
|
8227 |
+
<show_in_website>1</show_in_website>
|
8228 |
+
<show_in_store>0</show_in_store>
|
8229 |
+
</filter_oneclick>
|
8230 |
+
<re_add_to_cart translate="label comment">
|
8231 |
+
<label>Add product to cart</label>
|
8232 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
8233 |
+
<frontend_type>select</frontend_type>
|
8234 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8235 |
+
<sort_order>95</sort_order>
|
8236 |
+
<show_in_default>1</show_in_default>
|
8237 |
+
<show_in_website>1</show_in_website>
|
8238 |
+
<show_in_store>0</show_in_store>
|
8239 |
+
</re_add_to_cart>
|
8240 |
+
<cancel_pending_order translate="label comment">
|
8241 |
+
<label>Cancel pending order</label>
|
8242 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
8243 |
+
<frontend_type>select</frontend_type>
|
8244 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8245 |
+
<sort_order>97</sort_order>
|
8246 |
+
<show_in_default>1</show_in_default>
|
8247 |
+
<show_in_website>1</show_in_website>
|
8248 |
+
<show_in_store>0</show_in_store>
|
8249 |
+
</cancel_pending_order>
|
8250 |
+
<send_fraud_payment_email translate="label">
|
8251 |
+
<label>Send fraud payment email</label>
|
8252 |
+
<frontend_type>select</frontend_type>
|
8253 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8254 |
+
<sort_order>99</sort_order>
|
8255 |
+
<show_in_default>1</show_in_default>
|
8256 |
+
<show_in_website>1</show_in_website>
|
8257 |
+
<show_in_store>1</show_in_store>
|
8258 |
+
</send_fraud_payment_email>
|
8259 |
+
<allowspecific translate="label">
|
8260 |
+
<label>Payment from applicable countries</label>
|
8261 |
+
<frontend_type>allowspecific</frontend_type>
|
8262 |
+
<sort_order>100</sort_order>
|
8263 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
8264 |
+
<show_in_default>1</show_in_default>
|
8265 |
+
<show_in_website>1</show_in_website>
|
8266 |
+
<show_in_store>1</show_in_store>
|
8267 |
+
</allowspecific>
|
8268 |
+
<specificcountry translate="label">
|
8269 |
+
<label>Payment from Specific countries</label>
|
8270 |
+
<frontend_type>multiselect</frontend_type>
|
8271 |
+
<sort_order>110</sort_order>
|
8272 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
8273 |
+
<show_in_default>1</show_in_default>
|
8274 |
+
<show_in_website>1</show_in_website>
|
8275 |
+
<show_in_store>1</show_in_store>
|
8276 |
+
</specificcountry>
|
8277 |
+
<currency translate="label">
|
8278 |
+
<label>Accepted Currency</label>
|
8279 |
+
<frontend_type>select</frontend_type>
|
8280 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
8281 |
+
<sort_order>111</sort_order>
|
8282 |
+
<show_in_default>1</show_in_default>
|
8283 |
+
<show_in_website>1</show_in_website>
|
8284 |
+
<show_in_store>1</show_in_store>
|
8285 |
+
</currency>
|
8286 |
+
<min_order_total translate="label">
|
8287 |
+
<label>Minimum Order Total</label>
|
8288 |
+
<frontend_type>text</frontend_type>
|
8289 |
+
<sort_order>120</sort_order>
|
8290 |
+
<show_in_default>1</show_in_default>
|
8291 |
+
<show_in_website>1</show_in_website>
|
8292 |
+
<show_in_store>1</show_in_store>
|
8293 |
+
</min_order_total>
|
8294 |
+
<max_order_total translate="label">
|
8295 |
+
<label>Maximum Order Total</label>
|
8296 |
+
<frontend_type>text</frontend_type>
|
8297 |
+
<sort_order>121</sort_order>
|
8298 |
+
<show_in_default>1</show_in_default>
|
8299 |
+
<show_in_website>1</show_in_website>
|
8300 |
+
<show_in_store>1</show_in_store>
|
8301 |
+
</max_order_total>
|
8302 |
+
<sort_order translate="label">
|
8303 |
+
<label>Sort Order</label>
|
8304 |
+
<frontend_type>text</frontend_type>
|
8305 |
+
<sort_order>130</sort_order>
|
8306 |
+
<show_in_default>1</show_in_default>
|
8307 |
+
<show_in_website>1</show_in_website>
|
8308 |
+
<show_in_store>1</show_in_store>
|
8309 |
+
</sort_order>
|
8310 |
+
<debug translate="label">
|
8311 |
+
<label>Enable debug log</label>
|
8312 |
+
<comment></comment>
|
8313 |
+
<frontend_type>select</frontend_type>
|
8314 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8315 |
+
<sort_order>150</sort_order>
|
8316 |
+
<show_in_default>1</show_in_default>
|
8317 |
+
<show_in_website>1</show_in_website>
|
8318 |
+
<show_in_store>0</show_in_store>
|
8319 |
+
</debug>
|
8320 |
+
<is_test_mode translate="label comment">
|
8321 |
+
<label>Enable test mode</label>
|
8322 |
+
<comment></comment>
|
8323 |
+
<frontend_type>select</frontend_type>
|
8324 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8325 |
+
<sort_order>200</sort_order>
|
8326 |
+
<show_in_default>1</show_in_default>
|
8327 |
+
<show_in_website>1</show_in_website>
|
8328 |
+
<show_in_store>1</show_in_store>
|
8329 |
+
</is_test_mode>
|
8330 |
+
</fields>
|
8331 |
+
</hipay_oxxo>
|
8332 |
+
<hipay_bbva translate="label" module="hipay">
|
8333 |
+
<label>HiPay Enterprise BBVA Bancomer</label>
|
8334 |
+
<frontend_type>text</frontend_type>
|
8335 |
+
<sort_order>249</sort_order>
|
8336 |
+
<show_in_default>1</show_in_default>
|
8337 |
+
<show_in_website>1</show_in_website>
|
8338 |
+
<show_in_store>1</show_in_store>
|
8339 |
+
<fields>
|
8340 |
+
<active translate="label">
|
8341 |
+
<label>Enabled</label>
|
8342 |
+
<frontend_type>select</frontend_type>
|
8343 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8344 |
+
<sort_order>10</sort_order>
|
8345 |
+
<show_in_default>1</show_in_default>
|
8346 |
+
<show_in_website>1</show_in_website>
|
8347 |
+
<show_in_store>1</show_in_store>
|
8348 |
+
</active>
|
8349 |
+
<title translate="label">
|
8350 |
+
<label>Title</label>
|
8351 |
+
<frontend_type>text</frontend_type>
|
8352 |
+
<sort_order>20</sort_order>
|
8353 |
+
<show_in_default>1</show_in_default>
|
8354 |
+
<show_in_website>1</show_in_website>
|
8355 |
+
<show_in_store>1</show_in_store>
|
8356 |
+
</title>
|
8357 |
+
<order_status_payment_accepted translate="label">
|
8358 |
+
<label>Order status when payment accepted</label>
|
8359 |
+
<frontend_type>select</frontend_type>
|
8360 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
8361 |
+
<sort_order>23</sort_order>
|
8362 |
+
<show_in_default>1</show_in_default>
|
8363 |
+
<show_in_website>1</show_in_website>
|
8364 |
+
<show_in_store>0</show_in_store>
|
8365 |
+
</order_status_payment_accepted>
|
8366 |
+
<order_status_payment_refused translate="label">
|
8367 |
+
<label>Order status when payment refused</label>
|
8368 |
+
<frontend_type>select</frontend_type>
|
8369 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
8370 |
+
<sort_order>24</sort_order>
|
8371 |
+
<show_in_default>1</show_in_default>
|
8372 |
+
<show_in_website>1</show_in_website>
|
8373 |
+
<show_in_store>0</show_in_store>
|
8374 |
+
</order_status_payment_refused>
|
8375 |
+
<order_status_payment_canceled translate="label">
|
8376 |
+
<label>Order status when payment canceled by customer</label>
|
8377 |
+
<frontend_type>select</frontend_type>
|
8378 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
8379 |
+
<sort_order>25</sort_order>
|
8380 |
+
<show_in_default>1</show_in_default>
|
8381 |
+
<show_in_website>1</show_in_website>
|
8382 |
+
<show_in_store>0</show_in_store>
|
8383 |
+
</order_status_payment_canceled>
|
8384 |
+
<hipay_status_validate_order translate="label">
|
8385 |
+
<label>Hipay status to validate order</label>
|
8386 |
+
<frontend_type>select</frontend_type>
|
8387 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
8388 |
+
<sort_order>26</sort_order>
|
8389 |
+
<show_in_default>1</show_in_default>
|
8390 |
+
<show_in_website>1</show_in_website>
|
8391 |
+
<show_in_store>0</show_in_store>
|
8392 |
+
</hipay_status_validate_order>
|
8393 |
+
<success_redirect_page translate="label">
|
8394 |
+
<label>Redirect page success</label>
|
8395 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
8396 |
+
<frontend_type>text</frontend_type>
|
8397 |
+
<sort_order>26</sort_order>
|
8398 |
+
<show_in_default>1</show_in_default>
|
8399 |
+
<show_in_website>1</show_in_website>
|
8400 |
+
<show_in_store>0</show_in_store>
|
8401 |
+
</success_redirect_page>
|
8402 |
+
<pending_redirect_page translate="label">
|
8403 |
+
<label>Redirect page pending status</label>
|
8404 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
8405 |
+
<frontend_type>select</frontend_type>
|
8406 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
8407 |
+
<sort_order>27</sort_order>
|
8408 |
+
<show_in_default>1</show_in_default>
|
8409 |
+
<show_in_website>1</show_in_website>
|
8410 |
+
<show_in_store>0</show_in_store>
|
8411 |
+
</pending_redirect_page>
|
8412 |
+
<payment_action translate="label">
|
8413 |
+
<label>Payment Action</label>
|
8414 |
+
<frontend_type>select</frontend_type>
|
8415 |
+
<source_model>hipay/source_paymentAction</source_model>
|
8416 |
+
<sort_order>28</sort_order>
|
8417 |
+
<show_in_default>1</show_in_default>
|
8418 |
+
<show_in_website>1</show_in_website>
|
8419 |
+
<show_in_store>0</show_in_store>
|
8420 |
+
</payment_action>
|
8421 |
+
<css_url translate="label coment">
|
8422 |
+
<label>Css Url</label>
|
8423 |
+
<comment>Important, HTTPS protocol is required</comment>
|
8424 |
+
<frontend_type>text</frontend_type>
|
8425 |
+
<sort_order>30</sort_order>
|
8426 |
+
<show_in_default>1</show_in_default>
|
8427 |
+
<show_in_website>1</show_in_website>
|
8428 |
+
<show_in_store>1</show_in_store>
|
8429 |
+
</css_url>
|
8430 |
+
<template translate="label">
|
8431 |
+
<label>Page payment template</label>
|
8432 |
+
<frontend_type>select</frontend_type>
|
8433 |
+
<source_model>hipay/source_template</source_model>
|
8434 |
+
<sort_order>35</sort_order>
|
8435 |
+
<show_in_default>1</show_in_default>
|
8436 |
+
<show_in_website>1</show_in_website>
|
8437 |
+
<show_in_store>0</show_in_store>
|
8438 |
+
</template>
|
8439 |
+
<display_iframe translate="label">
|
8440 |
+
<label>Display hosted page in Iframe</label>
|
8441 |
+
<frontend_type>select</frontend_type>
|
8442 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8443 |
+
<sort_order>36</sort_order>
|
8444 |
+
<show_in_default>1</show_in_default>
|
8445 |
+
<show_in_website>1</show_in_website>
|
8446 |
+
<show_in_store>0</show_in_store>
|
8447 |
+
</display_iframe>
|
8448 |
+
<iframe_width translate="label">
|
8449 |
+
<label>iFrame Width</label>
|
8450 |
+
<frontend_type>text</frontend_type>
|
8451 |
+
<sort_order>37</sort_order>
|
8452 |
+
<show_in_default>1</show_in_default>
|
8453 |
+
<show_in_website>1</show_in_website>
|
8454 |
+
<show_in_store>1</show_in_store>
|
8455 |
+
</iframe_width>
|
8456 |
+
<iframe_height translate="label">
|
8457 |
+
<label>iFrame Height</label>
|
8458 |
+
<frontend_type>text</frontend_type>
|
8459 |
+
<sort_order>38</sort_order>
|
8460 |
+
<show_in_default>1</show_in_default>
|
8461 |
+
<show_in_website>1</show_in_website>
|
8462 |
+
<show_in_store>1</show_in_store>
|
8463 |
+
</iframe_height>
|
8464 |
+
<iframe_style translate="label">
|
8465 |
+
<label>iFrame Style</label>
|
8466 |
+
<frontend_type>text</frontend_type>show_in_website
|
8467 |
+
<sort_order>39</sort_order>
|
8468 |
+
<show_in_default>1</show_in_default>
|
8469 |
+
<show_in_website>1</show_in_website>
|
8470 |
+
<show_in_store>1</show_in_store>
|
8471 |
+
</iframe_style>
|
8472 |
+
<iframe_wrapper_style translate="label">
|
8473 |
+
<label>Wrapper iFrame Style</label>
|
8474 |
+
<frontend_type>text</frontend_type>
|
8475 |
+
<sort_order>39</sort_order>
|
8476 |
+
<show_in_default>1</show_in_default>
|
8477 |
+
<show_in_website>1</show_in_website>
|
8478 |
+
<show_in_store>1</show_in_store>
|
8479 |
+
</iframe_wrapper_style>
|
8480 |
+
<display_selector translate="label">
|
8481 |
+
<label>Display card selector</label>
|
8482 |
+
<frontend_type>select</frontend_type>
|
8483 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8484 |
+
<sort_order>40</sort_order>
|
8485 |
+
<show_in_default>1</show_in_default>
|
8486 |
+
<show_in_website>1</show_in_website>
|
8487 |
+
<show_in_store>0</show_in_store>
|
8488 |
+
</display_selector>
|
8489 |
+
<use_3d_secure translate="label">
|
8490 |
+
<label>Use 3D Secure</label>
|
8491 |
+
<frontend_type>select</frontend_type>
|
8492 |
+
<source_model>hipay/source_3ds</source_model>
|
8493 |
+
<sort_order>60</sort_order>
|
8494 |
+
<show_in_default>1</show_in_default>
|
8495 |
+
<show_in_website>1</show_in_website>
|
8496 |
+
<show_in_store>0</show_in_store>
|
8497 |
+
</use_3d_secure>
|
8498 |
+
<config_3ds_rules translate="label comment">
|
8499 |
+
<label>Rules 3D Secure</label>
|
8500 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
8501 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
8502 |
+
<backend_model>hipay/rule_config</backend_model>
|
8503 |
+
<sort_order>61</sort_order>
|
8504 |
+
<show_in_default>1</show_in_default>
|
8505 |
+
<show_in_website>1</show_in_website>
|
8506 |
+
<show_in_store>0</show_in_store>
|
8507 |
+
</config_3ds_rules>
|
8508 |
+
<send_fraud_payment_email translate="label">
|
8509 |
+
<label>Send fraud payment email</label>
|
8510 |
+
<frontend_type>select</frontend_type>
|
8511 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8512 |
+
<sort_order>63</sort_order>
|
8513 |
+
<show_in_default>1</show_in_default>
|
8514 |
+
<show_in_website>1</show_in_website>
|
8515 |
+
<show_in_store>1</show_in_store>
|
8516 |
+
</send_fraud_payment_email>
|
8517 |
+
<!-- @deprecated since version 1.2.6 -->
|
8518 |
+
<!-- <allow_split_payment translate="label">
|
8519 |
+
<label>Use Split Payment</label>
|
8520 |
+
<frontend_type>select</frontend_type>
|
8521 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
8522 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8523 |
+
<sort_order>65</sort_order>
|
8524 |
+
<show_in_default>1</show_in_default>
|
8525 |
+
<show_in_website>1</show_in_website>
|
8526 |
+
<show_in_store>0</show_in_store>
|
8527 |
+
</allow_split_payment>
|
8528 |
+
<split_payment_profile translate="label">
|
8529 |
+
<label>Payment Profile</label>
|
8530 |
+
<frontend_type>multiselect</frontend_type>
|
8531 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
8532 |
+
<sort_order>66</sort_order>
|
8533 |
+
<show_in_default>1</show_in_default>
|
8534 |
+
<show_in_website>1</show_in_website>
|
8535 |
+
<show_in_store>0</show_in_store>
|
8536 |
+
</split_payment_profile>
|
8537 |
+
<min_order_total_split_payment translate="label">
|
8538 |
+
<label>Minimum Order Total for Split Payment</label>
|
8539 |
+
<frontend_type>text</frontend_type>
|
8540 |
+
<sort_order>68</sort_order>
|
8541 |
+
<show_in_default>1</show_in_default>
|
8542 |
+
<show_in_website>1</show_in_website>
|
8543 |
+
<show_in_store>1</show_in_store>
|
8544 |
+
</min_order_total_split_payment> -->
|
8545 |
+
<allow_use_oneclick translate="label">
|
8546 |
+
<label>Use Oneclick</label>
|
8547 |
+
<frontend_type>select</frontend_type>
|
8548 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8549 |
+
<sort_order>70</sort_order>
|
8550 |
+
<show_in_default>1</show_in_default>
|
8551 |
+
<show_in_website>1</show_in_website>
|
8552 |
+
<show_in_store>0</show_in_store>
|
8553 |
+
</allow_use_oneclick>
|
8554 |
+
<filter_oneclick translate="label comment">
|
8555 |
+
<label>Rules Oneclick</label>
|
8556 |
+
<comment>Configure Rules to activate oneclick</comment>
|
8557 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
8558 |
+
<backend_model>hipay/rule_config</backend_model>
|
8559 |
+
<sort_order>80</sort_order>
|
8560 |
+
<show_in_default>1</show_in_default>
|
8561 |
+
<show_in_website>1</show_in_website>
|
8562 |
+
<show_in_store>0</show_in_store>
|
8563 |
+
</filter_oneclick>
|
8564 |
+
<re_add_to_cart translate="label comment">
|
8565 |
+
<label>Add product to cart</label>
|
8566 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
8567 |
+
<frontend_type>select</frontend_type>
|
8568 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8569 |
+
<sort_order>95</sort_order>
|
8570 |
+
<show_in_default>1</show_in_default>
|
8571 |
+
<show_in_website>1</show_in_website>
|
8572 |
+
<show_in_store>0</show_in_store>
|
8573 |
+
</re_add_to_cart>
|
8574 |
+
<cancel_pending_order translate="label comment">
|
8575 |
+
<label>Cancel pending order</label>
|
8576 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
8577 |
+
<frontend_type>select</frontend_type>
|
8578 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8579 |
+
<sort_order>97</sort_order>
|
8580 |
+
<show_in_default>1</show_in_default>
|
8581 |
+
<show_in_website>1</show_in_website>
|
8582 |
+
<show_in_store>0</show_in_store>
|
8583 |
+
</cancel_pending_order>
|
8584 |
+
<send_fraud_payment_email translate="label">
|
8585 |
+
<label>Send fraud payment email</label>
|
8586 |
+
<frontend_type>select</frontend_type>
|
8587 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8588 |
+
<sort_order>99</sort_order>
|
8589 |
+
<show_in_default>1</show_in_default>
|
8590 |
+
<show_in_website>1</show_in_website>
|
8591 |
+
<show_in_store>1</show_in_store>
|
8592 |
+
</send_fraud_payment_email>
|
8593 |
+
<allowspecific translate="label">
|
8594 |
+
<label>Payment from applicable countries</label>
|
8595 |
+
<frontend_type>allowspecific</frontend_type>
|
8596 |
+
<sort_order>100</sort_order>
|
8597 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
8598 |
+
<show_in_default>1</show_in_default>
|
8599 |
+
<show_in_website>1</show_in_website>
|
8600 |
+
<show_in_store>1</show_in_store>
|
8601 |
+
</allowspecific>
|
8602 |
+
<specificcountry translate="label">
|
8603 |
+
<label>Payment from Specific countries</label>
|
8604 |
+
<frontend_type>multiselect</frontend_type>
|
8605 |
+
<sort_order>110</sort_order>
|
8606 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
8607 |
+
<show_in_default>1</show_in_default>
|
8608 |
+
<show_in_website>1</show_in_website>
|
8609 |
+
<show_in_store>1</show_in_store>
|
8610 |
+
</specificcountry>
|
8611 |
+
<currency translate="label">
|
8612 |
+
<label>Accepted Currency</label>
|
8613 |
+
<frontend_type>select</frontend_type>
|
8614 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
8615 |
+
<sort_order>111</sort_order>
|
8616 |
+
<show_in_default>1</show_in_default>
|
8617 |
+
<show_in_website>1</show_in_website>
|
8618 |
+
<show_in_store>1</show_in_store>
|
8619 |
+
</currency>
|
8620 |
+
<min_order_total translate="label">
|
8621 |
+
<label>Minimum Order Total</label>
|
8622 |
+
<frontend_type>text</frontend_type>
|
8623 |
+
<sort_order>120</sort_order>
|
8624 |
+
<show_in_default>1</show_in_default>
|
8625 |
+
<show_in_website>1</show_in_website>
|
8626 |
+
<show_in_store>1</show_in_store>
|
8627 |
+
</min_order_total>
|
8628 |
+
<max_order_total translate="label">
|
8629 |
+
<label>Maximum Order Total</label>
|
8630 |
+
<frontend_type>text</frontend_type>
|
8631 |
+
<sort_order>121</sort_order>
|
8632 |
+
<show_in_default>1</show_in_default>
|
8633 |
+
<show_in_website>1</show_in_website>
|
8634 |
+
<show_in_store>1</show_in_store>
|
8635 |
+
</max_order_total>
|
8636 |
+
<sort_order translate="label">
|
8637 |
+
<label>Sort Order</label>
|
8638 |
+
<frontend_type>text</frontend_type>
|
8639 |
+
<sort_order>130</sort_order>
|
8640 |
+
<show_in_default>1</show_in_default>
|
8641 |
+
<show_in_website>1</show_in_website>
|
8642 |
+
<show_in_store>1</show_in_store>
|
8643 |
+
</sort_order>
|
8644 |
+
<debug translate="label">
|
8645 |
+
<label>Enable debug log</label>
|
8646 |
+
<comment></comment>
|
8647 |
+
<frontend_type>select</frontend_type>
|
8648 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8649 |
+
<sort_order>150</sort_order>
|
8650 |
+
<show_in_default>1</show_in_default>
|
8651 |
+
<show_in_website>1</show_in_website>
|
8652 |
+
<show_in_store>0</show_in_store>
|
8653 |
+
</debug>
|
8654 |
+
<is_test_mode translate="label comment">
|
8655 |
+
<label>Enable test mode</label>
|
8656 |
+
<comment></comment>
|
8657 |
+
<frontend_type>select</frontend_type>
|
8658 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8659 |
+
<sort_order>200</sort_order>
|
8660 |
+
<show_in_default>1</show_in_default>
|
8661 |
+
<show_in_website>1</show_in_website>
|
8662 |
+
<show_in_store>1</show_in_store>
|
8663 |
+
</is_test_mode>
|
8664 |
+
</fields>
|
8665 |
+
</hipay_bbva>
|
8666 |
+
<hipay_banamex translate="label" module="hipay">
|
8667 |
+
<label>HiPay Enterprise Banamex</label>
|
8668 |
+
<frontend_type>text</frontend_type>
|
8669 |
+
<sort_order>250</sort_order>
|
8670 |
+
<show_in_default>1</show_in_default>
|
8671 |
+
<show_in_website>1</show_in_website>
|
8672 |
+
<show_in_store>1</show_in_store>
|
8673 |
+
<fields>
|
8674 |
+
<active translate="label">
|
8675 |
+
<label>Enabled</label>
|
8676 |
+
<frontend_type>select</frontend_type>
|
8677 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8678 |
+
<sort_order>10</sort_order>
|
8679 |
+
<show_in_default>1</show_in_default>
|
8680 |
+
<show_in_website>1</show_in_website>
|
8681 |
+
<show_in_store>1</show_in_store>
|
8682 |
+
</active>
|
8683 |
+
<title translate="label">
|
8684 |
+
<label>Title</label>
|
8685 |
+
<frontend_type>text</frontend_type>
|
8686 |
+
<sort_order>20</sort_order>
|
8687 |
+
<show_in_default>1</show_in_default>
|
8688 |
+
<show_in_website>1</show_in_website>
|
8689 |
+
<show_in_store>1</show_in_store>
|
8690 |
+
</title>
|
8691 |
+
<order_status_payment_accepted translate="label">
|
8692 |
+
<label>Order status when payment accepted</label>
|
8693 |
+
<frontend_type>select</frontend_type>
|
8694 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
8695 |
+
<sort_order>23</sort_order>
|
8696 |
+
<show_in_default>1</show_in_default>
|
8697 |
+
<show_in_website>1</show_in_website>
|
8698 |
+
<show_in_store>0</show_in_store>
|
8699 |
+
</order_status_payment_accepted>
|
8700 |
+
<order_status_payment_refused translate="label">
|
8701 |
+
<label>Order status when payment refused</label>
|
8702 |
+
<frontend_type>select</frontend_type>
|
8703 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
8704 |
+
<sort_order>24</sort_order>
|
8705 |
+
<show_in_default>1</show_in_default>
|
8706 |
+
<show_in_website>1</show_in_website>
|
8707 |
+
<show_in_store>0</show_in_store>
|
8708 |
+
</order_status_payment_refused>
|
8709 |
+
<order_status_payment_canceled translate="label">
|
8710 |
+
<label>Order status when payment canceled by customer</label>
|
8711 |
+
<frontend_type>select</frontend_type>
|
8712 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
8713 |
+
<sort_order>25</sort_order>
|
8714 |
+
<show_in_default>1</show_in_default>
|
8715 |
+
<show_in_website>1</show_in_website>
|
8716 |
+
<show_in_store>0</show_in_store>
|
8717 |
+
</order_status_payment_canceled>
|
8718 |
+
<hipay_status_validate_order translate="label">
|
8719 |
+
<label>Hipay status to validate order</label>
|
8720 |
+
<frontend_type>select</frontend_type>
|
8721 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
8722 |
+
<sort_order>26</sort_order>
|
8723 |
+
<show_in_default>1</show_in_default>
|
8724 |
+
<show_in_website>1</show_in_website>
|
8725 |
+
<show_in_store>0</show_in_store>
|
8726 |
+
</hipay_status_validate_order>
|
8727 |
+
<success_redirect_page translate="label">
|
8728 |
+
<label>Redirect page success</label>
|
8729 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
8730 |
+
<frontend_type>text</frontend_type>
|
8731 |
+
<sort_order>26</sort_order>
|
8732 |
+
<show_in_default>1</show_in_default>
|
8733 |
+
<show_in_website>1</show_in_website>
|
8734 |
+
<show_in_store>0</show_in_store>
|
8735 |
+
</success_redirect_page>
|
8736 |
+
<pending_redirect_page translate="label">
|
8737 |
+
<label>Redirect page pending status</label>
|
8738 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
8739 |
+
<frontend_type>select</frontend_type>
|
8740 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
8741 |
+
<sort_order>27</sort_order>
|
8742 |
+
<show_in_default>1</show_in_default>
|
8743 |
+
<show_in_website>1</show_in_website>
|
8744 |
+
<show_in_store>0</show_in_store>
|
8745 |
+
</pending_redirect_page>
|
8746 |
+
<payment_action translate="label">
|
8747 |
+
<label>Payment Action</label>
|
8748 |
+
<frontend_type>select</frontend_type>
|
8749 |
+
<source_model>hipay/source_paymentAction</source_model>
|
8750 |
+
<sort_order>28</sort_order>
|
8751 |
+
<show_in_default>1</show_in_default>
|
8752 |
+
<show_in_website>1</show_in_website>
|
8753 |
+
<show_in_store>0</show_in_store>
|
8754 |
+
</payment_action>
|
8755 |
+
<css_url translate="label coment">
|
8756 |
+
<label>Css Url</label>
|
8757 |
+
<comment>Important, HTTPS protocol is required</comment>
|
8758 |
+
<frontend_type>text</frontend_type>
|
8759 |
+
<sort_order>30</sort_order>
|
8760 |
+
<show_in_default>1</show_in_default>
|
8761 |
+
<show_in_website>1</show_in_website>
|
8762 |
+
<show_in_store>1</show_in_store>
|
8763 |
+
</css_url>
|
8764 |
+
<template translate="label">
|
8765 |
+
<label>Page payment template</label>
|
8766 |
+
<frontend_type>select</frontend_type>
|
8767 |
+
<source_model>hipay/source_template</source_model>
|
8768 |
+
<sort_order>35</sort_order>
|
8769 |
+
<show_in_default>1</show_in_default>
|
8770 |
+
<show_in_website>1</show_in_website>
|
8771 |
+
<show_in_store>0</show_in_store>
|
8772 |
+
</template>
|
8773 |
+
<display_iframe translate="label">
|
8774 |
+
<label>Display hosted page in Iframe</label>
|
8775 |
+
<frontend_type>select</frontend_type>
|
8776 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8777 |
+
<sort_order>36</sort_order>
|
8778 |
+
<show_in_default>1</show_in_default>
|
8779 |
+
<show_in_website>1</show_in_website>
|
8780 |
+
<show_in_store>0</show_in_store>
|
8781 |
+
</display_iframe>
|
8782 |
+
<iframe_width translate="label">
|
8783 |
+
<label>iFrame Width</label>
|
8784 |
+
<frontend_type>text</frontend_type>
|
8785 |
+
<sort_order>37</sort_order>
|
8786 |
+
<show_in_default>1</show_in_default>
|
8787 |
+
<show_in_website>1</show_in_website>
|
8788 |
+
<show_in_store>1</show_in_store>
|
8789 |
+
</iframe_width>
|
8790 |
+
<iframe_height translate="label">
|
8791 |
+
<label>iFrame Height</label>
|
8792 |
+
<frontend_type>text</frontend_type>
|
8793 |
+
<sort_order>38</sort_order>
|
8794 |
+
<show_in_default>1</show_in_default>
|
8795 |
+
<show_in_website>1</show_in_website>
|
8796 |
+
<show_in_store>1</show_in_store>
|
8797 |
+
</iframe_height>
|
8798 |
+
<iframe_style translate="label">
|
8799 |
+
<label>iFrame Style</label>
|
8800 |
+
<frontend_type>text</frontend_type>show_in_website
|
8801 |
+
<sort_order>39</sort_order>
|
8802 |
+
<show_in_default>1</show_in_default>
|
8803 |
+
<show_in_website>1</show_in_website>
|
8804 |
+
<show_in_store>1</show_in_store>
|
8805 |
+
</iframe_style>
|
8806 |
+
<iframe_wrapper_style translate="label">
|
8807 |
+
<label>Wrapper iFrame Style</label>
|
8808 |
+
<frontend_type>text</frontend_type>
|
8809 |
+
<sort_order>39</sort_order>
|
8810 |
+
<show_in_default>1</show_in_default>
|
8811 |
+
<show_in_website>1</show_in_website>
|
8812 |
+
<show_in_store>1</show_in_store>
|
8813 |
+
</iframe_wrapper_style>
|
8814 |
+
<display_selector translate="label">
|
8815 |
+
<label>Display card selector</label>
|
8816 |
+
<frontend_type>select</frontend_type>
|
8817 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8818 |
+
<sort_order>40</sort_order>
|
8819 |
+
<show_in_default>1</show_in_default>
|
8820 |
+
<show_in_website>1</show_in_website>
|
8821 |
+
<show_in_store>0</show_in_store>
|
8822 |
+
</display_selector>
|
8823 |
+
<use_3d_secure translate="label">
|
8824 |
+
<label>Use 3D Secure</label>
|
8825 |
+
<frontend_type>select</frontend_type>
|
8826 |
+
<source_model>hipay/source_3ds</source_model>
|
8827 |
+
<sort_order>60</sort_order>
|
8828 |
+
<show_in_default>1</show_in_default>
|
8829 |
+
<show_in_website>1</show_in_website>
|
8830 |
+
<show_in_store>0</show_in_store>
|
8831 |
+
</use_3d_secure>
|
8832 |
+
<config_3ds_rules translate="label comment">
|
8833 |
+
<label>Rules 3D Secure</label>
|
8834 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
8835 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
8836 |
+
<backend_model>hipay/rule_config</backend_model>
|
8837 |
+
<sort_order>61</sort_order>
|
8838 |
+
<show_in_default>1</show_in_default>
|
8839 |
+
<show_in_website>1</show_in_website>
|
8840 |
+
<show_in_store>0</show_in_store>
|
8841 |
+
</config_3ds_rules>
|
8842 |
+
<send_fraud_payment_email translate="label">
|
8843 |
+
<label>Send fraud payment email</label>
|
8844 |
+
<frontend_type>select</frontend_type>
|
8845 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8846 |
+
<sort_order>63</sort_order>
|
8847 |
+
<show_in_default>1</show_in_default>
|
8848 |
+
<show_in_website>1</show_in_website>
|
8849 |
+
<show_in_store>1</show_in_store>
|
8850 |
+
</send_fraud_payment_email>
|
8851 |
+
<!-- @deprecated since version 1.2.6 -->
|
8852 |
+
<!-- <allow_split_payment translate="label">
|
8853 |
+
<label>Use Split Payment</label>
|
8854 |
+
<frontend_type>select</frontend_type>
|
8855 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
8856 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8857 |
+
<sort_order>65</sort_order>
|
8858 |
+
<show_in_default>1</show_in_default>
|
8859 |
+
<show_in_website>1</show_in_website>
|
8860 |
+
<show_in_store>0</show_in_store>
|
8861 |
+
</allow_split_payment>
|
8862 |
+
<split_payment_profile translate="label">
|
8863 |
+
<label>Payment Profile</label>
|
8864 |
+
<frontend_type>multiselect</frontend_type>
|
8865 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
8866 |
+
<sort_order>66</sort_order>
|
8867 |
+
<show_in_default>1</show_in_default>
|
8868 |
+
<show_in_website>1</show_in_website>
|
8869 |
+
<show_in_store>0</show_in_store>
|
8870 |
+
</split_payment_profile>
|
8871 |
+
<min_order_total_split_payment translate="label">
|
8872 |
+
<label>Minimum Order Total for Split Payment</label>
|
8873 |
+
<frontend_type>text</frontend_type>
|
8874 |
+
<sort_order>68</sort_order>
|
8875 |
+
<show_in_default>1</show_in_default>
|
8876 |
+
<show_in_website>1</show_in_website>
|
8877 |
+
<show_in_store>1</show_in_store>
|
8878 |
+
</min_order_total_split_payment> -->
|
8879 |
+
<allow_use_oneclick translate="label">
|
8880 |
+
<label>Use Oneclick</label>
|
8881 |
+
<frontend_type>select</frontend_type>
|
8882 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8883 |
+
<sort_order>70</sort_order>
|
8884 |
+
<show_in_default>1</show_in_default>
|
8885 |
+
<show_in_website>1</show_in_website>
|
8886 |
+
<show_in_store>0</show_in_store>
|
8887 |
+
</allow_use_oneclick>
|
8888 |
+
<filter_oneclick translate="label comment">
|
8889 |
+
<label>Rules Oneclick</label>
|
8890 |
+
<comment>Configure Rules to activate oneclick</comment>
|
8891 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
8892 |
+
<backend_model>hipay/rule_config</backend_model>
|
8893 |
+
<sort_order>80</sort_order>
|
8894 |
+
<show_in_default>1</show_in_default>
|
8895 |
+
<show_in_website>1</show_in_website>
|
8896 |
+
<show_in_store>0</show_in_store>
|
8897 |
+
</filter_oneclick>
|
8898 |
+
<re_add_to_cart translate="label comment">
|
8899 |
+
<label>Add product to cart</label>
|
8900 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
8901 |
+
<frontend_type>select</frontend_type>
|
8902 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8903 |
+
<sort_order>95</sort_order>
|
8904 |
+
<show_in_default>1</show_in_default>
|
8905 |
+
<show_in_website>1</show_in_website>
|
8906 |
+
<show_in_store>0</show_in_store>
|
8907 |
+
</re_add_to_cart>
|
8908 |
+
<cancel_pending_order translate="label comment">
|
8909 |
+
<label>Cancel pending order</label>
|
8910 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
8911 |
+
<frontend_type>select</frontend_type>
|
8912 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8913 |
+
<sort_order>97</sort_order>
|
8914 |
+
<show_in_default>1</show_in_default>
|
8915 |
+
<show_in_website>1</show_in_website>
|
8916 |
+
<show_in_store>0</show_in_store>
|
8917 |
+
</cancel_pending_order>
|
8918 |
+
<send_fraud_payment_email translate="label">
|
8919 |
+
<label>Send fraud payment email</label>
|
8920 |
+
<frontend_type>select</frontend_type>
|
8921 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8922 |
+
<sort_order>99</sort_order>
|
8923 |
+
<show_in_default>1</show_in_default>
|
8924 |
+
<show_in_website>1</show_in_website>
|
8925 |
+
<show_in_store>1</show_in_store>
|
8926 |
+
</send_fraud_payment_email>
|
8927 |
+
<allowspecific translate="label">
|
8928 |
+
<label>Payment from applicable countries</label>
|
8929 |
+
<frontend_type>allowspecific</frontend_type>
|
8930 |
+
<sort_order>100</sort_order>
|
8931 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
8932 |
+
<show_in_default>1</show_in_default>
|
8933 |
+
<show_in_website>1</show_in_website>
|
8934 |
+
<show_in_store>1</show_in_store>
|
8935 |
+
</allowspecific>
|
8936 |
+
<specificcountry translate="label">
|
8937 |
+
<label>Payment from Specific countries</label>
|
8938 |
+
<frontend_type>multiselect</frontend_type>
|
8939 |
+
<sort_order>110</sort_order>
|
8940 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
8941 |
+
<show_in_default>1</show_in_default>
|
8942 |
+
<show_in_website>1</show_in_website>
|
8943 |
+
<show_in_store>1</show_in_store>
|
8944 |
+
</specificcountry>
|
8945 |
+
<currency translate="label">
|
8946 |
+
<label>Accepted Currency</label>
|
8947 |
+
<frontend_type>select</frontend_type>
|
8948 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
8949 |
+
<sort_order>111</sort_order>
|
8950 |
+
<show_in_default>1</show_in_default>
|
8951 |
+
<show_in_website>1</show_in_website>
|
8952 |
+
<show_in_store>1</show_in_store>
|
8953 |
+
</currency>
|
8954 |
+
<min_order_total translate="label">
|
8955 |
+
<label>Minimum Order Total</label>
|
8956 |
+
<frontend_type>text</frontend_type>
|
8957 |
+
<sort_order>120</sort_order>
|
8958 |
+
<show_in_default>1</show_in_default>
|
8959 |
+
<show_in_website>1</show_in_website>
|
8960 |
+
<show_in_store>1</show_in_store>
|
8961 |
+
</min_order_total>
|
8962 |
+
<max_order_total translate="label">
|
8963 |
+
<label>Maximum Order Total</label>
|
8964 |
+
<frontend_type>text</frontend_type>
|
8965 |
+
<sort_order>121</sort_order>
|
8966 |
+
<show_in_default>1</show_in_default>
|
8967 |
+
<show_in_website>1</show_in_website>
|
8968 |
+
<show_in_store>1</show_in_store>
|
8969 |
+
</max_order_total>
|
8970 |
+
<sort_order translate="label">
|
8971 |
+
<label>Sort Order</label>
|
8972 |
+
<frontend_type>text</frontend_type>
|
8973 |
+
<sort_order>130</sort_order>
|
8974 |
+
<show_in_default>1</show_in_default>
|
8975 |
+
<show_in_website>1</show_in_website>
|
8976 |
+
<show_in_store>1</show_in_store>
|
8977 |
+
</sort_order>
|
8978 |
+
<debug translate="label">
|
8979 |
+
<label>Enable debug log</label>
|
8980 |
+
<comment></comment>
|
8981 |
+
<frontend_type>select</frontend_type>
|
8982 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8983 |
+
<sort_order>150</sort_order>
|
8984 |
+
<show_in_default>1</show_in_default>
|
8985 |
+
<show_in_website>1</show_in_website>
|
8986 |
+
<show_in_store>0</show_in_store>
|
8987 |
+
</debug>
|
8988 |
+
<is_test_mode translate="label comment">
|
8989 |
+
<label>Enable test mode</label>
|
8990 |
+
<comment></comment>
|
8991 |
+
<frontend_type>select</frontend_type>
|
8992 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
8993 |
+
<sort_order>200</sort_order>
|
8994 |
+
<show_in_default>1</show_in_default>
|
8995 |
+
<show_in_website>1</show_in_website>
|
8996 |
+
<show_in_store>1</show_in_store>
|
8997 |
+
</is_test_mode>
|
8998 |
+
</fields>
|
8999 |
+
</hipay_banamex>
|
9000 |
+
<hipay_santadercash translate="label" module="hipay">
|
9001 |
+
<label>HiPay Enterprise Santader Cash</label>
|
9002 |
+
<frontend_type>text</frontend_type>
|
9003 |
+
<sort_order>251</sort_order>
|
9004 |
+
<show_in_default>1</show_in_default>
|
9005 |
+
<show_in_website>1</show_in_website>
|
9006 |
+
<show_in_store>1</show_in_store>
|
9007 |
+
<fields>
|
9008 |
+
<active translate="label">
|
9009 |
+
<label>Enabled</label>
|
9010 |
+
<frontend_type>select</frontend_type>
|
9011 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9012 |
+
<sort_order>10</sort_order>
|
9013 |
+
<show_in_default>1</show_in_default>
|
9014 |
+
<show_in_website>1</show_in_website>
|
9015 |
+
<show_in_store>1</show_in_store>
|
9016 |
+
</active>
|
9017 |
+
<title translate="label">
|
9018 |
+
<label>Title</label>
|
9019 |
+
<frontend_type>text</frontend_type>
|
9020 |
+
<sort_order>20</sort_order>
|
9021 |
+
<show_in_default>1</show_in_default>
|
9022 |
+
<show_in_website>1</show_in_website>
|
9023 |
+
<show_in_store>1</show_in_store>
|
9024 |
+
</title>
|
9025 |
+
<order_status_payment_accepted translate="label">
|
9026 |
+
<label>Order status when payment accepted</label>
|
9027 |
+
<frontend_type>select</frontend_type>
|
9028 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
9029 |
+
<sort_order>23</sort_order>
|
9030 |
+
<show_in_default>1</show_in_default>
|
9031 |
+
<show_in_website>1</show_in_website>
|
9032 |
+
<show_in_store>0</show_in_store>
|
9033 |
+
</order_status_payment_accepted>
|
9034 |
+
<order_status_payment_refused translate="label">
|
9035 |
+
<label>Order status when payment refused</label>
|
9036 |
+
<frontend_type>select</frontend_type>
|
9037 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
9038 |
+
<sort_order>24</sort_order>
|
9039 |
+
<show_in_default>1</show_in_default>
|
9040 |
+
<show_in_website>1</show_in_website>
|
9041 |
+
<show_in_store>0</show_in_store>
|
9042 |
+
</order_status_payment_refused>
|
9043 |
+
<order_status_payment_canceled translate="label">
|
9044 |
+
<label>Order status when payment canceled by customer</label>
|
9045 |
+
<frontend_type>select</frontend_type>
|
9046 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
9047 |
+
<sort_order>25</sort_order>
|
9048 |
+
<show_in_default>1</show_in_default>
|
9049 |
+
<show_in_website>1</show_in_website>
|
9050 |
+
<show_in_store>0</show_in_store>
|
9051 |
+
</order_status_payment_canceled>
|
9052 |
+
<hipay_status_validate_order translate="label">
|
9053 |
+
<label>Hipay status to validate order</label>
|
9054 |
+
<frontend_type>select</frontend_type>
|
9055 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
9056 |
+
<sort_order>26</sort_order>
|
9057 |
+
<show_in_default>1</show_in_default>
|
9058 |
+
<show_in_website>1</show_in_website>
|
9059 |
+
<show_in_store>0</show_in_store>
|
9060 |
+
</hipay_status_validate_order>
|
9061 |
+
<success_redirect_page translate="label">
|
9062 |
+
<label>Redirect page success</label>
|
9063 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
9064 |
+
<frontend_type>text</frontend_type>
|
9065 |
+
<sort_order>26</sort_order>
|
9066 |
+
<show_in_default>1</show_in_default>
|
9067 |
+
<show_in_website>1</show_in_website>
|
9068 |
+
<show_in_store>0</show_in_store>
|
9069 |
+
</success_redirect_page>
|
9070 |
+
<pending_redirect_page translate="label">
|
9071 |
+
<label>Redirect page pending status</label>
|
9072 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
9073 |
+
<frontend_type>select</frontend_type>
|
9074 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
9075 |
+
<sort_order>27</sort_order>
|
9076 |
+
<show_in_default>1</show_in_default>
|
9077 |
+
<show_in_website>1</show_in_website>
|
9078 |
+
<show_in_store>0</show_in_store>
|
9079 |
+
</pending_redirect_page>
|
9080 |
+
<payment_action translate="label">
|
9081 |
+
<label>Payment Action</label>
|
9082 |
+
<frontend_type>select</frontend_type>
|
9083 |
+
<source_model>hipay/source_paymentAction</source_model>
|
9084 |
+
<sort_order>28</sort_order>
|
9085 |
+
<show_in_default>1</show_in_default>
|
9086 |
+
<show_in_website>1</show_in_website>
|
9087 |
+
<show_in_store>0</show_in_store>
|
9088 |
+
</payment_action>
|
9089 |
+
<css_url translate="label coment">
|
9090 |
+
<label>Css Url</label>
|
9091 |
+
<comment>Important, HTTPS protocol is required</comment>
|
9092 |
+
<frontend_type>text</frontend_type>
|
9093 |
+
<sort_order>30</sort_order>
|
9094 |
+
<show_in_default>1</show_in_default>
|
9095 |
+
<show_in_website>1</show_in_website>
|
9096 |
+
<show_in_store>1</show_in_store>
|
9097 |
+
</css_url>
|
9098 |
+
<template translate="label">
|
9099 |
+
<label>Page payment template</label>
|
9100 |
+
<frontend_type>select</frontend_type>
|
9101 |
+
<source_model>hipay/source_template</source_model>
|
9102 |
+
<sort_order>35</sort_order>
|
9103 |
+
<show_in_default>1</show_in_default>
|
9104 |
+
<show_in_website>1</show_in_website>
|
9105 |
+
<show_in_store>0</show_in_store>
|
9106 |
+
</template>
|
9107 |
+
<display_iframe translate="label">
|
9108 |
+
<label>Display hosted page in Iframe</label>
|
9109 |
+
<frontend_type>select</frontend_type>
|
9110 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9111 |
+
<sort_order>36</sort_order>
|
9112 |
+
<show_in_default>1</show_in_default>
|
9113 |
+
<show_in_website>1</show_in_website>
|
9114 |
+
<show_in_store>0</show_in_store>
|
9115 |
+
</display_iframe>
|
9116 |
+
<iframe_width translate="label">
|
9117 |
+
<label>iFrame Width</label>
|
9118 |
+
<frontend_type>text</frontend_type>
|
9119 |
+
<sort_order>37</sort_order>
|
9120 |
+
<show_in_default>1</show_in_default>
|
9121 |
+
<show_in_website>1</show_in_website>
|
9122 |
+
<show_in_store>1</show_in_store>
|
9123 |
+
</iframe_width>
|
9124 |
+
<iframe_height translate="label">
|
9125 |
+
<label>iFrame Height</label>
|
9126 |
+
<frontend_type>text</frontend_type>
|
9127 |
+
<sort_order>38</sort_order>
|
9128 |
+
<show_in_default>1</show_in_default>
|
9129 |
+
<show_in_website>1</show_in_website>
|
9130 |
+
<show_in_store>1</show_in_store>
|
9131 |
+
</iframe_height>
|
9132 |
+
<iframe_style translate="label">
|
9133 |
+
<label>iFrame Style</label>
|
9134 |
+
<frontend_type>text</frontend_type>show_in_website
|
9135 |
+
<sort_order>39</sort_order>
|
9136 |
+
<show_in_default>1</show_in_default>
|
9137 |
+
<show_in_website>1</show_in_website>
|
9138 |
+
<show_in_store>1</show_in_store>
|
9139 |
+
</iframe_style>
|
9140 |
+
<iframe_wrapper_style translate="label">
|
9141 |
+
<label>Wrapper iFrame Style</label>
|
9142 |
+
<frontend_type>text</frontend_type>
|
9143 |
+
<sort_order>39</sort_order>
|
9144 |
+
<show_in_default>1</show_in_default>
|
9145 |
+
<show_in_website>1</show_in_website>
|
9146 |
+
<show_in_store>1</show_in_store>
|
9147 |
+
</iframe_wrapper_style>
|
9148 |
+
<display_selector translate="label">
|
9149 |
+
<label>Display card selector</label>
|
9150 |
+
<frontend_type>select</frontend_type>
|
9151 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9152 |
+
<sort_order>40</sort_order>
|
9153 |
+
<show_in_default>1</show_in_default>
|
9154 |
+
<show_in_website>1</show_in_website>
|
9155 |
+
<show_in_store>0</show_in_store>
|
9156 |
+
</display_selector>
|
9157 |
+
<use_3d_secure translate="label">
|
9158 |
+
<label>Use 3D Secure</label>
|
9159 |
+
<frontend_type>select</frontend_type>
|
9160 |
+
<source_model>hipay/source_3ds</source_model>
|
9161 |
+
<sort_order>60</sort_order>
|
9162 |
+
<show_in_default>1</show_in_default>
|
9163 |
+
<show_in_website>1</show_in_website>
|
9164 |
+
<show_in_store>0</show_in_store>
|
9165 |
+
</use_3d_secure>
|
9166 |
+
<config_3ds_rules translate="label comment">
|
9167 |
+
<label>Rules 3D Secure</label>
|
9168 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
9169 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
9170 |
+
<backend_model>hipay/rule_config</backend_model>
|
9171 |
+
<sort_order>61</sort_order>
|
9172 |
+
<show_in_default>1</show_in_default>
|
9173 |
+
<show_in_website>1</show_in_website>
|
9174 |
+
<show_in_store>0</show_in_store>
|
9175 |
+
</config_3ds_rules>
|
9176 |
+
<send_fraud_payment_email translate="label">
|
9177 |
+
<label>Send fraud payment email</label>
|
9178 |
+
<frontend_type>select</frontend_type>
|
9179 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9180 |
+
<sort_order>63</sort_order>
|
9181 |
+
<show_in_default>1</show_in_default>
|
9182 |
+
<show_in_website>1</show_in_website>
|
9183 |
+
<show_in_store>1</show_in_store>
|
9184 |
+
</send_fraud_payment_email>
|
9185 |
+
<!-- @deprecated since version 1.2.6 -->
|
9186 |
+
<!-- <allow_split_payment translate="label">
|
9187 |
+
<label>Use Split Payment</label>
|
9188 |
+
<frontend_type>select</frontend_type>
|
9189 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
9190 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9191 |
+
<sort_order>65</sort_order>
|
9192 |
+
<show_in_default>1</show_in_default>
|
9193 |
+
<show_in_website>1</show_in_website>
|
9194 |
+
<show_in_store>0</show_in_store>
|
9195 |
+
</allow_split_payment>
|
9196 |
+
<split_payment_profile translate="label">
|
9197 |
+
<label>Payment Profile</label>
|
9198 |
+
<frontend_type>multiselect</frontend_type>
|
9199 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
9200 |
+
<sort_order>66</sort_order>
|
9201 |
+
<show_in_default>1</show_in_default>
|
9202 |
+
<show_in_website>1</show_in_website>
|
9203 |
+
<show_in_store>0</show_in_store>
|
9204 |
+
</split_payment_profile>
|
9205 |
+
<min_order_total_split_payment translate="label">
|
9206 |
+
<label>Minimum Order Total for Split Payment</label>
|
9207 |
+
<frontend_type>text</frontend_type>
|
9208 |
+
<sort_order>68</sort_order>
|
9209 |
+
<show_in_default>1</show_in_default>
|
9210 |
+
<show_in_website>1</show_in_website>
|
9211 |
+
<show_in_store>1</show_in_store>
|
9212 |
+
</min_order_total_split_payment> -->
|
9213 |
+
<allow_use_oneclick translate="label">
|
9214 |
+
<label>Use Oneclick</label>
|
9215 |
+
<frontend_type>select</frontend_type>
|
9216 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9217 |
+
<sort_order>70</sort_order>
|
9218 |
+
<show_in_default>1</show_in_default>
|
9219 |
+
<show_in_website>1</show_in_website>
|
9220 |
+
<show_in_store>0</show_in_store>
|
9221 |
+
</allow_use_oneclick>
|
9222 |
+
<filter_oneclick translate="label comment">
|
9223 |
+
<label>Rules Oneclick</label>
|
9224 |
+
<comment>Configure Rules to activate oneclick</comment>
|
9225 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
9226 |
+
<backend_model>hipay/rule_config</backend_model>
|
9227 |
+
<sort_order>80</sort_order>
|
9228 |
+
<show_in_default>1</show_in_default>
|
9229 |
+
<show_in_website>1</show_in_website>
|
9230 |
+
<show_in_store>0</show_in_store>
|
9231 |
+
</filter_oneclick>
|
9232 |
+
<re_add_to_cart translate="label comment">
|
9233 |
+
<label>Add product to cart</label>
|
9234 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
9235 |
+
<frontend_type>select</frontend_type>
|
9236 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9237 |
+
<sort_order>95</sort_order>
|
9238 |
+
<show_in_default>1</show_in_default>
|
9239 |
+
<show_in_website>1</show_in_website>
|
9240 |
+
<show_in_store>0</show_in_store>
|
9241 |
+
</re_add_to_cart>
|
9242 |
+
<cancel_pending_order translate="label comment">
|
9243 |
+
<label>Cancel pending order</label>
|
9244 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
9245 |
+
<frontend_type>select</frontend_type>
|
9246 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9247 |
+
<sort_order>97</sort_order>
|
9248 |
+
<show_in_default>1</show_in_default>
|
9249 |
+
<show_in_website>1</show_in_website>
|
9250 |
+
<show_in_store>0</show_in_store>
|
9251 |
+
</cancel_pending_order>
|
9252 |
+
<send_fraud_payment_email translate="label">
|
9253 |
+
<label>Send fraud payment email</label>
|
9254 |
+
<frontend_type>select</frontend_type>
|
9255 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9256 |
+
<sort_order>99</sort_order>
|
9257 |
+
<show_in_default>1</show_in_default>
|
9258 |
+
<show_in_website>1</show_in_website>
|
9259 |
+
<show_in_store>1</show_in_store>
|
9260 |
+
</send_fraud_payment_email>
|
9261 |
+
<allowspecific translate="label">
|
9262 |
+
<label>Payment from applicable countries</label>
|
9263 |
+
<frontend_type>allowspecific</frontend_type>
|
9264 |
+
<sort_order>100</sort_order>
|
9265 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
9266 |
+
<show_in_default>1</show_in_default>
|
9267 |
+
<show_in_website>1</show_in_website>
|
9268 |
+
<show_in_store>1</show_in_store>
|
9269 |
+
</allowspecific>
|
9270 |
+
<specificcountry translate="label">
|
9271 |
+
<label>Payment from Specific countries</label>
|
9272 |
+
<frontend_type>multiselect</frontend_type>
|
9273 |
+
<sort_order>110</sort_order>
|
9274 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
9275 |
+
<show_in_default>1</show_in_default>
|
9276 |
+
<show_in_website>1</show_in_website>
|
9277 |
+
<show_in_store>1</show_in_store>
|
9278 |
+
</specificcountry>
|
9279 |
+
<currency translate="label">
|
9280 |
+
<label>Accepted Currency</label>
|
9281 |
+
<frontend_type>select</frontend_type>
|
9282 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
9283 |
+
<sort_order>111</sort_order>
|
9284 |
+
<show_in_default>1</show_in_default>
|
9285 |
+
<show_in_website>1</show_in_website>
|
9286 |
+
<show_in_store>1</show_in_store>
|
9287 |
+
</currency>
|
9288 |
+
<min_order_total translate="label">
|
9289 |
+
<label>Minimum Order Total</label>
|
9290 |
+
<frontend_type>text</frontend_type>
|
9291 |
+
<sort_order>120</sort_order>
|
9292 |
+
<show_in_default>1</show_in_default>
|
9293 |
+
<show_in_website>1</show_in_website>
|
9294 |
+
<show_in_store>1</show_in_store>
|
9295 |
+
</min_order_total>
|
9296 |
+
<max_order_total translate="label">
|
9297 |
+
<label>Maximum Order Total</label>
|
9298 |
+
<frontend_type>text</frontend_type>
|
9299 |
+
<sort_order>121</sort_order>
|
9300 |
+
<show_in_default>1</show_in_default>
|
9301 |
+
<show_in_website>1</show_in_website>
|
9302 |
+
<show_in_store>1</show_in_store>
|
9303 |
+
</max_order_total>
|
9304 |
+
<sort_order translate="label">
|
9305 |
+
<label>Sort Order</label>
|
9306 |
+
<frontend_type>text</frontend_type>
|
9307 |
+
<sort_order>130</sort_order>
|
9308 |
+
<show_in_default>1</show_in_default>
|
9309 |
+
<show_in_website>1</show_in_website>
|
9310 |
+
<show_in_store>1</show_in_store>
|
9311 |
+
</sort_order>
|
9312 |
+
<debug translate="label">
|
9313 |
+
<label>Enable debug log</label>
|
9314 |
+
<comment></comment>
|
9315 |
+
<frontend_type>select</frontend_type>
|
9316 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9317 |
+
<sort_order>150</sort_order>
|
9318 |
+
<show_in_default>1</show_in_default>
|
9319 |
+
<show_in_website>1</show_in_website>
|
9320 |
+
<show_in_store>0</show_in_store>
|
9321 |
+
</debug>
|
9322 |
+
<is_test_mode translate="label comment">
|
9323 |
+
<label>Enable test mode</label>
|
9324 |
+
<comment></comment>
|
9325 |
+
<frontend_type>select</frontend_type>
|
9326 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9327 |
+
<sort_order>200</sort_order>
|
9328 |
+
<show_in_default>1</show_in_default>
|
9329 |
+
<show_in_website>1</show_in_website>
|
9330 |
+
<show_in_store>1</show_in_store>
|
9331 |
+
</is_test_mode>
|
9332 |
+
</fields>
|
9333 |
+
</hipay_santadercash>
|
9334 |
+
<hipay_facilipay3x translate="label" module="hipay">
|
9335 |
+
<label>HiPay Enterprise Oney Facily pay 3X</label>
|
9336 |
+
<frontend_type>text</frontend_type>
|
9337 |
+
<sort_order>260</sort_order>
|
9338 |
+
<show_in_default>1</show_in_default>
|
9339 |
+
<show_in_website>1</show_in_website>
|
9340 |
+
<show_in_store>1</show_in_store>
|
9341 |
+
<fields>
|
9342 |
+
<notice_mapping_shipping_method translate="label" module="hipay">
|
9343 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_Notice</frontend_model>
|
9344 |
+
<sort_order>0</sort_order>
|
9345 |
+
<show_in_default>1</show_in_default>
|
9346 |
+
<show_in_website>1</show_in_website>
|
9347 |
+
<show_in_store>1</show_in_store>
|
9348 |
+
</notice_mapping_shipping_method>
|
9349 |
+
<notice_mapping_mapping_category translate="label" module="hipay">
|
9350 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_Notice</frontend_model>
|
9351 |
+
<sort_order>1</sort_order>
|
9352 |
+
<show_in_default>1</show_in_default>
|
9353 |
+
<show_in_website>1</show_in_website>
|
9354 |
+
<show_in_store>1</show_in_store>
|
9355 |
+
</notice_mapping_mapping_category>
|
9356 |
+
<active translate="label">
|
9357 |
+
<label>Enabled</label>
|
9358 |
+
<frontend_type>select</frontend_type>
|
9359 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9360 |
+
<sort_order>10</sort_order>
|
9361 |
+
<show_in_default>1</show_in_default>
|
9362 |
+
<show_in_website>1</show_in_website>
|
9363 |
+
<show_in_store>1</show_in_store>
|
9364 |
+
</active>
|
9365 |
+
<title translate="label">
|
9366 |
+
<label>Title</label>
|
9367 |
+
<frontend_type>text</frontend_type>
|
9368 |
+
<sort_order>20</sort_order>
|
9369 |
+
<show_in_default>1</show_in_default>
|
9370 |
+
<show_in_website>1</show_in_website>
|
9371 |
+
<show_in_store>1</show_in_store>
|
9372 |
+
</title>
|
9373 |
+
<payment_product_fees translate="label comment">
|
9374 |
+
<label>Facily Pay fees</label>
|
9375 |
+
<comment>Thank you for referring to your contract oney</comment>
|
9376 |
+
<frontend_type>select</frontend_type>
|
9377 |
+
<source_model>hipay/source_product_facilipay3x</source_model>
|
9378 |
+
<sort_order>21</sort_order>
|
9379 |
+
<show_in_default>1</show_in_default>
|
9380 |
+
<show_in_website>1</show_in_website>
|
9381 |
+
<show_in_store>1</show_in_store>
|
9382 |
+
</payment_product_fees>
|
9383 |
+
<order_status_payment_accepted translate="label">
|
9384 |
+
<label>Order status when payment accepted</label>
|
9385 |
+
<frontend_type>select</frontend_type>
|
9386 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
9387 |
+
<sort_order>23</sort_order>
|
9388 |
+
<show_in_default>1</show_in_default>
|
9389 |
+
<show_in_website>1</show_in_website>
|
9390 |
+
<show_in_store>0</show_in_store>
|
9391 |
+
</order_status_payment_accepted>
|
9392 |
+
<order_status_payment_refused translate="label">
|
9393 |
+
<label>Order status when payment refused</label>
|
9394 |
+
<frontend_type>select</frontend_type>
|
9395 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
9396 |
+
<sort_order>24</sort_order>
|
9397 |
+
<show_in_default>1</show_in_default>
|
9398 |
+
<show_in_website>1</show_in_website>
|
9399 |
+
<show_in_store>0</show_in_store>
|
9400 |
+
</order_status_payment_refused>
|
9401 |
+
<order_status_payment_canceled translate="label">
|
9402 |
+
<label>Order status when payment canceled by customer</label>
|
9403 |
+
<frontend_type>select</frontend_type>
|
9404 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
9405 |
+
<sort_order>25</sort_order>
|
9406 |
+
<show_in_default>1</show_in_default>
|
9407 |
+
<show_in_website>1</show_in_website>
|
9408 |
+
<show_in_store>0</show_in_store>
|
9409 |
+
</order_status_payment_canceled>
|
9410 |
+
<hipay_status_validate_order translate="label">
|
9411 |
+
<label>Hipay status to validate order</label>
|
9412 |
+
<frontend_type>select</frontend_type>
|
9413 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
9414 |
+
<sort_order>26</sort_order>
|
9415 |
+
<show_in_default>1</show_in_default>
|
9416 |
+
<show_in_website>1</show_in_website>
|
9417 |
+
<show_in_store>0</show_in_store>
|
9418 |
+
</hipay_status_validate_order>
|
9419 |
+
<success_redirect_page translate="label">
|
9420 |
+
<label>Redirect page success</label>
|
9421 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
9422 |
+
<frontend_type>text</frontend_type>
|
9423 |
+
<sort_order>26</sort_order>
|
9424 |
+
<show_in_default>1</show_in_default>
|
9425 |
+
<show_in_website>1</show_in_website>
|
9426 |
+
<show_in_store>0</show_in_store>
|
9427 |
+
</success_redirect_page>
|
9428 |
+
<pending_redirect_page translate="label">
|
9429 |
+
<label>Redirect page pending status</label>
|
9430 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
9431 |
+
<frontend_type>select</frontend_type>
|
9432 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
9433 |
+
<sort_order>27</sort_order>
|
9434 |
+
<show_in_default>1</show_in_default>
|
9435 |
+
<show_in_website>1</show_in_website>
|
9436 |
+
<show_in_store>0</show_in_store>
|
9437 |
+
</pending_redirect_page>
|
9438 |
+
<payment_action translate="label">
|
9439 |
+
<label>Payment Action</label>
|
9440 |
+
<frontend_type>select</frontend_type>
|
9441 |
+
<source_model>hipay/source_paymentAction</source_model>
|
9442 |
+
<sort_order>28</sort_order>
|
9443 |
+
<show_in_default>1</show_in_default>
|
9444 |
+
<show_in_website>1</show_in_website>
|
9445 |
+
<show_in_store>0</show_in_store>
|
9446 |
+
</payment_action>
|
9447 |
+
<send_fraud_payment_email translate="label">
|
9448 |
+
<label>Send fraud payment email</label>
|
9449 |
+
<frontend_type>select</frontend_type>
|
9450 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9451 |
+
<sort_order>63</sort_order>
|
9452 |
+
<show_in_default>1</show_in_default>
|
9453 |
+
<show_in_website>1</show_in_website>
|
9454 |
+
<show_in_store>1</show_in_store>
|
9455 |
+
</send_fraud_payment_email>
|
9456 |
+
<filter_oneclick translate="label comment">
|
9457 |
+
<label>Rules Oneclick</label>
|
9458 |
+
<comment>Configure Rules to activate oneclick</comment>
|
9459 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
9460 |
+
<backend_model>hipay/rule_config</backend_model>
|
9461 |
+
<sort_order>80</sort_order>
|
9462 |
+
<show_in_default>1</show_in_default>
|
9463 |
+
<show_in_website>1</show_in_website>
|
9464 |
+
<show_in_store>0</show_in_store>
|
9465 |
+
</filter_oneclick>
|
9466 |
+
<re_add_to_cart translate="label comment">
|
9467 |
+
<label>Add product to cart</label>
|
9468 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
9469 |
+
<frontend_type>select</frontend_type>
|
9470 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9471 |
+
<sort_order>95</sort_order>
|
9472 |
+
<show_in_default>1</show_in_default>
|
9473 |
+
<show_in_website>1</show_in_website>
|
9474 |
+
<show_in_store>0</show_in_store>
|
9475 |
+
</re_add_to_cart>
|
9476 |
+
<cancel_pending_order translate="label comment">
|
9477 |
+
<label>Cancel pending order</label>
|
9478 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
9479 |
+
<frontend_type>select</frontend_type>
|
9480 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9481 |
+
<sort_order>97</sort_order>
|
9482 |
+
<show_in_default>1</show_in_default>
|
9483 |
+
<show_in_website>1</show_in_website>
|
9484 |
+
<show_in_store>0</show_in_store>
|
9485 |
+
</cancel_pending_order>
|
9486 |
+
<send_fraud_payment_email translate="label">
|
9487 |
+
<label>Send fraud payment email</label>
|
9488 |
+
<frontend_type>select</frontend_type>
|
9489 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9490 |
+
<sort_order>99</sort_order>
|
9491 |
+
<show_in_default>1</show_in_default>
|
9492 |
+
<show_in_website>1</show_in_website>
|
9493 |
+
<show_in_store>1</show_in_store>
|
9494 |
+
</send_fraud_payment_email>
|
9495 |
+
<allowspecific translate="label">
|
9496 |
+
<label>Payment from applicable countries</label>
|
9497 |
+
<frontend_type>allowspecific</frontend_type>
|
9498 |
+
<sort_order>100</sort_order>
|
9499 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
9500 |
+
<show_in_default>1</show_in_default>
|
9501 |
+
<show_in_website>1</show_in_website>
|
9502 |
+
<show_in_store>1</show_in_store>
|
9503 |
+
</allowspecific>
|
9504 |
+
<specificcountry translate="label">
|
9505 |
+
<label>Payment from Specific countries</label>
|
9506 |
+
<frontend_type>multiselect</frontend_type>
|
9507 |
+
<sort_order>110</sort_order>
|
9508 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
9509 |
+
<show_in_default>1</show_in_default>
|
9510 |
+
<show_in_website>1</show_in_website>
|
9511 |
+
<show_in_store>1</show_in_store>
|
9512 |
+
</specificcountry>
|
9513 |
+
<currency translate="label">
|
9514 |
+
<label>Accepted Currency</label>
|
9515 |
+
<frontend_type>select</frontend_type>
|
9516 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
9517 |
+
<sort_order>111</sort_order>
|
9518 |
+
<show_in_default>1</show_in_default>
|
9519 |
+
<show_in_website>1</show_in_website>
|
9520 |
+
<show_in_store>1</show_in_store>
|
9521 |
+
</currency>
|
9522 |
+
<min_order_total translate="label">
|
9523 |
+
<label>Minimum Order Total</label>
|
9524 |
+
<frontend_type>text</frontend_type>
|
9525 |
+
<sort_order>120</sort_order>
|
9526 |
+
<show_in_default>1</show_in_default>
|
9527 |
<show_in_website>1</show_in_website>
|
9528 |
<show_in_store>1</show_in_store>
|
9529 |
</min_order_total>
|
9564 |
<show_in_store>1</show_in_store>
|
9565 |
</is_test_mode>
|
9566 |
</fields>
|
9567 |
+
</hipay_facilipay3x>
|
9568 |
+
<hipay_facilipay4x translate="label" module="hipay">
|
9569 |
+
<label>HiPay Enterprise Oney Facily pay 4X</label>
|
9570 |
+
<frontend_type>text</frontend_type>
|
9571 |
+
<sort_order>270</sort_order>
|
9572 |
+
<show_in_default>1</show_in_default>
|
9573 |
+
<show_in_website>1</show_in_website>
|
9574 |
+
<show_in_store>1</show_in_store>
|
9575 |
+
<fields>
|
9576 |
+
<notice_mapping_shipping_method translate="label" module="hipay">
|
9577 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_Notice</frontend_model>
|
9578 |
+
<sort_order>0</sort_order>
|
9579 |
+
<show_in_default>1</show_in_default>
|
9580 |
+
<show_in_website>1</show_in_website>
|
9581 |
+
<show_in_store>1</show_in_store>
|
9582 |
+
</notice_mapping_shipping_method>
|
9583 |
+
<notice_mapping_mapping_category translate="label" module="hipay">
|
9584 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_Notice</frontend_model>
|
9585 |
+
<sort_order>1</sort_order>
|
9586 |
+
<show_in_default>1</show_in_default>
|
9587 |
+
<show_in_website>1</show_in_website>
|
9588 |
+
<show_in_store>1</show_in_store>
|
9589 |
+
</notice_mapping_mapping_category>
|
9590 |
+
<active translate="label">
|
9591 |
+
<label>Enabled</label>
|
9592 |
+
<frontend_type>select</frontend_type>
|
9593 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9594 |
+
<sort_order>10</sort_order>
|
9595 |
+
<show_in_default>1</show_in_default>
|
9596 |
+
<show_in_website>1</show_in_website>
|
9597 |
+
<show_in_store>1</show_in_store>
|
9598 |
+
</active>
|
9599 |
+
<title translate="label">
|
9600 |
+
<label>Title</label>
|
9601 |
+
<frontend_type>text</frontend_type>
|
9602 |
+
<sort_order>20</sort_order>
|
9603 |
+
<show_in_default>1</show_in_default>
|
9604 |
+
<show_in_website>1</show_in_website>
|
9605 |
+
<show_in_store>1</show_in_store>
|
9606 |
+
</title>
|
9607 |
+
<payment_product_fees translate="label comment">
|
9608 |
+
<label>Facily Pay fees</label>
|
9609 |
+
<comment>Thank you for referring to your contract oney</comment>
|
9610 |
+
<frontend_type>select</frontend_type>
|
9611 |
+
<source_model>hipay/source_product_facilipay4x</source_model>
|
9612 |
+
<sort_order>21</sort_order>
|
9613 |
+
<show_in_default>1</show_in_default>
|
9614 |
+
<show_in_website>1</show_in_website>
|
9615 |
+
<show_in_store>1</show_in_store>
|
9616 |
+
</payment_product_fees>
|
9617 |
+
<order_status_payment_accepted translate="label">
|
9618 |
+
<label>Order status when payment accepted</label>
|
9619 |
+
<frontend_type>select</frontend_type>
|
9620 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
9621 |
+
<sort_order>23</sort_order>
|
9622 |
+
<show_in_default>1</show_in_default>
|
9623 |
+
<show_in_website>1</show_in_website>
|
9624 |
+
<show_in_store>0</show_in_store>
|
9625 |
+
</order_status_payment_accepted>
|
9626 |
+
<order_status_payment_refused translate="label">
|
9627 |
+
<label>Order status when payment refused</label>
|
9628 |
+
<frontend_type>select</frontend_type>
|
9629 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
9630 |
+
<sort_order>24</sort_order>
|
9631 |
+
<show_in_default>1</show_in_default>
|
9632 |
+
<show_in_website>1</show_in_website>
|
9633 |
+
<show_in_store>0</show_in_store>
|
9634 |
+
</order_status_payment_refused>
|
9635 |
+
<order_status_payment_canceled translate="label">
|
9636 |
+
<label>Order status when payment canceled by customer</label>
|
9637 |
+
<frontend_type>select</frontend_type>
|
9638 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
9639 |
+
<sort_order>25</sort_order>
|
9640 |
+
<show_in_default>1</show_in_default>
|
9641 |
+
<show_in_website>1</show_in_website>
|
9642 |
+
<show_in_store>0</show_in_store>
|
9643 |
+
</order_status_payment_canceled>
|
9644 |
+
<hipay_status_validate_order translate="label">
|
9645 |
+
<label>Hipay status to validate order</label>
|
9646 |
+
<frontend_type>select</frontend_type>
|
9647 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
9648 |
+
<sort_order>26</sort_order>
|
9649 |
+
<show_in_default>1</show_in_default>
|
9650 |
+
<show_in_website>1</show_in_website>
|
9651 |
+
<show_in_store>0</show_in_store>
|
9652 |
+
</hipay_status_validate_order>
|
9653 |
+
<success_redirect_page translate="label">
|
9654 |
+
<label>Redirect page success</label>
|
9655 |
+
<comment>Page to redirect when transaction is successful, leave empty for checkout/onepage/success</comment>
|
9656 |
+
<frontend_type>text</frontend_type>
|
9657 |
+
<sort_order>26</sort_order>
|
9658 |
+
<show_in_default>1</show_in_default>
|
9659 |
+
<show_in_website>1</show_in_website>
|
9660 |
+
<show_in_store>0</show_in_store>
|
9661 |
+
</success_redirect_page>
|
9662 |
+
<pending_redirect_page translate="label">
|
9663 |
+
<label>Redirect page pending status</label>
|
9664 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
9665 |
+
<frontend_type>select</frontend_type>
|
9666 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
9667 |
+
<sort_order>27</sort_order>
|
9668 |
+
<show_in_default>1</show_in_default>
|
9669 |
+
<show_in_website>1</show_in_website>
|
9670 |
+
<show_in_store>0</show_in_store>
|
9671 |
+
</pending_redirect_page>
|
9672 |
+
<payment_action translate="label">
|
9673 |
+
<label>Payment Action</label>
|
9674 |
+
<frontend_type>select</frontend_type>
|
9675 |
+
<source_model>hipay/source_paymentAction</source_model>
|
9676 |
+
<sort_order>28</sort_order>
|
9677 |
+
<show_in_default>1</show_in_default>
|
9678 |
+
<show_in_website>1</show_in_website>
|
9679 |
+
<show_in_store>0</show_in_store>
|
9680 |
+
</payment_action>
|
9681 |
+
<send_fraud_payment_email translate="label">
|
9682 |
+
<label>Send fraud payment email</label>
|
9683 |
+
<frontend_type>select</frontend_type>
|
9684 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9685 |
+
<sort_order>63</sort_order>
|
9686 |
+
<show_in_default>1</show_in_default>
|
9687 |
+
<show_in_website>1</show_in_website>
|
9688 |
+
<show_in_store>1</show_in_store>
|
9689 |
+
</send_fraud_payment_email>
|
9690 |
+
<allow_use_oneclick translate="label">
|
9691 |
+
<label>Use Oneclick</label>
|
9692 |
+
<frontend_type>select</frontend_type>
|
9693 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9694 |
+
<sort_order>70</sort_order>
|
9695 |
+
<show_in_default>1</show_in_default>
|
9696 |
+
<show_in_website>1</show_in_website>
|
9697 |
+
<show_in_store>0</show_in_store>
|
9698 |
+
</allow_use_oneclick>
|
9699 |
+
<re_add_to_cart translate="label comment">
|
9700 |
+
<label>Add product to cart</label>
|
9701 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
9702 |
+
<frontend_type>select</frontend_type>
|
9703 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9704 |
+
<sort_order>95</sort_order>
|
9705 |
+
<show_in_default>1</show_in_default>
|
9706 |
+
<show_in_website>1</show_in_website>
|
9707 |
+
<show_in_store>0</show_in_store>
|
9708 |
+
</re_add_to_cart>
|
9709 |
+
<cancel_pending_order translate="label comment">
|
9710 |
+
<label>Cancel pending order</label>
|
9711 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
9712 |
+
<frontend_type>select</frontend_type>
|
9713 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9714 |
+
<sort_order>97</sort_order>
|
9715 |
+
<show_in_default>1</show_in_default>
|
9716 |
+
<show_in_website>1</show_in_website>
|
9717 |
+
<show_in_store>0</show_in_store>
|
9718 |
+
</cancel_pending_order>
|
9719 |
+
<send_fraud_payment_email translate="label">
|
9720 |
+
<label>Send fraud payment email</label>
|
9721 |
+
<frontend_type>select</frontend_type>
|
9722 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9723 |
+
<sort_order>99</sort_order>
|
9724 |
+
<show_in_default>1</show_in_default>
|
9725 |
+
<show_in_website>1</show_in_website>
|
9726 |
+
<show_in_store>1</show_in_store>
|
9727 |
+
</send_fraud_payment_email>
|
9728 |
+
<allowspecific translate="label">
|
9729 |
+
<label>Payment from applicable countries</label>
|
9730 |
+
<frontend_type>allowspecific</frontend_type>
|
9731 |
+
<sort_order>100</sort_order>
|
9732 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
9733 |
+
<show_in_default>1</show_in_default>
|
9734 |
+
<show_in_website>1</show_in_website>
|
9735 |
+
<show_in_store>1</show_in_store>
|
9736 |
+
</allowspecific>
|
9737 |
+
<specificcountry translate="label">
|
9738 |
+
<label>Payment from Specific countries</label>
|
9739 |
+
<frontend_type>multiselect</frontend_type>
|
9740 |
+
<sort_order>110</sort_order>
|
9741 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
9742 |
+
<show_in_default>1</show_in_default>
|
9743 |
+
<show_in_website>1</show_in_website>
|
9744 |
+
<show_in_store>1</show_in_store>
|
9745 |
+
</specificcountry>
|
9746 |
+
<currency translate="label">
|
9747 |
+
<label>Accepted Currency</label>
|
9748 |
+
<frontend_type>select</frontend_type>
|
9749 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
9750 |
+
<sort_order>111</sort_order>
|
9751 |
+
<show_in_default>1</show_in_default>
|
9752 |
+
<show_in_website>1</show_in_website>
|
9753 |
+
<show_in_store>1</show_in_store>
|
9754 |
+
</currency>
|
9755 |
+
<min_order_total translate="label">
|
9756 |
+
<label>Minimum Order Total</label>
|
9757 |
+
<frontend_type>text</frontend_type>
|
9758 |
+
<sort_order>120</sort_order>
|
9759 |
+
<show_in_default>1</show_in_default>
|
9760 |
+
<show_in_website>1</show_in_website>
|
9761 |
+
<show_in_store>1</show_in_store>
|
9762 |
+
</min_order_total>
|
9763 |
+
<max_order_total translate="label">
|
9764 |
+
<label>Maximum Order Total</label>
|
9765 |
+
<frontend_type>text</frontend_type>
|
9766 |
+
<sort_order>121</sort_order>
|
9767 |
+
<show_in_default>1</show_in_default>
|
9768 |
+
<show_in_website>1</show_in_website>
|
9769 |
+
<show_in_store>1</show_in_store>
|
9770 |
+
</max_order_total>
|
9771 |
+
<sort_order translate="label">
|
9772 |
+
<label>Sort Order</label>
|
9773 |
+
<frontend_type>text</frontend_type>
|
9774 |
+
<sort_order>130</sort_order>
|
9775 |
+
<show_in_default>1</show_in_default>
|
9776 |
+
<show_in_website>1</show_in_website>
|
9777 |
+
<show_in_store>1</show_in_store>
|
9778 |
+
</sort_order>
|
9779 |
+
<debug translate="label">
|
9780 |
+
<label>Enable debug log</label>
|
9781 |
+
<comment></comment>
|
9782 |
+
<frontend_type>select</frontend_type>
|
9783 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9784 |
+
<sort_order>150</sort_order>
|
9785 |
+
<show_in_default>1</show_in_default>
|
9786 |
+
<show_in_website>1</show_in_website>
|
9787 |
+
<show_in_store>0</show_in_store>
|
9788 |
+
</debug>
|
9789 |
+
<is_test_mode translate="label comment">
|
9790 |
+
<label>Enable test mode</label>
|
9791 |
+
<comment></comment>
|
9792 |
+
<frontend_type>select</frontend_type>
|
9793 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
9794 |
+
<sort_order>200</sort_order>
|
9795 |
+
<show_in_default>1</show_in_default>
|
9796 |
+
<show_in_website>1</show_in_website>
|
9797 |
+
<show_in_store>1</show_in_store>
|
9798 |
+
</is_test_mode>
|
9799 |
+
</fields>
|
9800 |
+
</hipay_facilipay4x>
|
9801 |
</groups>
|
9802 |
+
</payment>
|
9803 |
+
</sections>
|
9804 |
</config>
|
app/design/adminhtml/default/default/layout/hipay.xml
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
|
|
|
|
|
4 |
<adminhtml_system_config_edit>
|
5 |
<reference name="head">
|
6 |
<action method="setCanLoadExtJs"><flag>1</flag></action>
|
7 |
<!-- <action method="setCanLoadRulesJs"><flag>1</flag></action> -->
|
8 |
<action method="addItem"><type>skin_js</type><name>hipay/js/rules.js</name></action>
|
|
|
9 |
</reference>
|
10 |
</adminhtml_system_config_edit>
|
11 |
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
|
4 |
+
|
5 |
+
|
6 |
<adminhtml_system_config_edit>
|
7 |
<reference name="head">
|
8 |
<action method="setCanLoadExtJs"><flag>1</flag></action>
|
9 |
<!-- <action method="setCanLoadRulesJs"><flag>1</flag></action> -->
|
10 |
<action method="addItem"><type>skin_js</type><name>hipay/js/rules.js</name></action>
|
11 |
+
<action method="addCss"><stylesheet>hipay/css/hipay.css</stylesheet></action>
|
12 |
</reference>
|
13 |
</adminhtml_system_config_edit>
|
14 |
|
app/design/adminhtml/default/default/template/hipay/mapping.phtml
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package default_default
|
23 |
+
* @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
|
28 |
+
<?php
|
29 |
+
$_htmlId = $this->getHtmlId() ? $this->getHtmlId() : '_' . uniqid();
|
30 |
+
|
31 |
+
$_colspan = 2;
|
32 |
+
if (!$this->_addAfter) {
|
33 |
+
$_colspan -= 1;
|
34 |
+
}
|
35 |
+
$_colspan = $_colspan > 1 ? 'colspan="' . $_colspan . '"' : '';
|
36 |
+
?>
|
37 |
+
|
38 |
+
<div class="grid" id="grid<?php echo $_htmlId ?>">
|
39 |
+
<table cellpadding="0" cellspacing="0" class="border">
|
40 |
+
<tbody>
|
41 |
+
|
42 |
+
<tr class="headings" id="headings<?php echo $_htmlId ?>">
|
43 |
+
<?php foreach ($this->_columns as $columnName => $column):?>
|
44 |
+
<th><?php echo $column['label'] ?></th>
|
45 |
+
<?php endforeach;?>
|
46 |
+
</tr>
|
47 |
+
</tbody>
|
48 |
+
</table>
|
49 |
+
<input type="hidden" name="<?php echo $this->getElement()->getName() ?>[__empty]" value="" />
|
50 |
+
</div>
|
51 |
+
|
52 |
+
<script type="text/javascript">
|
53 |
+
//<![CDATA[
|
54 |
+
// create row creator
|
55 |
+
var arrayRow<?php echo $_htmlId ?> = {
|
56 |
+
// define row prototypeJS template
|
57 |
+
template : new Template(
|
58 |
+
'<tr id="#{_id}">'
|
59 |
+
<?php foreach ($this->_columns as $columnName => $column):?>
|
60 |
+
+'<td>'
|
61 |
+
+'<?php echo Mage::helper('core')->jsQuoteEscape($this->_renderCellTemplate($columnName)) ?>'
|
62 |
+
+'<\/td>'
|
63 |
+
<?php endforeach;?>
|
64 |
+
+'<\/tr>'
|
65 |
+
),
|
66 |
+
|
67 |
+
rowsCount : 0,
|
68 |
+
|
69 |
+
add : function(templateData, insertAfterId)
|
70 |
+
{
|
71 |
+
// generate default template data
|
72 |
+
if ('' == templateData) {
|
73 |
+
var d = new Date();
|
74 |
+
var templateData = {
|
75 |
+
<?php foreach ($this->_columns as $columnName => $column):?>
|
76 |
+
<?php echo $columnName ?> : '',
|
77 |
+
<?php endforeach;?>
|
78 |
+
_id : '_' + d.getTime() + '_' + d.getMilliseconds()
|
79 |
+
};
|
80 |
+
}
|
81 |
+
|
82 |
+
// insert after specified row
|
83 |
+
else {
|
84 |
+
Element.insert($(insertAfterId), {after: this.template.evaluate(templateData)});
|
85 |
+
}
|
86 |
+
|
87 |
+
<?php if ($this->_addAfter):?>
|
88 |
+
Event.observe('addAfterBtn' + templateData._id, 'click', this.add.bind(this, '', templateData._id));
|
89 |
+
<?php endif;?>
|
90 |
+
|
91 |
+
this.rowsCount += 1;
|
92 |
+
},
|
93 |
+
|
94 |
+
del : function(rowId)
|
95 |
+
{
|
96 |
+
$(rowId).remove();
|
97 |
+
this.rowsCount -= 1;
|
98 |
+
if (0 == this.rowsCount) {
|
99 |
+
this.showButtonOnly();
|
100 |
+
}
|
101 |
+
},
|
102 |
+
|
103 |
+
showButtonOnly : function()
|
104 |
+
{
|
105 |
+
$('grid<?php echo $_htmlId ?>').hide();
|
106 |
+
$('empty<?php echo $_htmlId ?>').show();
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
|
111 |
+
// add existing rows
|
112 |
+
<?php
|
113 |
+
$_addAfterId = "headings{$_htmlId}";
|
114 |
+
foreach ($this->getArrayRows() as $_rowId => $_row) {
|
115 |
+
echo "arrayRow{$_htmlId}.add(" . $_row->toJson() . ", '{$_addAfterId}');\n";
|
116 |
+
$_addAfterId = $_rowId;
|
117 |
+
}
|
118 |
+
?>
|
119 |
+
|
120 |
+
// if no rows, hide grid and show button only
|
121 |
+
<?php if (!$this->getArrayRows()):?>
|
122 |
+
arrayRow<?php echo $_htmlId ?>.showButtonOnly();
|
123 |
+
<?php endif;?>
|
124 |
+
|
125 |
+
// toggle the grid, if element is disabled (depending on scope)
|
126 |
+
<?php if ($this->getElement()->getDisabled()):?>
|
127 |
+
toggleValueElements({checked:true}, $('grid<?php echo $_htmlId ?>').parentNode);
|
128 |
+
<?php endif;?>
|
129 |
+
//]]>
|
130 |
+
</script>
|
app/design/adminhtml/default/default/template/hipay/system/config/form/field/information.phtml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $_element = $this->getElement() ?>
|
2 |
+
<?php $_htmlId = $this->getHtmlId() ? $this->getHtmlId() : '_' . uniqid(); ?>
|
3 |
+
<?php $informations = $_element->getInformationsHipay(); ?>
|
4 |
+
|
5 |
+
<?php if (!empty($informations)){ ?>
|
6 |
+
<div class="information-hipay" style="padding: 10px;">
|
7 |
+
<div class="detail-information">
|
8 |
+
<?php echo $informations ?>
|
9 |
+
</div>
|
10 |
+
</div>
|
11 |
+
<?php } ?>
|
12 |
+
|
13 |
+
|
app/design/adminhtml/default/default/template/hipay/system/config/form/field/notice.phtml
CHANGED
@@ -3,16 +3,10 @@
|
|
3 |
<?php $notices = $_element->getNoticesHipay(); ?>
|
4 |
|
5 |
<?php if (!empty($notices)){ ?>
|
6 |
-
<div class="notice-hipay"
|
7 |
-
<h1 style="color:red;">Warning</h1>
|
8 |
<?php foreach ($notices as $notice) { ?>
|
9 |
-
<span class="warning"
|
10 |
<?php } ?>
|
11 |
-
<div style="color:red" >
|
12 |
-
<?php echo Mage::helper("adminhtml")->__('Please check the configuration') .
|
13 |
-
' <a href="' . Mage::helper("adminhtml")->getUrl("adminhtml/system_config/edit/section/hipay") . '"' .'>'.
|
14 |
-
Mage::helper("adminhtml")->__('here') .'</a>'; ?>
|
15 |
-
</div>
|
16 |
</div>
|
17 |
<?php } ?>
|
18 |
|
3 |
<?php $notices = $_element->getNoticesHipay(); ?>
|
4 |
|
5 |
<?php if (!empty($notices)){ ?>
|
6 |
+
<div class="notice-hipay">
|
|
|
7 |
<?php foreach ($notices as $notice) { ?>
|
8 |
+
<span class="warning"><?php echo $notice; ?></span>
|
9 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
10 |
</div>
|
11 |
<?php } ?>
|
12 |
|
app/design/frontend/base/default/template/hipay/form/cc.phtml
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
$_code=$this->getMethodCode();
|
4 |
$_cards = $this->getCards();
|
5 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
|
|
6 |
|
7 |
?>
|
8 |
<div id="payment_form_<?php echo $_code ?>" style="display:none;">
|
@@ -22,8 +23,6 @@ $useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction',
|
|
22 |
</ul>
|
23 |
<br />
|
24 |
<?php endif; ?>
|
25 |
-
<?php if($_code != "hipay_sdd") : ?>
|
26 |
-
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
27 |
<?php if (Mage::getStoreConfig('hipay/hipay_api/fingerprint',Mage::app()->getStore())) : ?>
|
28 |
<script type="text/javascript">
|
29 |
$('ioBB_fingerprint').value = $('ioBB').value;
|
@@ -32,6 +31,46 @@ $useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction',
|
|
32 |
<input type="hidden" id="ioBB_fingerprint" name="payment[device_fingerprint]" value="" />
|
33 |
</li>
|
34 |
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
<li>
|
36 |
<?php if(count($this->getCcAvailableTypes()) == 1) :?>
|
37 |
<label for="<?php echo $_code ?>_cc_type" ><?php echo $this->__('Credit Card Type') ?>:
|
3 |
$_code=$this->getMethodCode();
|
4 |
$_cards = $this->getCards();
|
5 |
$useOrderCurrency = Mage::getStoreConfig('hipay/hipay_api/currency_transaction', Mage::app()->getStore());
|
6 |
+
$_typeNationalIdentification = $this->getTypeNationalIdentification();
|
7 |
|
8 |
?>
|
9 |
<div id="payment_form_<?php echo $_code ?>" style="display:none;">
|
23 |
</ul>
|
24 |
<br />
|
25 |
<?php endif; ?>
|
|
|
|
|
26 |
<?php if (Mage::getStoreConfig('hipay/hipay_api/fingerprint',Mage::app()->getStore())) : ?>
|
27 |
<script type="text/javascript">
|
28 |
$('ioBB_fingerprint').value = $('ioBB').value;
|
31 |
<input type="hidden" id="ioBB_fingerprint" name="payment[device_fingerprint]" value="" />
|
32 |
</li>
|
33 |
<?php endif;?>
|
34 |
+
<?php if(!empty($_typeNationalIdentification)) : ?>
|
35 |
+
<?php if($_typeNationalIdentification == 'cpf') : ?>
|
36 |
+
<script type="text/javascript">
|
37 |
+
//<![CDATA[
|
38 |
+
Validation.add('validate-cpf', '<?php echo $this->__('The CPF format is invalid.') ?>', function(v,elm) {
|
39 |
+
return Validation.get('IsEmpty').test(v) || /(\d{2}[.]?\d{3}[.]?\d{3}[/]?\d{4}[-]?\d{2})|(\d{3}[.]?\d{3}[.]?\d{3}[-]?\d{2})$/i.test(v)
|
40 |
+
});
|
41 |
+
//]]>
|
42 |
+
</script>
|
43 |
+
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
44 |
+
<li>
|
45 |
+
<label for="<?php echo $_code ?>_national_identification" class="required"><em>*</em><?php echo $this->__('CPF') ?></label>
|
46 |
+
<div class="input-box">
|
47 |
+
<input type="text" title="<?php echo $this->__('CPF') ?>" class="input-text required-entry validate-cpf" oninvalid="this.setCustomValidity('<?php echo $this->__('CPF is incorrect') ?>'')"
|
48 |
+
oninput="setCustomValidity('')" pattern="(\d{2}[.]?\d{3}[.]?\d{3}[/]?\d{4}[-]?\d{2})|(\d{3}[.]?\d{3}[.]?\d{3}[-]?\d{2})" id="<?php echo $_code ?>_national_identification" name="payment[national_identification_number]" />
|
49 |
+
</div>
|
50 |
+
</li>
|
51 |
+
</ul>
|
52 |
+
<?php elseif($_typeNationalIdentification == "cpn") : ?>
|
53 |
+
<script type="text/javascript">
|
54 |
+
//<![CDATA[
|
55 |
+
Validation.add('validate-cpn', '<?php echo $this->__('The CPN format is invalid.') ?>', function(v,elm) {
|
56 |
+
return Validation.get('IsEmpty').test(v) || /^[a-zA-Z]{4}\d{6}[a-zA-Z]{6}\d{2}$/i
|
57 |
+
.test(v)
|
58 |
+
});
|
59 |
+
//]]>
|
60 |
+
</script>
|
61 |
+
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
62 |
+
<li>
|
63 |
+
<label for="<?php echo $_code ?>_national_identification" class="required"><em>*</em><?php echo $this->__('CPN') ?></label>
|
64 |
+
<div class="input-box">
|
65 |
+
<input type="text" title="<?php echo $this->__('CPN') ?>" class="input-text required-entry validate-cpn" oninvalid="this.setCustomValidity('<?php echo $this->__('CPN is incorrect') ?>'')"
|
66 |
+
oninput="setCustomValidity('')" pattern="(\d{2}[.]?\d{3}[.]?\d{3}[/]?\d{4}[-]?\d{2})|(\d{3}[.]?\d{3}[.]?\d{3}[-]?\d{2})" id="<?php echo $_code ?>_national_identification" name="payment[national_identification_number]" />
|
67 |
+
</div>
|
68 |
+
</li>
|
69 |
+
</ul>
|
70 |
+
<?php endif ?>
|
71 |
+
<?php endif ?>
|
72 |
+
<?php if($_code != "hipay_sdd" && empty($_typeNationalIdentification)) : ?>
|
73 |
+
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
74 |
<li>
|
75 |
<?php if(count($this->getCcAvailableTypes()) == 1) :?>
|
76 |
<label for="<?php echo $_code ?>_cc_type" ><?php echo $this->__('Credit Card Type') ?>:
|
app/locale/en_US/Allopass_Hipay.csv
CHANGED
@@ -160,6 +160,8 @@
|
|
160 |
"Transaction is in pending notification.","Transaction is in pending notification."
|
161 |
"Leave blank if no proxy","Leave blank if no proxy"
|
162 |
"Device fingerprint","Device fingerprint"
|
|
|
|
|
163 |
"An email with a payment link will be sent to the customer.","Un email avec un lien de paiement sera envoyé au client."
|
164 |
"Please check the configuration","'Please check the configuration"
|
165 |
"You have to activate and configuring the support of basket before activate the payment method klarna.","You have to activate and configuring the support of basket before activate the payment method klarna."
|
160 |
"Transaction is in pending notification.","Transaction is in pending notification."
|
161 |
"Leave blank if no proxy","Leave blank if no proxy"
|
162 |
"Device fingerprint","Device fingerprint"
|
163 |
+
"The CPF format is invalid.","The CPF format is invalid."
|
164 |
+
"The CPN format is invalid.","The CPN format is invalid."
|
165 |
"An email with a payment link will be sent to the customer.","Un email avec un lien de paiement sera envoyé au client."
|
166 |
"Please check the configuration","'Please check the configuration"
|
167 |
"You have to activate and configuring the support of basket before activate the payment method klarna.","You have to activate and configuring the support of basket before activate the payment method klarna."
|
app/locale/fr_FR/Allopass_Hipay.csv
CHANGED
@@ -153,7 +153,7 @@
|
|
153 |
"Bank name","Nom de la banque"
|
154 |
"Enable the electronic signature of the mandate","Activer la signature électronique du mandat"
|
155 |
"Notification ""Refunded"". Refund issued by merchant. Registered notification about refunded amount of %s. Transaction ID: ""%s"". Credit Memo has not been created. Please create offline Credit Memo.","Notification ""Refund"". Remboursement demandé par le marchand. Enregistrement de la notification de remboursement d'un montant de %s. Transaction ID: ""%s"". L'avoir n'a pas été créé. Veuillez créer l'avoir en offline"
|
156 |
-
"Notification ""Capture"". Capture issued by merchant. Registered notification about captured amount of %s. Transaction ID: ""%s"". Invoice has not been created. Please create offline Invoice.","Notification ""Capture"". Capture demandée par le marchand. Enregistrement de la notification de capture d'un montant de %s. Transaction ID: ""%s"". La facture n'a pas été créée. Veuillez créer la facture en offline."
|
157 |
"Accept and Capture Payment","Accepter et Capturer le paiement"
|
158 |
"The Capture was requested.","LA capture a été demandée."
|
159 |
"You must reload the page to see new status.","Vous devez recharger la page pour voir le nouveau statut."
|
@@ -168,4 +168,6 @@
|
|
168 |
"You have to activate and configuring the support of basket before activate the payment method klarna","Vous devez activer et configurer la gestion du panier avant d'activer la méthode de paiement klarna."
|
169 |
"Please check the configuration","Merci de vérifier la configuration"
|
170 |
"here","ici"
|
171 |
-
"You have to activate and configuring the support of basket before activate the payment method klarna","Vous devez activer et configurer la gestion du panier avant d'activer la méthode de paiement klarna."
|
|
|
|
153 |
"Bank name","Nom de la banque"
|
154 |
"Enable the electronic signature of the mandate","Activer la signature électronique du mandat"
|
155 |
"Notification ""Refunded"". Refund issued by merchant. Registered notification about refunded amount of %s. Transaction ID: ""%s"". Credit Memo has not been created. Please create offline Credit Memo.","Notification ""Refund"". Remboursement demandé par le marchand. Enregistrement de la notification de remboursement d'un montant de %s. Transaction ID: ""%s"". L'avoir n'a pas été créé. Veuillez créer l'avoir en offline"
|
156 |
+
"Notification ""Capture"". Capture issued by merchant. Registered notification about captured amount of %s. Transaction ID: ""%s"". Invoice has not been created. Please create offline Invoice.","Notification ""Capture"". Capture demandée par le marchand. Enregistrement de la notification de capture d'un montant de %s. Transaction ID: ""%s"". La facture n'a pas été créée. Veuillez créer la facture en offline. ( Le montant autorisé amount était %s )"
|
157 |
"Accept and Capture Payment","Accepter et Capturer le paiement"
|
158 |
"The Capture was requested.","LA capture a été demandée."
|
159 |
"You must reload the page to see new status.","Vous devez recharger la page pour voir le nouveau statut."
|
168 |
"You have to activate and configuring the support of basket before activate the payment method klarna","Vous devez activer et configurer la gestion du panier avant d'activer la méthode de paiement klarna."
|
169 |
"Please check the configuration","Merci de vérifier la configuration"
|
170 |
"here","ici"
|
171 |
+
"You have to activate and configuring the support of basket before activate the payment method klarna","Vous devez activer et configurer la gestion du panier avant d'activer la méthode de paiement klarna."
|
172 |
+
"The CPF format is invalid.","Le format du numéro d'identification est incorrect."
|
173 |
+
"The CPN format is invalid.","Le format du numéro d'identification est incorrect."
|
package.xml
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<package><name>Allopass_Hipay</name><version>1.6.2</version><stability>stable</stability><license>General Public License (GPL)</license><channel>community</channel><extends></extends><summary>Official HiPay Fullservice payment extension.</summary><description>HiPay Fullservice is the first payment platform oriented towards merchants that responds to all matters related to online payment: transaction processing, risk management, relationship management with banks and acquirers, financial reconciliation or even international expansion.</description><notes></notes><authors><author><name>Kassim Belghait</name><user>Sirateck</user><email>kassim@sirateck.com</email></author></authors><date>2017-05-15</date><time>5:35:32</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Allopass"><dir name="Hipay"><dir name="Model"><file name="Card.php" hash="5d5ed0ece4cb9ef50bf445eee6911f8a"/><file name="Config.php" hash="555947afaee587536f31bb0058c893d9"/><file name="Observer.php" hash="a343349c7542473dca4bdfc49b244050"/><file name="PaymentProfile.php" hash="8eb4fbb9969500ee09b3fb07363718aa"/><file name="Rule.php" hash="4cddad3f6cb38af59dc2726d80148f51"/><file name="SplitPayment.php" hash="0a0298357ccb4ad750a0d90a13ab0d44"/><dir name="Api"><file name="Request.php" hash="7d4fe8bc9cad2243c4b8c8841b86a46f"/><dir name="Response"><file name="Abstract.php" hash="a430ca978e61796696ae4ead61efdb60"/><file name="Error.php" hash="57386fde5e5993c1126418025093a58a"/><file name="Gateway.php" hash="49b0e43a55e223df601884cfd9a0d2c5"/><file name="Notification.php" hash="0f7373ec3435b477424352c058f42255"/><file name="Vault.php" hash="47b962a59c150ffd653ba4054bc053d0"/></dir><dir name="Http"><dir name="Client"><dir name="Adapter"><file name="Curl.php" hash="cebf9e03d310e65f23a2a4ddc980e26f"/><file name="Stream.php" hash="5a110dd1f33ee4c8319cec396fc4fa40"/></dir></dir></dir></dir><dir name="Rule"><file name="Config.php" hash="4034bf549bc274c836930a43d0ef8646"/><dir name="Condition"><file name="Address.php" hash="25c9966d184f61a3d61af9ea0f04aeca"/><file name="Combine.php" hash="e57da0bfd13c85721ef06d9f5c1d5a45"/><file name="Customer.php" hash="b847ff261e77565af4f64761d378de59"/><file name="Product.php" hash="5186cb9be313c7a772a11613ff4d1406"/><dir name="Product"><file name="Combine.php" hash="b99adc27124c3c6f56d04f0bcb5a42be"/><file name="Found.php" hash="bc266762458faaba326b7d7245b688a8"/><file name="Subselect.php" hash="5c0d482cddd69d82350bc5fec15c40b7"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="CcTypes.php" hash="916ab83c9e5e1ee18d488f42a090c524"/></dir></dir></dir><dir name="Method"><file name="Abstract.php" hash="bb112f17198a69374f295a6e696a0f8a"/><file name="Cbc.php" hash="49d1b0e2ad320c1a78043bb7231de930"/><file name="Cc.php" hash="a304f8d419f46bae34c716cf7a9fa7bd"/><file name="CcXtimes.php" hash="8d4f2f77f2e0377600cff2f93a3f0e66"/><file name="Dexia.php" hash="a385bcf6b0826917fecec6917a8230f9"/><file name="Giropay.php" hash="85d350f66fa3b0b162fe542165bce4cc"/><file name="Hosted.php" hash="ea3f0c3cae75fea0c9fec22b5d3553ac"/><file name="HostedXtimes.php" hash="d81e2c0746a7d1437fde693fba219e1d"/><file name="Ideal.php" hash="0cf882d667b36c0e89bc1800ea9fa7a1"/><file name="Ing.php" hash="774c41e17868dcfe8031d047703a8b1c"/><file name="Kbc.php" hash="77981ab4ebd64d3555bd9fddccadf283"/><file name="Klarna.php" hash="4c65315115247d79beb47262de5272b8"/><file name="PaypalApi.php" hash="65d6c43ad78671a49d162acb381a1079"/><file name="PostfinancecardApi.php" hash="3563685f62cfcb31ce494cab36869a85"/><file name="PostfinanceefinanceApi.php" hash="57c81f85ee51e63cdf55564492aa8ef1"/><file name="Przelewy24.php" hash="00b695e7b34b69f36d593587a9b5dcdd"/><file name="Przelewy24Api.php" hash="ff20c8621b68fea2b9d96cf131d320e7"/><file name="Qiwi.php" hash="acea5092f8fd1720d506d5be3714864f"/><file name="Sdd.php" hash="be79ca9e43d642d61cd4ceddd50e193a"/><file name="Sisal.php" hash="d6f97559eb485a8d6d66e5a7abc0e077"/><file name="SisalApi.php" hash="0c63400b243855790f987e8dd2b85402"/><file name="Sofort.php" hash="fa6cb68aff431c2dc91e7b3c62a29aaa"/><file name="SofortApi.php" hash="51111ee0872f93829833a01e36b51abf"/><file name="Webmoney.php" hash="5705818f9288d1c0acc49882c42c195f"/><file name="WebmoneyApi.php" hash="d24a31e40cba1af6e4e8fd20f3ac7dd6"/><file name="Yandex.php" hash="1edad262a001d96ede94c9406e680f46"/><file name="YandexApi.php" hash="831b63ffbe3b859cff790fb34ea63663"/></dir><dir name="Source"><file name="3ds.php" hash="e7b97e8a1c886b11951051a212c965ba"/><file name="Attributes.php" hash="f32ae1fc6e394e0871c5aa9a128fe87e"/><file name="CcType.php" hash="088d0e8c51f594092a0c6cd0f9bf6545"/><file name="CcTypeHosted.php" hash="f119a5901ac3a9056df56f9cb35b5e02"/><file name="PaymentAction.php" hash="10638f85360e7693819cbbfd156bed72"/><file name="PaymentProfile.php" hash="9e8c5e4bea5c50b1a63c71cfd9416ff1"/><file name="Pendingredirect.php" hash="f0c3125415535637c159c97fc2627740"/><file name="Template.php" hash="2aa16f597398af7ec73e4c7b0f126fd4"/><dir name="Order"><file name="HipayStatusValidate.php" hash="63414f71ce035909310f27842bc1b511"/><file name="Status.php" hash="395ac5e1567ee6095769abc6ce64fec0"/><dir name="Status"><file name="Accepted.php" hash="20cfc4b9ec26a2b458f8ffc43f6195aa"/><file name="Canceled.php" hash="49a6f0b6033e698fbefe01967b81b21d"/><file name="New.php" hash="226d2f1a5d441dbd6404ea342555e893"/><file name="Refused.php" hash="dbf1ed822488bb0d03f71461c872154d"/></dir></dir></dir><dir name="Resource"><file name="Card.php" hash="5550c1486504972e6423fce49e3e8d93"/><file name="PaymentProfile.php" hash="fb397fd11c35b19986d4688d207b55cb"/><file name="Rule.php" hash="115bccaa9e4d37ed03e179147ab3788d"/><file name="SplitPayment.php" hash="133f41e753dfbb150cb61c6edf5745c9"/><dir name="PaymentProfile"><file name="Collection.php" hash="b1d5980904dbc3669cc6ee904c7620a3"/></dir><dir name="Rule"><file name="Collection.php" hash="b4dd0d851cda670c6aafad0cf588b106"/></dir><dir name="Card"><file name="Collection.php" hash="4a9ca5d5124dcaa5fe9a01c7e864bf6e"/></dir><dir name="SplitPayment"><file name="Collection.php" hash="c44859bdf1e4de9551bc31cd57e7ef88"/></dir></dir><dir name="Log"><file name="Adapter.php" hash="9d5533d5d3622c72cbc84abfd4e3116c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="62e7a41692a8bbf2f3fda6e7c30131f2"/></dir><dir name="Controller"><file name="Payment.php" hash="debb4181d3f5e691a146cd94dfcabe8c"/></dir><dir name="controllers"><file name="CardController.php" hash="ebbbcf9c15ee39165d866991a6b348f3"/><file name="CbcController.php" hash="11a793cfef50322482b4d1e44f7fb427"/><file name="CcController.php" hash="2e45012894cac90a24c2017a427258b5"/><file name="CcxtimesController.php" hash="0e87e2d91b4b1214d0e37e432429c832"/><file name="CheckoutController.php" hash="ba9392dc51da0a4cfb5941b60c2473bc"/><file name="DexiaController.php" hash="abafa7205262125aef603f0d51445ebd"/><file name="GiropayController.php" hash="93ebe6d63e60627ee86815a7cc23006b"/><file name="HostedController.php" hash="f0bd2d41f36b0453e42063531b88d4a3"/><file name="HostedxtimesController.php" hash="8d97dcea1d97cc2711c3150923b8ecee"/><file name="IdealController.php" hash="49bc5c1a52c98cef934b45ce27da574a"/><file name="IngController.php" hash="43b8ae9e752d5268a51a164abc98df9f"/><file name="KbcController.php" hash="fad29361513cc354dcf200fde25265da"/><file name="KlarnaController.php" hash="b2b673947547780c2472e05744a4708a"/><file name="NotifyController.php" hash="a6c3a098c092531d2ed95da5d8b5221a"/><file name="PaypalapiController.php" hash="6163a491b9e7b43593983da5735d29e6"/><file name="PostfinancecardapiController.php" hash="6ec048a2c6d3ac0637a99a34756a9720"/><file name="PostfinanceefinanceapiController.php" hash="b7337fa81c804c62c04a059a305c3152"/><file name="Przelewy24Controller.php" hash="d6923f98e8a53d8b8becd1d5ef99e0d0"/><file name="Przelewy24apiController.php" hash="bc488ef00a5a063d05aa12c545d8e8fe"/><file name="QiwiController.php" hash="6b3e05b2910dae0b919c50cb06363c57"/><file name="SddController.php" hash="8b1d24a040c7767b7889df51a10eac75"/><file name="SisalController.php" hash="32bdb5bf400fa1c6ee5bfb2c79b889f9"/><file name="SisalapiController.php" hash="23a04c3fe9470ef98ce84fcf5c1dd9fe"/><file name="SofortController.php" hash="5479f2e8c3043ad0dd51167bd9bcf623"/><file name="SofortapiController.php" hash="74aa59c7c7795f9f61c6b4bfeae193e3"/><file name="WebmoneyController.php" hash="b52fdbc662da23f839750c9919aad809"/><file name="WebmoneyapiController.php" hash="f34dc66aca5218930be548c88e7e9004"/><file name="YandexController.php" hash="629ec07271f8a11d7c88824154b637f0"/><file name="YandexapiController.php" hash="9741c2a9427866895907629af1e9ed98"/><dir name="Adminhtml"><file name="CardController.php" hash="1e5cba078cef7987df9314c467dd640e"/><file name="PaymentController.php" hash="0c30820ebebe6c276ae4b468acc21321"/><file name="PaymentProfileController.php" hash="887808a799db4e95d76bb9a014f80f29"/><file name="RuleController.php" hash="55291c15c7de616237b14dfad1bc5e80"/><file name="SplitPaymentController.php" hash="642960a1002c316efc04d3af4e6d2a57"/><dir name="Sales"><dir name="Order"><file name="CreateController.php" hash="f0f046bae0aacb974afbb62f35e5e062"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="ad697ae89e8eba6b0c42f3810d31d7b4"/><file name="system.xml" hash="268ac65dc6b9b5f5c05d07a10d5e16ac"/></dir><dir name="sql"><dir name="allopass_hipay_setup"><file name="mysql4-install-0.1.0.php" hash="820dc1e282c2c88deeb167d61918088b"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="af83b289e454c2d2ab91d2a6800d079a"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="1aa9291c5ac40a03ccbf3bcb6ce0c47e"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="17ddfaae63edc655fec04dcd5f96136a"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="5dfaafe02016ff47dfd80c89effaaabb"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="abec801a24e8515ad80dfe3563fd1492"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="c4e2c53d2b62d8829731449b881dd171"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="b3080317af653951030d7d2a1b116e75"/><file name="mysql4-upgrade-1.0.9-1.1.0.php" hash="81abd6cd95c846d67abc78d2a96a0f15"/><file name="mysql4-upgrade-1.1.0-1.6.0.php" hash="dfc9fb427f0a0dace5fb318d650277c3"/></dir></dir><dir name="Block"><file name="Card.php" hash="12b531784c6928389f4b7abfab5fc397"/><dir name="Form"><file name="Abstract.php" hash="776dfa8030972f74a305d270aac0ae19"/><file name="Cc.php" hash="64b899c98ee3edd77c5262eccd0bdfd1"/><file name="Hosted.php" hash="1cbc3fe21de97bba192cd5e651dfaeae"/></dir><dir name="Checkout"><file name="Pending.php" hash="48112f7e2fdcc79ee9431cf5350e223f"/><file name="Tokenjs.php" hash="82adcf1d7ba1cd7c5fd99e63ff193c9a"/><dir name="Cart"><file name="Totals.php" hash="b711e1f41b857d4e8da48a5b00a32677"/></dir></dir><dir name="Card"><file name="Edit.php" hash="530cd326480c2d074dfdc59a578dd1db"/></dir><dir name="Adminhtml"><file name="PaymentProfile.php" hash="b02de6e3cf69724d7f901f9b4f42e333"/><file name="SplitPayment.php" hash="1f5b84881308b79f0ada533862568e28"/><dir name="PaymentProfile"><file name="Edit.php" hash="ef7b6945e91ef450a8a6a4ef0dbfef97"/><file name="Grid.php" hash="f8ac0daa082f3c6d2be6289e935dbd31"/><dir name="Edit"><file name="Form.php" hash="3bbb2a5be1a3b6946cf132eb355231ca"/></dir></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Card.php" hash="66cfbbc826154553c33d1adb9062053b"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="3dsRule.php" hash="c18bd31b872b7318e574676571c16491"/><file name="Allowsplitpayment.php" hash="0c6e4378ba1537584417870c9eb2c59c"/><file name="MultiselectSortable.php" hash="afba089fed75aefece6155de1210a856"/><file name="Notice.php" hash="4aa94f430bd8181f898cbda9e0ddda1e"/></dir></dir></dir></dir><dir name="Card"><file name="Edit.php" hash="5f1896bb299030ade2090e2743ce2f95"/><dir name="Edit"><file name="Form.php" hash="addfd57cd54aff9ce5b57759105ad221"/></dir></dir><dir name="SplitPayment"><file name="Edit.php" hash="2aa5f311f6ba084420a6adc0fa518cc5"/><file name="Grid.php" hash="42031ca1b4a9a399e6e148378880ad82"/><dir name="Edit"><file name="Form.php" hash="33568fca2aa143006862d8aca4184262"/></dir></dir></dir><dir name="Info"><file name="Cc.php" hash="d4ed3d7c3bbc82c1b3b13e19abdd4ddc"/><file name="Hosted.php" hash="40355126a48bd854c21bb0201840229c"/></dir></dir></dir></dir></dir></dir><dir name="locale"><dir name="en_US"><file name="Allopass_Hipay.csv" hash="24801e8a3e9ed2201e6d2d3321897b69"/><dir name="template"><dir name="email"><file name="hipay_fraud_payment.html" hash="099f8760397b9c9ccaf24bee1bdfdadc"/><file name="hipay_fraud_payment_accept.html" hash="e577cb25ea4a4ad2cd764545de86a794"/><file name="hipay_fraud_payment_deny.html" hash="9011d7215936745d781f922015bc5b9a"/><file name="hipay_hipay_api_moto.html" hash="19000628bd298e3e49f3d09b9432c0c7"/></dir></dir></dir><dir name="fr_FR"><file name="Allopass_Hipay.csv" hash="c93e9ed37828a7587c5218448954775a"/><dir name="template"><dir name="email"><file name="hipay_fraud_payment.html" hash="3e2da47265d7e68bbb3db9f55cc4498f"/><file name="hipay_fraud_payment_accept.html" hash="5f2538c69555f414f7c8e8767ac505f7"/><file name="hipay_fraud_payment_deny.html" hash="035b655eac80930d6ebe4e5bf2c3e50c"/><file name="hipay_hipay_api_moto.html" hash="90509ea995a48683cee66bc822665c5f"/></dir></dir></dir><dir name="it_IT"><file name="Allopass_Hipay.csv" hash="266969a37744535ba5bede1d337dac26"/><dir name="template"><dir name="email"><file name="hipay_fraud_payment.html" hash="099f8760397b9c9ccaf24bee1bdfdadc"/><file name="hipay_fraud_payment_accept.html" hash="e577cb25ea4a4ad2cd764545de86a794"/><file name="hipay_fraud_payment_deny.html" hash="9011d7215936745d781f922015bc5b9a"/><file name="hipay_hipay_api_moto.html" hash="19000628bd298e3e49f3d09b9432c0c7"/></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Allopass_Hipay.xml" hash="fd0ac2e9080c0a432a3a7b6d969171c0"/></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="hipay"><dir name="checkout"><file name="pending.phtml" hash="34e6bba88ea5fdd6b4ea71595de638d6"/><file name="tokenjs.phtml" hash="af0a84afb4321b997d341d7e59d7c767"/></dir><dir name="card"><file name="account.phtml" hash="129ca019bd14dad8559e90eb09fc2180"/><dir name="form"><file name="edit.phtml" hash="befde62b0368c1afb8daa70d46796865"/></dir></dir><dir name="form"><file name="cc.phtml" hash="b85ce854175dc9a20e936b1125ddcaff"/><file name="hosted.phtml" hash="f590c6b76dcff32fa1cffd81d451c4e9"/></dir><dir name="info"><file name="cc.phtml" hash="96e92e2b6564392e7294b8f96469940f"/><file name="hosted.phtml" hash="96e92e2b6564392e7294b8f96469940f"/></dir></dir></dir><dir name="layout"><file name="hipay.xml" hash="ef6a5c8503257f8a2d3a0eb594a04ab6"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="hipay"><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="notice.phtml" hash="6ff45544c303ede811734723552fedc4"/><file name="rules.phtml" hash="b25ca0397baffa2306ab70776b2febac"/></dir></dir></dir></dir><dir name="form"><file name="cc.phtml" hash="548c5d5ee72f1e036e734b83d24d3a02"/><file name="hosted.phtml" hash="b24b9dfe810e0b61309690089823303f"/></dir><dir name="info"><file name="cc.phtml" hash="96e92e2b6564392e7294b8f96469940f"/><file name="hosted.phtml" hash="96e92e2b6564392e7294b8f96469940f"/></dir></dir></dir><dir name="layout"><file name="hipay.xml" hash="478e41f2896fd595f4d264149059c737"/></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="hipay-fingerprint.min.js" hash="d0ec45711a36210d86360cb670a70014"/><file name="hipay-fullservice-sdk.min.js" hash="857b18224c0b6cc62448c12c5d959aa3"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="hipay"><dir name="js"><file name="rules.js" hash="c9f87ded0b3a8505e78ab2584c2f098f"/></dir></dir></dir></dir></dir></dir></target></contents></package>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<package><name>Allopass_Hipay</name><version>1.7.0</version><stability>stable</stability><license>General Public License (GPL)</license><channel>community</channel><extends></extends><summary>Official HiPay Fullservice payment extension.</summary><description>HiPay Fullservice is the first payment platform oriented towards merchants that responds to all matters related to online payment: transaction processing, risk management, relationship management with banks and acquirers, financial reconciliation or even international expansion.</description><notes></notes><authors><author><name>Kassim Belghait</name><user>Sirateck</user><email>kassim@sirateck.com</email></author></authors><date>2017-06-12</date><time>2:40:20</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Allopass"><dir name="Hipay"><dir name="Model"><file name="Card.php" hash="5d5ed0ece4cb9ef50bf445eee6911f8a"/><file name="Config.php" hash="6d27c9d5bd060ffcfbac63b8cd48bed6"/><file name="Observer.php" hash="7259a809b9eee4b6352b748ffc83f4f2"/><file name="PaymentProfile.php" hash="8eb4fbb9969500ee09b3fb07363718aa"/><file name="Rule.php" hash="4cddad3f6cb38af59dc2726d80148f51"/><file name="SplitPayment.php" hash="8eb8dbb887e8038a271eb62257700f7a"/><dir name="Field"><file name="CategoryMapping.php" hash="67da2c3be440ae53f2bb58b5b5afa78b"/><file name="MappingShippingMethod.php" hash="dac2b0b9d760160e6703e1bdb2d645a5"/></dir><dir name="Api"><file name="Request.php" hash="7d4fe8bc9cad2243c4b8c8841b86a46f"/><dir name="Response"><file name="Abstract.php" hash="a430ca978e61796696ae4ead61efdb60"/><file name="Error.php" hash="57386fde5e5993c1126418025093a58a"/><file name="Gateway.php" hash="49b0e43a55e223df601884cfd9a0d2c5"/><file name="Notification.php" hash="0f7373ec3435b477424352c058f42255"/><file name="Vault.php" hash="47b962a59c150ffd653ba4054bc053d0"/></dir><dir name="Http"><dir name="Client"><dir name="Adapter"><file name="Curl.php" hash="cebf9e03d310e65f23a2a4ddc980e26f"/><file name="Stream.php" hash="5a110dd1f33ee4c8319cec396fc4fa40"/></dir></dir></dir></dir><dir name="Rule"><file name="Config.php" hash="4034bf549bc274c836930a43d0ef8646"/><dir name="Condition"><file name="Address.php" hash="25c9966d184f61a3d61af9ea0f04aeca"/><file name="Combine.php" hash="e57da0bfd13c85721ef06d9f5c1d5a45"/><file name="Customer.php" hash="b847ff261e77565af4f64761d378de59"/><file name="Product.php" hash="5186cb9be313c7a772a11613ff4d1406"/><dir name="Product"><file name="Combine.php" hash="b99adc27124c3c6f56d04f0bcb5a42be"/><file name="Found.php" hash="bc266762458faaba326b7d7245b688a8"/><file name="Subselect.php" hash="5c0d482cddd69d82350bc5fec15c40b7"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="CcTypes.php" hash="916ab83c9e5e1ee18d488f42a090c524"/></dir></dir></dir><dir name="Method"><file name="Abstract.php" hash="f191f3a498170455e54020b8b78c6787"/><file name="AbstractOrder.php" hash="b33f6920f0f571c3e2e4017166f720d2"/><file name="Astropay.php" hash="ec2f838cb2ff6ec7c2a061ccba5b5402"/><file name="Aura.php" hash="7c1973d365b4c08f291dbdae9b302a49"/><file name="Banamex.php" hash="34256372111ed72abfc9f82df35d6f5e"/><file name="Banco.php" hash="2675d5787c6924d712ceefc3d4359ffa"/><file name="Bbva.php" hash="844e1bbeb99874a87b926c202cd0e59d"/><file name="Boleto.php" hash="c7a86e821a41aef612df8961ab634b03"/><file name="Bradesco.php" hash="dc6bc33421054e61aae00c01f20094d2"/><file name="Caixa.php" hash="ea503fbb1961f4eb9bd77201bf8189a2"/><file name="Cbc.php" hash="49d1b0e2ad320c1a78043bb7231de930"/><file name="Cc.php" hash="812208167dcc5a651e34a6afe9e2663d"/><file name="CcXtimes.php" hash="8d4f2f77f2e0377600cff2f93a3f0e66"/><file name="Dexia.php" hash="1cb8041d3d6393eb8e2ad673c5dd4594"/><file name="Discover.php" hash="56e2d74c0d267b017852dda34fa2949e"/><file name="Facilipay3x.php" hash="4f76f5ab3dc26442461a1e03497cf294"/><file name="Facilipay4x.php" hash="b11a85ea36b300212bca343a33c10941"/><file name="Giropay.php" hash="85d350f66fa3b0b162fe542165bce4cc"/><file name="Hosted.php" hash="ea3f0c3cae75fea0c9fec22b5d3553ac"/><file name="HostedXtimes.php" hash="d81e2c0746a7d1437fde693fba219e1d"/><file name="Ideal.php" hash="0cf882d667b36c0e89bc1800ea9fa7a1"/><file name="Ing.php" hash="774c41e17868dcfe8031d047703a8b1c"/><file name="Itau.php" hash="ce8cf887bd9aea7adc57a1e8dff648b1"/><file name="Kbc.php" hash="77981ab4ebd64d3555bd9fddccadf283"/><file name="Klarna.php" hash="4c65315115247d79beb47262de5272b8"/><file name="Oxxo.php" hash="d6f04b88c7c96b269d1f0db59fd9a239"/><file name="PaypalApi.php" hash="1be9f6636f2f1ab4608ab7bef6af2227"/><file name="PostfinancecardApi.php" hash="b2fe3a01d9ca0ac0a54e6282dcb3018b"/><file name="PostfinanceefinanceApi.php" hash="14e08831fa7c6405d465120ba80bca58"/><file name="Przelewy24.php" hash="00b695e7b34b69f36d593587a9b5dcdd"/><file name="Przelewy24Api.php" hash="cb924c45713efee53c7d06a73007e14b"/><file name="Qiwi.php" hash="acea5092f8fd1720d506d5be3714864f"/><file name="Santander.php" hash="c76f7ed02d6bc17346dc9a17469f75f8"/><file name="Santandercash.php" hash="399ebf949a935ae4b3dabf34c966f48c"/><file name="Sdd.php" hash="be79ca9e43d642d61cd4ceddd50e193a"/><file name="Sisal.php" hash="d6f97559eb485a8d6d66e5a7abc0e077"/><file name="SisalApi.php" hash="f9b43ce77d34b819619633d975167b10"/><file name="Sofort.php" hash="fa6cb68aff431c2dc91e7b3c62a29aaa"/><file name="SofortApi.php" hash="44822c230e012d1c8f11336298d73d2d"/><file name="Webmoney.php" hash="5705818f9288d1c0acc49882c42c195f"/><file name="WebmoneyApi.php" hash="82ea811ec1a20db01bf61735a0a02938"/><file name="Yandex.php" hash="1edad262a001d96ede94c9406e680f46"/><file name="YandexApi.php" hash="44c368582da42ae45db2e54b3710963e"/></dir><dir name="Source"><file name="3ds.php" hash="e7b97e8a1c886b11951051a212c965ba"/><file name="Attributes.php" hash="f32ae1fc6e394e0871c5aa9a128fe87e"/><file name="CcType.php" hash="088d0e8c51f594092a0c6cd0f9bf6545"/><file name="CcTypeHosted.php" hash="f119a5901ac3a9056df56f9cb35b5e02"/><file name="PaymentAction.php" hash="10638f85360e7693819cbbfd156bed72"/><file name="PaymentProfile.php" hash="9e8c5e4bea5c50b1a63c71cfd9416ff1"/><file name="Pendingredirect.php" hash="f0c3125415535637c159c97fc2627740"/><file name="Template.php" hash="2aa16f597398af7ec73e4c7b0f126fd4"/><dir name="Product"><file name="Facilipay3x.php" hash="4db7e24ccb83af02fd4447e8d6ff930d"/><file name="Facilipay4x.php" hash="06c32155fef478b2e578ac5879775191"/></dir><dir name="Order"><file name="HipayStatusValidate.php" hash="63414f71ce035909310f27842bc1b511"/><file name="Status.php" hash="395ac5e1567ee6095769abc6ce64fec0"/><dir name="Status"><file name="Accepted.php" hash="20cfc4b9ec26a2b458f8ffc43f6195aa"/><file name="Canceled.php" hash="49a6f0b6033e698fbefe01967b81b21d"/><file name="New.php" hash="226d2f1a5d441dbd6404ea342555e893"/><file name="Refused.php" hash="dbf1ed822488bb0d03f71461c872154d"/></dir></dir></dir><dir name="Resource"><file name="Card.php" hash="5550c1486504972e6423fce49e3e8d93"/><file name="PaymentProfile.php" hash="fb397fd11c35b19986d4688d207b55cb"/><file name="Rule.php" hash="115bccaa9e4d37ed03e179147ab3788d"/><file name="SplitPayment.php" hash="133f41e753dfbb150cb61c6edf5745c9"/><dir name="PaymentProfile"><file name="Collection.php" hash="b1d5980904dbc3669cc6ee904c7620a3"/></dir><dir name="Rule"><file name="Collection.php" hash="b4dd0d851cda670c6aafad0cf588b106"/></dir><dir name="Card"><file name="Collection.php" hash="4a9ca5d5124dcaa5fe9a01c7e864bf6e"/></dir><dir name="SplitPayment"><file name="Collection.php" hash="c44859bdf1e4de9551bc31cd57e7ef88"/></dir></dir><dir name="Log"><file name="Adapter.php" hash="9d5533d5d3622c72cbc84abfd4e3116c"/></dir></dir><dir name="Helper"><file name="Collection.php" hash="d111e91dd540a4582bb079e31cec6861"/><file name="Data.php" hash="5c6d2e9e92e4acfda4125e0d7345b849"/></dir><dir name="Controller"><file name="Payment.php" hash="debb4181d3f5e691a146cd94dfcabe8c"/></dir><dir name="controllers"><file name="AuraController.php" hash="8dc485c4d0f2b748e01089bca2f32899"/><file name="BanamexController.php" hash="c5359978336e2762911da9fd54102094"/><file name="BancoController.php" hash="87f7884a7223ff242f995822427c79d3"/><file name="BbvaController.php" hash="a20c36f7af9db70454c0e0f2c9982276"/><file name="BoletoController.php" hash="801d7b2076ceed0d48809c4c9610a6d0"/><file name="BradescoController.php" hash="6b89ab188ce7df7790d4adbefa616b46"/><file name="CaixaController.php" hash="6f2b9262eb786aaad598f97a37f48919"/><file name="CardController.php" hash="ebbbcf9c15ee39165d866991a6b348f3"/><file name="CbcController.php" hash="11a793cfef50322482b4d1e44f7fb427"/><file name="CcController.php" hash="2e45012894cac90a24c2017a427258b5"/><file name="CcxtimesController.php" hash="0e87e2d91b4b1214d0e37e432429c832"/><file name="CheckoutController.php" hash="ba9392dc51da0a4cfb5941b60c2473bc"/><file name="DexiaController.php" hash="abafa7205262125aef603f0d51445ebd"/><file name="DiscoverController.php" hash="9e0ba7abc7e34612468c7fd65355bd06"/><file name="Facilipay3xController.php" hash="c24149654e94119eae05f9921db35b9d"/><file name="Facilipay4xController.php" hash="d644196d5af515e2550bf2f64993037c"/><file name="GiropayController.php" hash="93ebe6d63e60627ee86815a7cc23006b"/><file name="HostedController.php" hash="f0bd2d41f36b0453e42063531b88d4a3"/><file name="HostedxtimesController.php" hash="8d97dcea1d97cc2711c3150923b8ecee"/><file name="IdealController.php" hash="49bc5c1a52c98cef934b45ce27da574a"/><file name="IngController.php" hash="43b8ae9e752d5268a51a164abc98df9f"/><file name="ItauController.php" hash="e5d0cb7d8a4f1673e775d66a7b758a9d"/><file name="KbcController.php" hash="fad29361513cc354dcf200fde25265da"/><file name="KlarnaController.php" hash="b2b673947547780c2472e05744a4708a"/><file name="NotifyController.php" hash="a6c3a098c092531d2ed95da5d8b5221a"/><file name="OxxoController.php" hash="ac1c8c56555b5e3e38f633e543de94bc"/><file name="PaypalapiController.php" hash="6163a491b9e7b43593983da5735d29e6"/><file name="PostfinancecardapiController.php" hash="6ec048a2c6d3ac0637a99a34756a9720"/><file name="PostfinanceefinanceapiController.php" hash="b7337fa81c804c62c04a059a305c3152"/><file name="Przelewy24Controller.php" hash="d6923f98e8a53d8b8becd1d5ef99e0d0"/><file name="Przelewy24apiController.php" hash="bc488ef00a5a063d05aa12c545d8e8fe"/><file name="QiwiController.php" hash="6b3e05b2910dae0b919c50cb06363c57"/><file name="SantanderCashController.php" hash="469a5f0b52b31f8c04178fb7f31c3e49"/><file name="SantanderController.php" hash="3a2f7d981f204b02f5914065ced8b8d6"/><file name="SddController.php" hash="8b1d24a040c7767b7889df51a10eac75"/><file name="SisalController.php" hash="32bdb5bf400fa1c6ee5bfb2c79b889f9"/><file name="SisalapiController.php" hash="23a04c3fe9470ef98ce84fcf5c1dd9fe"/><file name="SofortController.php" hash="5479f2e8c3043ad0dd51167bd9bcf623"/><file name="SofortapiController.php" hash="74aa59c7c7795f9f61c6b4bfeae193e3"/><file name="WebmoneyController.php" hash="b52fdbc662da23f839750c9919aad809"/><file name="WebmoneyapiController.php" hash="f34dc66aca5218930be548c88e7e9004"/><file name="YandexController.php" hash="629ec07271f8a11d7c88824154b637f0"/><file name="YandexapiController.php" hash="9741c2a9427866895907629af1e9ed98"/><dir name="Adminhtml"><file name="CardController.php" hash="1e5cba078cef7987df9314c467dd640e"/><file name="PaymentController.php" hash="b9d9878cdfae02e6cb9f9b7c9f39a900"/><file name="PaymentProfileController.php" hash="887808a799db4e95d76bb9a014f80f29"/><file name="RuleController.php" hash="55291c15c7de616237b14dfad1bc5e80"/><file name="SplitPaymentController.php" hash="642960a1002c316efc04d3af4e6d2a57"/><dir name="Sales"><dir name="Order"><file name="CreateController.php" hash="f0f046bae0aacb974afbb62f35e5e062"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="0ec3fcc602d893ce943e548b77d9d955"/><file name="system.xml" hash="b4e17b09b3c358702fc11e1a485b56e0"/></dir><dir name="sql"><dir name="allopass_hipay_setup"><file name="mysql4-install-0.1.0.php" hash="820dc1e282c2c88deeb167d61918088b"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="af83b289e454c2d2ab91d2a6800d079a"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="1aa9291c5ac40a03ccbf3bcb6ce0c47e"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="17ddfaae63edc655fec04dcd5f96136a"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="5dfaafe02016ff47dfd80c89effaaabb"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="abec801a24e8515ad80dfe3563fd1492"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="c4e2c53d2b62d8829731449b881dd171"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="b3080317af653951030d7d2a1b116e75"/><file name="mysql4-upgrade-1.0.9-1.1.0.php" hash="81abd6cd95c846d67abc78d2a96a0f15"/><file name="mysql4-upgrade-1.1.0-1.6.0.php" hash="dfc9fb427f0a0dace5fb318d650277c3"/></dir></dir><dir name="Block"><file name="Card.php" hash="12b531784c6928389f4b7abfab5fc397"/><dir name="Form"><file name="Abstract.php" hash="3fc939b95a81b6f1f1d2e325fe4eec48"/><file name="Cc.php" hash="64b899c98ee3edd77c5262eccd0bdfd1"/><file name="Hosted.php" hash="1cbc3fe21de97bba192cd5e651dfaeae"/></dir><dir name="Checkout"><file name="Pending.php" hash="48112f7e2fdcc79ee9431cf5350e223f"/><file name="Tokenjs.php" hash="82adcf1d7ba1cd7c5fd99e63ff193c9a"/><dir name="Cart"><file name="Totals.php" hash="b711e1f41b857d4e8da48a5b00a32677"/></dir></dir><dir name="Card"><file name="Edit.php" hash="530cd326480c2d074dfdc59a578dd1db"/></dir><dir name="Adminhtml"><file name="PaymentProfile.php" hash="b02de6e3cf69724d7f901f9b4f42e333"/><file name="SplitPayment.php" hash="1f5b84881308b79f0ada533862568e28"/><dir name="Field"><file name="MappingCategory.php" hash="06a2081c5ac82cac6bce1e44ae2bc9ad"/><file name="MappingShippingMethod.php" hash="788a9356ade99b7c68d93e0fa798b9e7"/><dir name="Renderer"><file name="Label.php" hash="793621b093080a0b17d59f738cb977f5"/><file name="List.php" hash="5bbf255a041de4b6504dd005ee45c80d"/></dir></dir><dir name="PaymentProfile"><file name="Edit.php" hash="ef7b6945e91ef450a8a6a4ef0dbfef97"/><file name="Grid.php" hash="f8ac0daa082f3c6d2be6289e935dbd31"/><dir name="Edit"><file name="Form.php" hash="3bbb2a5be1a3b6946cf132eb355231ca"/></dir></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Card.php" hash="66cfbbc826154553c33d1adb9062053b"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="3dsRule.php" hash="c18bd31b872b7318e574676571c16491"/><file name="Allowsplitpayment.php" hash="0c6e4378ba1537584417870c9eb2c59c"/><file name="Expanded.php" hash="47b64c6a3d47d661497ac0c9f562b095"/><file name="Information.php" hash="fe264a19343f8d44180d85c39a543e04"/><file name="MultiselectSortable.php" hash="afba089fed75aefece6155de1210a856"/><file name="Notice.php" hash="7e305ec077da51381d53c99da4884578"/></dir></dir></dir></dir><dir name="Card"><file name="Edit.php" hash="5f1896bb299030ade2090e2743ce2f95"/><dir name="Edit"><file name="Form.php" hash="addfd57cd54aff9ce5b57759105ad221"/></dir></dir><dir name="SplitPayment"><file name="Edit.php" hash="2aa5f311f6ba084420a6adc0fa518cc5"/><file name="Grid.php" hash="42031ca1b4a9a399e6e148378880ad82"/><dir name="Edit"><file name="Form.php" hash="33568fca2aa143006862d8aca4184262"/></dir></dir></dir><dir name="Info"><file name="Cc.php" hash="d4ed3d7c3bbc82c1b3b13e19abdd4ddc"/><file name="Hosted.php" hash="40355126a48bd854c21bb0201840229c"/></dir></dir></dir></dir></dir></dir><dir name="locale"><dir name="en_US"><file name="Allopass_Hipay.csv" hash="040392064bd3c344e95dbd02a57c16ea"/><dir name="template"><dir name="email"><file name="hipay_fraud_payment.html" hash="099f8760397b9c9ccaf24bee1bdfdadc"/><file name="hipay_fraud_payment_accept.html" hash="e577cb25ea4a4ad2cd764545de86a794"/><file name="hipay_fraud_payment_deny.html" hash="9011d7215936745d781f922015bc5b9a"/><file name="hipay_hipay_api_moto.html" hash="19000628bd298e3e49f3d09b9432c0c7"/></dir></dir></dir><dir name="fr_FR"><file name="Allopass_Hipay.csv" hash="8afe44d48db2c9dc8d2ca1e60703f2a9"/><dir name="template"><dir name="email"><file name="hipay_fraud_payment.html" hash="3e2da47265d7e68bbb3db9f55cc4498f"/><file name="hipay_fraud_payment_accept.html" hash="5f2538c69555f414f7c8e8767ac505f7"/><file name="hipay_fraud_payment_deny.html" hash="035b655eac80930d6ebe4e5bf2c3e50c"/><file name="hipay_hipay_api_moto.html" hash="90509ea995a48683cee66bc822665c5f"/></dir></dir></dir><dir name="it_IT"><file name="Allopass_Hipay.csv" hash="266969a37744535ba5bede1d337dac26"/><dir name="template"><dir name="email"><file name="hipay_fraud_payment.html" hash="099f8760397b9c9ccaf24bee1bdfdadc"/><file name="hipay_fraud_payment_accept.html" hash="e577cb25ea4a4ad2cd764545de86a794"/><file name="hipay_fraud_payment_deny.html" hash="9011d7215936745d781f922015bc5b9a"/><file name="hipay_hipay_api_moto.html" hash="19000628bd298e3e49f3d09b9432c0c7"/></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Allopass_Hipay.xml" hash="fd0ac2e9080c0a432a3a7b6d969171c0"/></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="hipay"><dir name="checkout"><file name="pending.phtml" hash="34e6bba88ea5fdd6b4ea71595de638d6"/><file name="tokenjs.phtml" hash="af0a84afb4321b997d341d7e59d7c767"/></dir><dir name="card"><file name="account.phtml" hash="129ca019bd14dad8559e90eb09fc2180"/><dir name="form"><file name="edit.phtml" hash="befde62b0368c1afb8daa70d46796865"/></dir></dir><dir name="form"><file name="cc.phtml" hash="e998f9bab1724a3815cf33f32f4a9561"/><file name="hosted.phtml" hash="f590c6b76dcff32fa1cffd81d451c4e9"/></dir><dir name="info"><file name="cc.phtml" hash="96e92e2b6564392e7294b8f96469940f"/><file name="hosted.phtml" hash="96e92e2b6564392e7294b8f96469940f"/></dir></dir></dir><dir name="layout"><file name="hipay.xml" hash="ef6a5c8503257f8a2d3a0eb594a04ab6"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="hipay"><file name="mapping.phtml" hash="64c6c9e4bdbf40bf5494c611a42d9aae"/><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="information.phtml" hash="ba735694071ed5dfe514891c57ff54eb"/><file name="notice.phtml" hash="0a888b4ffed097d50cb7f5a17ffa644f"/><file name="rules.phtml" hash="b25ca0397baffa2306ab70776b2febac"/></dir></dir></dir></dir><dir name="form"><file name="cc.phtml" hash="548c5d5ee72f1e036e734b83d24d3a02"/><file name="hosted.phtml" hash="b24b9dfe810e0b61309690089823303f"/></dir><dir name="info"><file name="cc.phtml" hash="96e92e2b6564392e7294b8f96469940f"/><file name="hosted.phtml" hash="96e92e2b6564392e7294b8f96469940f"/></dir></dir></dir><dir name="layout"><file name="hipay.xml" hash="467326640b5b5dce2e889e24494642be"/></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="hipay-fingerprint.min.js" hash="d0ec45711a36210d86360cb670a70014"/><file name="hipay-fullservice-sdk.min.js" hash="857b18224c0b6cc62448c12c5d959aa3"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="hipay"><dir name="css"><file name="hipay.css" hash="4bd7055a1d35eaf6fed19c6d99e4cad2"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="hipay"><dir name="js"><file name="rules.js" hash="c9f87ded0b3a8505e78ab2584c2f098f"/></dir></dir></dir></dir></dir></dir></target></contents></package>
|
skin/adminhtml/base/default/hipay/css/hipay.css
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
|
2 |
+
|
3 |
+
.warning-mapping {
|
4 |
+
color: #D8000C;
|
5 |
+
font-weight: 600;
|
6 |
+
}
|
7 |
+
|
8 |
+
.warning-mapping:before {
|
9 |
+
font-family:FontAwesome;
|
10 |
+
content:'\f071';
|
11 |
+
color: #D8000C;
|
12 |
+
font-weight: 600;
|
13 |
+
}
|
14 |
+
.notice-hipay {
|
15 |
+
padding: 8px 30px;
|
16 |
+
border: 0;
|
17 |
+
margin: 10px 1px;
|
18 |
+
cursor: pointer;
|
19 |
+
border-radius: 10px;
|
20 |
+
background-color: #f1f1f1;
|
21 |
+
}
|
22 |
+
|
23 |
+
.notice-hipay .nb-mapping-missing {
|
24 |
+
color: #D8000C;
|
25 |
+
font-weight: 600;
|
26 |
+
margin: 20px;
|
27 |
+
}
|
28 |
+
|
29 |
+
.notice-hipay .nb-mapping-missing:before {
|
30 |
+
content:'-';
|
31 |
+
}
|
32 |
+
|
33 |
+
.notice-hipay:before {
|
34 |
+
font-family:FontAwesome;
|
35 |
+
content:'\f071';
|
36 |
+
font-size:5em;
|
37 |
+
font-style:normal;
|
38 |
+
font-weight:400;
|
39 |
+
speak:none;
|
40 |
+
display:inline-block;
|
41 |
+
text-decoration:inherit;
|
42 |
+
width:1em;
|
43 |
+
margin-right:.2em;
|
44 |
+
text-align:center;
|
45 |
+
font-variant:normal;
|
46 |
+
text-transform:none;
|
47 |
+
line-height:1em;
|
48 |
+
margin-left:.2em;
|
49 |
+
color: #D8000C;
|
50 |
+
}
|