Version Notes
Download this release
Release Info
Developer | Kassim Belghait |
Extension | Allopass_Hipay |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.3.0
- app/code/community/Allopass/Hipay/Block/Adminhtml/Card/Edit.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/Card/Edit/Form.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/Customer/Edit/Tab/Card.php +2 -2
- app/code/community/Allopass/Hipay/Block/Adminhtml/PaymentProfile.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/PaymentProfile/Edit.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/PaymentProfile/Edit/Form.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/PaymentProfile/Grid.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/SplitPayment.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/SplitPayment/Edit.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/SplitPayment/Edit/Form.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/SplitPayment/Grid.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/3dsRule.php +1 -1
- app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/Allowsplitpayment.php +0 -0
- app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/MultiselectSortable.php +0 -0
- app/code/community/Allopass/Hipay/Block/Card.php +0 -0
- app/code/community/Allopass/Hipay/Block/Card/Edit.php +0 -0
- app/code/community/Allopass/Hipay/Block/Checkout/Pending.php +0 -0
- app/code/community/Allopass/Hipay/Block/Form/Abstract.php +3 -5
- app/code/community/Allopass/Hipay/Block/Form/Cc.php +0 -0
- app/code/community/Allopass/Hipay/Block/Form/Hosted.php +0 -0
- app/code/community/Allopass/Hipay/Block/Info/Cc.php +0 -0
- app/code/community/Allopass/Hipay/Block/Info/Hosted.php +0 -0
- app/code/community/Allopass/Hipay/Controller/Payment.php +1 -0
- app/code/community/Allopass/Hipay/Helper/Data.php +34 -1
- app/code/community/Allopass/Hipay/Model/Api/Http/Client/Adapter/Curl.php +0 -0
- app/code/community/Allopass/Hipay/Model/Api/Http/Client/Adapter/Stream.php +0 -0
- app/code/community/Allopass/Hipay/Model/Api/Request.php +0 -0
- app/code/community/Allopass/Hipay/Model/Api/Response/Abstract.php +0 -0
- app/code/community/Allopass/Hipay/Model/Api/Response/Error.php +0 -0
- app/code/community/Allopass/Hipay/Model/Api/Response/Gateway.php +0 -0
- app/code/community/Allopass/Hipay/Model/Api/Response/Notification.php +0 -0
- app/code/community/Allopass/Hipay/Model/Api/Response/Vault.php +0 -0
- app/code/community/Allopass/Hipay/Model/Card.php +0 -0
- app/code/community/Allopass/Hipay/Model/Config.php +0 -0
- app/code/community/Allopass/Hipay/Model/Log/Adapter.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Abstract.php +191 -51
- app/code/community/Allopass/Hipay/Model/Method/Cbc.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Cc.php +12 -20
- app/code/community/Allopass/Hipay/Model/Method/CcXtimes.php +8 -0
- app/code/community/Allopass/Hipay/Model/Method/Dexia.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Giropay.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Hosted.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/HostedXtimes.php +8 -0
- app/code/community/Allopass/Hipay/Model/Method/Ideal.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Ing.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Kbc.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/PaypalApi.php +2 -1
- app/code/community/Allopass/Hipay/Model/Method/Przelewy24.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Przelewy24Api.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Qiwi.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Sdd.php +168 -0
- app/code/community/Allopass/Hipay/Model/Method/Sisal.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/SisalApi.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Sofort.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/SofortApi.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Webmoney.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/WebmoneyApi.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/Yandex.php +0 -0
- app/code/community/Allopass/Hipay/Model/Method/YandexApi.php +0 -0
- app/code/community/Allopass/Hipay/Model/Observer.php +8 -10
- app/code/community/Allopass/Hipay/Model/PaymentProfile.php +0 -0
- app/code/community/Allopass/Hipay/Model/Resource/Card.php +0 -0
- app/code/community/Allopass/Hipay/Model/Resource/Card/Collection.php +0 -0
- app/code/community/Allopass/Hipay/Model/Resource/PaymentProfile.php +0 -0
- app/code/community/Allopass/Hipay/Model/Resource/PaymentProfile/Collection.php +0 -0
- app/code/community/Allopass/Hipay/Model/Resource/Rule.php +0 -0
- app/code/community/Allopass/Hipay/Model/Resource/Rule/Collection.php +0 -0
- app/code/community/Allopass/Hipay/Model/Resource/SplitPayment.php +0 -0
- app/code/community/Allopass/Hipay/Model/Resource/SplitPayment/Collection.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule/Condition/Address.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule/Condition/Combine.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule/Condition/Customer.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule/Condition/Product.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule/Condition/Product/Combine.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule/Condition/Product/Found.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule/Condition/Product/Subselect.php +0 -0
- app/code/community/Allopass/Hipay/Model/Rule/Config.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/3ds.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/CcType.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/CcTypeHosted.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/Order/HipayStatusValidate.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/Order/Status.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/Order/Status/Accepted.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/Order/Status/Canceled.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/Order/Status/New.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/Order/Status/Refused.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/PaymentAction.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/PaymentProfile.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/Pendingredirect.php +0 -0
- app/code/community/Allopass/Hipay/Model/Source/Template.php +0 -0
- app/code/community/Allopass/Hipay/Model/SplitPayment.php +6 -1
- app/code/community/Allopass/Hipay/Model/System/Config/Backend/CcTypes.php +0 -0
- app/code/community/Allopass/Hipay/controllers/Adminhtml/CardController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/Adminhtml/PaymentController.php +14 -17
- app/code/community/Allopass/Hipay/controllers/Adminhtml/PaymentProfileController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/Adminhtml/RuleController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/{Sales → Adminhtml/Sales}/Order/CreateController.php +3 -3
- app/code/community/Allopass/Hipay/controllers/Adminhtml/SplitPaymentController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/CardController.php +4 -3
- app/code/community/Allopass/Hipay/controllers/CbcController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/CcController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/CcxtimesController.php +15 -0
- app/code/community/Allopass/Hipay/controllers/CheckoutController.php +16 -10
- app/code/community/Allopass/Hipay/controllers/DexiaController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/GiropayController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/HostedController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/HostedxtimesController.php +15 -0
- app/code/community/Allopass/Hipay/controllers/IdealController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/IngController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/KbcController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/NotifyController.php +13 -25
- app/code/community/Allopass/Hipay/controllers/PaypalapiController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/Przelewy24Controller.php +0 -0
- app/code/community/Allopass/Hipay/controllers/Przelewy24apiController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/QiwiController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/SddController.php +8 -0
- app/code/community/Allopass/Hipay/controllers/SisalController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/SisalapiController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/SofortController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/SofortapiController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/WebmoneyController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/WebmoneyapiController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/YandexController.php +0 -0
- app/code/community/Allopass/Hipay/controllers/YandexapiController.php +0 -0
- app/code/community/Allopass/Hipay/etc/config.xml +94 -5
- app/code/community/Allopass/Hipay/etc/system.xml +795 -42
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-install-0.1.0.php +14 -14
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-0.1.0-0.1.1.php +0 -0
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-0.1.1-0.1.2.php +0 -0
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-0.1.2-0.1.3.php +0 -0
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-0.1.4-0.1.5.php +0 -0
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-1.0.6-1.0.7.php +0 -0
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-1.0.7-1.0.8.php +0 -0
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-1.0.8-1.0.9.php +0 -0
- app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-1.0.9-1.1.0.php +0 -0
- app/design/adminhtml/default/default/layout/hipay.xml +0 -0
- app/design/adminhtml/default/default/template/hipay/form/cc.phtml +68 -57
- app/design/adminhtml/default/default/template/hipay/form/hosted.phtml +36 -15
- app/design/adminhtml/default/default/template/hipay/info/cc.phtml +0 -0
- app/design/adminhtml/default/default/template/hipay/info/hosted.phtml +0 -0
- app/design/adminhtml/default/default/template/hipay/system/config/form/field/rules.phtml +0 -0
- app/design/frontend/base/default/layout/hipay.xml +0 -0
- app/design/frontend/base/default/template/hipay/card/account.phtml +0 -0
- app/design/frontend/base/default/template/hipay/card/form/edit.phtml +0 -0
- app/design/frontend/base/default/template/hipay/checkout/pending.phtml +0 -0
- app/design/frontend/base/default/template/hipay/form/cc.phtml +88 -34
- app/design/frontend/base/default/template/hipay/form/hosted.phtml +49 -17
- app/design/frontend/base/default/template/hipay/info/cc.phtml +0 -0
- app/design/frontend/base/default/template/hipay/info/hosted.phtml +0 -0
- app/etc/modules/Allopass_Hipay.xml +0 -0
- app/locale/en_US/Allopass_Hipay.csv +15 -2
- app/locale/en_US/template/email/hipay_fraud_payment.html +0 -0
- app/locale/en_US/template/email/hipay_fraud_payment_accept.html +0 -0
- app/locale/en_US/template/email/hipay_fraud_payment_deny.html +0 -0
- app/locale/fr_FR/Allopass_Hipay.csv +16 -2
- app/locale/fr_FR/template/email/hipay_fraud_payment.html +66 -66
- app/locale/fr_FR/template/email/hipay_fraud_payment_accept.html +0 -0
- app/locale/fr_FR/template/email/hipay_fraud_payment_deny.html +0 -0
- app/locale/it_IT/Allopass_Hipay.csv +8 -0
- app/locale/it_IT/template/email/hipay_fraud_payment.html +0 -0
- app/locale/it_IT/template/email/hipay_fraud_payment_accept.html +0 -0
- app/locale/it_IT/template/email/hipay_fraud_payment_deny.html +0 -0
- package.xml +1 -18
- skin/adminhtml/default/default/hipay/js/rules.js +0 -0
app/code/community/Allopass/Hipay/Block/Adminhtml/Card/Edit.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/Card/Edit/Form.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/Customer/Edit/Tab/Card.php
CHANGED
@@ -112,8 +112,8 @@ class Allopass_Hipay_Block_Adminhtml_Customer_Edit_Tab_Card extends
|
|
112 |
|
113 |
|
114 |
public function getGridUrl() {
|
115 |
-
return
|
116 |
-
->getUrl('
|
117 |
array('_current' => true));
|
118 |
}
|
119 |
|
112 |
|
113 |
|
114 |
public function getGridUrl() {
|
115 |
+
return Mage::helper('adminhtml')
|
116 |
+
->getUrl('*/card/cards',
|
117 |
array('_current' => true));
|
118 |
}
|
119 |
|
app/code/community/Allopass/Hipay/Block/Adminhtml/PaymentProfile.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/PaymentProfile/Edit.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/PaymentProfile/Edit/Form.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/PaymentProfile/Grid.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/SplitPayment.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/SplitPayment/Edit.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/SplitPayment/Edit/Form.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/SplitPayment/Grid.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/3dsRule.php
CHANGED
@@ -18,7 +18,7 @@ class Allopass_Hipay_Block_Adminhtml_System_Config_Form_Field_3dsRule extends M
|
|
18 |
}
|
19 |
|
20 |
public function getNewChildUrl(){
|
21 |
-
return Mage::getUrl('
|
22 |
}
|
23 |
|
24 |
/**
|
18 |
}
|
19 |
|
20 |
public function getNewChildUrl(){
|
21 |
+
return Mage::helper("adminhtml")->getUrl('*/rule/newConditionHtml',array('form'=>'rule_conditions_fieldset'));
|
22 |
}
|
23 |
|
24 |
/**
|
app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/Allowsplitpayment.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Adminhtml/System/Config/Form/Field/MultiselectSortable.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Card.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Card/Edit.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Checkout/Pending.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Form/Abstract.php
CHANGED
@@ -99,11 +99,9 @@ abstract class Allopass_Hipay_Block_Form_Abstract extends Mage_Payment_Block_For
|
|
99 |
{
|
100 |
|
101 |
$checkoutMethod = $this->getQuote()->getCheckoutMethod();
|
102 |
-
$minAmount = $this->getMethod()->getConfigData('min_order_total_split_payment');
|
103 |
-
|
104 |
-
if($checkoutMethod == Mage_Checkout_Model_Type_Onepage::METHOD_GUEST ||
|
105 |
-
!$this->getMethod()->getConfigData('allow_split_payment') ||
|
106 |
-
($this->getMethod()->getConfigData('allow_split_payment') && !empty($minAmount) && $minAmount >= $this->getQuote()->getBaseGrandTotal() ))
|
107 |
return false;
|
108 |
|
109 |
return true;
|
99 |
{
|
100 |
|
101 |
$checkoutMethod = $this->getQuote()->getCheckoutMethod();
|
102 |
+
$minAmount = (float)$this->getMethod()->getConfigData('min_order_total_split_payment');
|
103 |
+
|
104 |
+
if($checkoutMethod == Mage_Checkout_Model_Type_Onepage::METHOD_GUEST || (strpos($this->getMethodCode(), "xtimes") === false))
|
|
|
|
|
105 |
return false;
|
106 |
|
107 |
return true;
|
app/code/community/Allopass/Hipay/Block/Form/Cc.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Form/Hosted.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Info/Cc.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Block/Info/Hosted.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Controller/Payment.php
CHANGED
@@ -103,6 +103,7 @@ class Allopass_Hipay_Controller_Payment extends Mage_Core_Controller_Front_Actio
|
|
103 |
public function pendingAction()
|
104 |
{
|
105 |
$this->processResponse();
|
|
|
106 |
$this->_redirect($this->_getMethodInstance()->getConfigData('pending_redirect_page'));
|
107 |
|
108 |
return $this;
|
103 |
public function pendingAction()
|
104 |
{
|
105 |
$this->processResponse();
|
106 |
+
|
107 |
$this->_redirect($this->_getMethodInstance()->getConfigData('pending_redirect_page'));
|
108 |
|
109 |
return $this;
|
app/code/community/Allopass/Hipay/Helper/Data.php
CHANGED
@@ -30,7 +30,6 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
30 |
$part = (int)($amount / $maxCycles);
|
31 |
$reste = $amount%$maxCycles;
|
32 |
$fmod = fmod($amount, $maxCycles);
|
33 |
-
//Mage::log("PART = ".$part." RESTE = ".$reste,null,'hipay_split_debug.log');
|
34 |
|
35 |
for ($i=-1;$i<($maxCycles-1);$i++)
|
36 |
{
|
@@ -574,4 +573,38 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
574 |
|
575 |
return $ccTypeMagento;
|
576 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
}
|
30 |
$part = (int)($amount / $maxCycles);
|
31 |
$reste = $amount%$maxCycles;
|
32 |
$fmod = fmod($amount, $maxCycles);
|
|
|
33 |
|
34 |
for ($i=-1;$i<($maxCycles-1);$i++)
|
35 |
{
|
573 |
|
574 |
return $ccTypeMagento;
|
575 |
}
|
576 |
+
/*
|
577 |
+
* TPPMAG1-2 - JPN
|
578 |
+
*/
|
579 |
+
public function is3dSecure($use3dSecure, $config3dsRules, $payment = false)
|
580 |
+
{
|
581 |
+
$params = 0;
|
582 |
+
if($use3dSecure > 0 && !$payment){
|
583 |
+
$params = 1;
|
584 |
+
}else{
|
585 |
+
switch ((int)$use3dSecure) {
|
586 |
+
case 1:
|
587 |
+
$params = 1;
|
588 |
+
break;
|
589 |
+
case 2:
|
590 |
+
case 3:
|
591 |
+
/* @var $rule Allopass_Hipay_Model_Rule */
|
592 |
+
$rule = Mage::getModel('hipay/rule')->load($config3dsRules);
|
593 |
+
if($rule->getId() && $rule->validate($payment->getOrder()) )
|
594 |
+
{
|
595 |
+
$params = 1;
|
596 |
+
if((int)$use3dSecure == 3)//case for force 3ds if rules are validated
|
597 |
+
$params = 2;
|
598 |
+
|
599 |
+
}
|
600 |
+
break;
|
601 |
+
case 4:
|
602 |
+
$params = 2;
|
603 |
+
break;
|
604 |
+
}
|
605 |
+
}
|
606 |
+
return $params;
|
607 |
+
}
|
608 |
+
|
609 |
+
|
610 |
}
|
app/code/community/Allopass/Hipay/Model/Api/Http/Client/Adapter/Curl.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Api/Http/Client/Adapter/Stream.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Api/Request.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Api/Response/Abstract.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Api/Response/Error.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Api/Response/Gateway.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Api/Response/Notification.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Api/Response/Vault.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Card.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Config.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Log/Adapter.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Abstract.php
CHANGED
@@ -93,10 +93,15 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
93 |
|
94 |
public function assignInfoData($info,$data)
|
95 |
{
|
96 |
-
|
97 |
-
->
|
98 |
-
->
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
|
102 |
}
|
@@ -304,7 +309,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
304 |
$payment,
|
305 |
$gatewayResponse->getTransactionReference(),
|
306 |
Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID,
|
307 |
-
array('is_transaction_closed' =>
|
308 |
array(
|
309 |
$this->_realTransactionIdKey => $gatewayResponse->getTransactionReference(),
|
310 |
),
|
@@ -312,14 +317,44 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
312 |
$payment, self::OPERATION_AUTHORIZATION, $gatewayResponse->getTransactionReference(), $amount,true
|
313 |
)
|
314 |
);
|
315 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
$status = self::STATUS_EXPIRED;
|
317 |
-
|
318 |
-
|
|
|
|
|
319 |
|
320 |
$order->save();
|
321 |
break;
|
322 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
case 116: //Authorized
|
324 |
|
325 |
//check if this order was in state fraud detected
|
@@ -352,8 +387,17 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
352 |
$notified = true);
|
353 |
|
354 |
$order->save();
|
355 |
-
|
356 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
}
|
358 |
|
359 |
$payment->setAmountAuthorized($gatewayResponse->getAuthorizedAmount());
|
@@ -396,6 +440,14 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
396 |
break;
|
397 |
}
|
398 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
if ($order->getState() == Mage_Sales_Model_Order::STATE_HOLDED) {
|
400 |
$order->unhold();
|
401 |
}
|
@@ -456,8 +508,17 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
456 |
$payment->setBaseAmountAuthorized($gatewayResponse->getAuthorizedAmount());
|
457 |
|
458 |
|
459 |
-
|
460 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
}
|
462 |
|
463 |
break;
|
@@ -512,19 +573,55 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
512 |
}
|
513 |
elseif($order->canCreditmemo())
|
514 |
{
|
515 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
516 |
$creditmemo = $service->prepareInvoiceCreditmemo($order->getInvoiceCollection()->getFirstItem());
|
517 |
foreach ($creditmemo->getAllItems() as $creditmemoItem) {
|
518 |
$creditmemoItem->setBackToStock(Mage::helper('cataloginventory')->isAutoReturnEnabled());
|
519 |
}
|
520 |
$creditmemo->setOfflineRequested(true);
|
|
|
521 |
$transactionSave = Mage::getModel('core/resource_transaction')
|
522 |
->addObject($creditmemo)
|
523 |
->addObject($creditmemo->getOrder());
|
524 |
if ($creditmemo->getInvoice()) {
|
525 |
$transactionSave->addObject($creditmemo->getInvoice());
|
526 |
}
|
527 |
-
$transactionSave->save()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
}
|
529 |
|
530 |
break;
|
@@ -569,7 +666,15 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
569 |
break;
|
570 |
|
571 |
case self::STATE_DECLINED:
|
572 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
$reason = $gatewayResponse->getReason();
|
574 |
$this->addTransaction(
|
575 |
$payment,
|
@@ -594,7 +699,8 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
594 |
$status = $order->getStatus();
|
595 |
}
|
596 |
|
597 |
-
|
|
|
598 |
|
599 |
|
600 |
|
@@ -794,11 +900,13 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
794 |
$transactionId = $payment->getLastTransId();
|
795 |
|
796 |
$gatewayParams = array('operation'=>'refund','amount'=>$amount);
|
|
|
797 |
/* @var $request Allopass_Hipay_Model_Api_Request */
|
798 |
$request = Mage::getModel('hipay/api_request',array($this));
|
799 |
$action = Allopass_Hipay_Model_Api_Request::GATEWAY_ACTION_MAINTENANCE . $transactionId;
|
800 |
|
801 |
|
|
|
802 |
$this->_debug($gatewayParams);
|
803 |
|
804 |
$gatewayResponse = $request->gatewayRequest($action,$gatewayParams,$payment->getOrder()->getStoreId());
|
@@ -813,7 +921,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
813 |
|
814 |
/* @var $creditmemo Mage_Sales_Model_Order_Creditmemo */
|
815 |
$creditmemo = $payment->getCreditmemo();
|
816 |
-
$creditmemo->setState(Mage_Sales_Model_Order_Creditmemo::STATE_OPEN)
|
817 |
|
818 |
break;
|
819 |
default:
|
@@ -860,7 +968,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
860 |
|
861 |
$params['description'] = Mage::helper('hipay')->__("Order %s by %s",$payment->getOrder()->getIncrementId(),$payment->getOrder()->getCustomerEmail());//MANDATORY
|
862 |
$params['long_description'] = $longDesc;// optional
|
863 |
-
$params['currency'] = $payment->getOrder()->
|
864 |
$params['amount'] = $amount;
|
865 |
$params['shipping'] = $payment->getOrder()->getShippingAmount();
|
866 |
$params['tax'] = $payment->getOrder()->getTaxAmount();
|
@@ -886,46 +994,52 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
886 |
*/
|
887 |
if(!is_null($token))
|
888 |
$params['cardtoken'] = $token;
|
889 |
-
|
890 |
-
$params['authentication_indicator'] = 0;
|
891 |
-
|
892 |
-
switch ((int)$this->getConfigData('use_3d_secure')) {
|
893 |
-
case 1:
|
894 |
-
$params['authentication_indicator'] = 1;
|
895 |
-
break;
|
896 |
-
case 2:
|
897 |
-
case 3:
|
898 |
-
/* @var $rule Allopass_Hipay_Model_Rule */
|
899 |
-
$rule = Mage::getModel('hipay/rule')->load($this->getConfigData('config_3ds_rules'));
|
900 |
-
if($rule->getId() && $rule->validate($payment->getOrder()) )
|
901 |
-
{
|
902 |
-
$params['authentication_indicator'] = 1;
|
903 |
-
if((int)$this->getConfigData('use_3d_secure') == 3)//case for force 3ds if rules are validated
|
904 |
-
$params['authentication_indicator'] = 2;
|
905 |
-
|
906 |
-
}
|
907 |
-
break;
|
908 |
-
case 4:
|
909 |
-
$params['authentication_indicator'] = 2;
|
910 |
-
break;
|
911 |
-
}
|
912 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
913 |
|
|
|
|
|
914 |
/**
|
915 |
* Electronic Commerce Indicator
|
916 |
*/
|
917 |
-
if($payment->getAdditionalInformation('use_oneclick'))
|
|
|
918 |
$params['eci'] = 9; //Recurring E-commerce
|
|
|
|
|
|
|
|
|
919 |
|
920 |
/**
|
921 |
* Redirect urls
|
922 |
*/
|
923 |
-
$
|
924 |
-
$params['
|
925 |
-
$params['
|
926 |
-
$params['
|
927 |
-
$params['
|
928 |
-
$params['cancel_url'] = $isAdmin ? Mage::getUrl('hipay/adminhtml_payment/cancel') : Mage::getUrl($this->getConfigData('cancel_url'));
|
929 |
|
930 |
$params = $this->getCustomerParams($payment,$params);
|
931 |
$params = $this->getShippingParams($payment,$params);
|
@@ -951,7 +1065,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
951 |
if(($dob = $order->getCustomerDob()) != "")
|
952 |
{
|
953 |
$dob = new Zend_Date($dob);
|
954 |
-
$
|
|
|
|
|
955 |
}
|
956 |
|
957 |
$gender = $order->getCustomerGender();
|
@@ -1047,6 +1163,17 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1047 |
|
1048 |
|
1049 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1050 |
}
|
1051 |
|
1052 |
/**
|
@@ -1095,6 +1222,19 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1095 |
|
1096 |
switch ($gatewayResponse->getStatus())
|
1097 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1098 |
case "117": //Capture requested
|
1099 |
case "118": //Capture
|
1100 |
case "119": //Partially Capture
|
@@ -1112,7 +1252,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
1112 |
$payment->setIsTransactionPending(true);
|
1113 |
break;
|
1114 |
default:
|
1115 |
-
Mage::throwException( $gatewayResponse->getStatus() . " ==> " .$gatewayResponse->getMessage());
|
1116 |
break;
|
1117 |
}
|
1118 |
|
93 |
|
94 |
public function assignInfoData($info,$data)
|
95 |
{
|
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 |
+
|
101 |
+
$info->setAdditionalInformation('create_oneclick', $oneclickMode == "create_oneclick" ? 1 : 0)
|
102 |
+
->setAdditionalInformation('use_oneclick',$oneclickMode == "use_oneclick" ? 1 : 0)
|
103 |
+
->setAdditionalInformation('selected_oneclick_card',$oneclickCard == "" ? 0 : $oneclickCard)
|
104 |
+
->setAdditionalInformation('split_payment_id',$splitPaymentId != "" ? $splitPaymentId : 0);
|
105 |
|
106 |
|
107 |
}
|
309 |
$payment,
|
310 |
$gatewayResponse->getTransactionReference(),
|
311 |
Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID,
|
312 |
+
array('is_transaction_closed' => 0),//Transaction was not closed, because admin can try capture after expiration
|
313 |
array(
|
314 |
$this->_realTransactionIdKey => $gatewayResponse->getTransactionReference(),
|
315 |
),
|
317 |
$payment, self::OPERATION_AUTHORIZATION, $gatewayResponse->getTransactionReference(), $amount,true
|
318 |
)
|
319 |
);
|
320 |
+
|
321 |
+
/**
|
322 |
+
* We change status to expired and state to holded
|
323 |
+
* So the administrator can try to capture transaction even if
|
324 |
+
* the auhorization was expired
|
325 |
+
*
|
326 |
+
*/
|
327 |
+
$state = Mage_Sales_Model_Order::STATE_HOLDED;
|
328 |
$status = self::STATUS_EXPIRED;
|
329 |
+
$order->setState(
|
330 |
+
$state,
|
331 |
+
$status,
|
332 |
+
$gatewayResponse->getMessage());
|
333 |
|
334 |
$order->save();
|
335 |
break;
|
336 |
+
case 115: //Canceled
|
337 |
+
if($order->cancel())
|
338 |
+
{
|
339 |
+
|
340 |
+
$order->cancel();
|
341 |
+
|
342 |
+
$this->addTransaction(
|
343 |
+
$payment,
|
344 |
+
$gatewayResponse->getTransactionReference(),
|
345 |
+
Mage_Sales_Model_Order_Payment_Transaction::TYPE_VOID,
|
346 |
+
array('is_transaction_closed' => 1),//Transaction was not closed, because admin can try capture after expiration
|
347 |
+
array(
|
348 |
+
$this->_realTransactionIdKey => $gatewayResponse->getTransactionReference(),
|
349 |
+
),
|
350 |
+
Mage::helper('hipay')->getTransactionMessage(
|
351 |
+
$payment, self::OPERATION_AUTHORIZATION, $gatewayResponse->getTransactionReference(), $amount,true
|
352 |
+
)
|
353 |
+
);
|
354 |
+
}
|
355 |
+
|
356 |
+
|
357 |
+
break;
|
358 |
case 116: //Authorized
|
359 |
|
360 |
//check if this order was in state fraud detected
|
387 |
$notified = true);
|
388 |
|
389 |
$order->save();
|
390 |
+
// Send order confirmation email - TPPMAG1-29
|
391 |
+
+ if (!$order->getEmailSent() && $order->getCanSendNewEmailFlag()) {
|
392 |
+
+ try {
|
393 |
+
+ if (method_exists($order, 'queueNewOrderEmail')) {
|
394 |
+
+ $order->queueNewOrderEmail();
|
395 |
+
+ } else {
|
396 |
+
+ $order->sendNewOrderEmail();
|
397 |
+
+ }
|
398 |
+
+ } catch (Exception $e) {
|
399 |
+
+ Mage::logException($e);
|
400 |
+
+ }
|
401 |
}
|
402 |
|
403 |
$payment->setAmountAuthorized($gatewayResponse->getAuthorizedAmount());
|
440 |
break;
|
441 |
}
|
442 |
|
443 |
+
if ($amount != $order->getBaseGrandTotal()) {
|
444 |
+
|
445 |
+
$transactionId = $gatewayResponse->getTransactionReference();
|
446 |
+
$order->addStatusHistoryComment(Mage::helper('hipay')->__('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.',
|
447 |
+
$order->getBaseCurrency()->formatTxt($amount), $transactionId), false);
|
448 |
+
break;
|
449 |
+
}
|
450 |
+
|
451 |
if ($order->getState() == Mage_Sales_Model_Order::STATE_HOLDED) {
|
452 |
$order->unhold();
|
453 |
}
|
508 |
$payment->setBaseAmountAuthorized($gatewayResponse->getAuthorizedAmount());
|
509 |
|
510 |
|
511 |
+
// Send order confirmation email - TPPMAG1-29
|
512 |
+
+ if (!$order->getEmailSent() && $order->getCanSendNewEmailFlag()) {
|
513 |
+
+ try {
|
514 |
+
+ if (method_exists($order, 'queueNewOrderEmail')) {
|
515 |
+
+ $order->queueNewOrderEmail();
|
516 |
+
+ } else {
|
517 |
+
+ $order->sendNewOrderEmail();
|
518 |
+
+ }
|
519 |
+
+ } catch (Exception $e) {
|
520 |
+
+ Mage::logException($e);
|
521 |
+
+ }
|
522 |
}
|
523 |
|
524 |
break;
|
573 |
}
|
574 |
elseif($order->canCreditmemo())
|
575 |
{
|
576 |
+
|
577 |
+
if ($amount != $order->getBaseGrandTotal()) {
|
578 |
+
|
579 |
+
$transactionId = $gatewayResponse->getTransactionReference();
|
580 |
+
$order->addStatusHistoryComment(Mage::helper('hipay')->__('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.',
|
581 |
+
$order->getBaseCurrency()->formatTxt($amount), $transactionId), false);
|
582 |
+
return $this;
|
583 |
+
}
|
584 |
+
|
585 |
+
|
586 |
+
/** @var $service Mage_Sales_Model_Service_Order */
|
587 |
+
/*$service = Mage::getModel('sales/service_order', $order);
|
588 |
+
|
589 |
$creditmemo = $service->prepareInvoiceCreditmemo($order->getInvoiceCollection()->getFirstItem());
|
590 |
foreach ($creditmemo->getAllItems() as $creditmemoItem) {
|
591 |
$creditmemoItem->setBackToStock(Mage::helper('cataloginventory')->isAutoReturnEnabled());
|
592 |
}
|
593 |
$creditmemo->setOfflineRequested(true);
|
594 |
+
$creditmemo->setState(Mage_Sales_Model_Order_Creditmemo::STATE_REFUNDED);
|
595 |
$transactionSave = Mage::getModel('core/resource_transaction')
|
596 |
->addObject($creditmemo)
|
597 |
->addObject($creditmemo->getOrder());
|
598 |
if ($creditmemo->getInvoice()) {
|
599 |
$transactionSave->addObject($creditmemo->getInvoice());
|
600 |
}
|
601 |
+
$transactionSave->save();*/
|
602 |
+
|
603 |
+
$amountTxt = $order->getBaseCurrency()->formatTxt($amount);
|
604 |
+
|
605 |
+
$transactionId = $gatewayResponse->getTransactionReference();
|
606 |
+
|
607 |
+
$comment = Mage::helper('hipay')->__('Refunded amount of %s. Transaction ID: "%s"', $amountTxt, $transactionId);
|
608 |
+
|
609 |
+
$isRefundFinal = $gatewayResponse->getRefundedAmount() == $order->getGrandTotal();
|
610 |
+
$payment->setIsTransactionClosed($isRefundFinal)
|
611 |
+
->registerRefundNotification($amount);
|
612 |
+
$order->addStatusHistoryComment($comment, false);
|
613 |
+
|
614 |
+
// TODO: there is no way to close a capture right now
|
615 |
+
$creditmemo = $payment->getCreatedCreditmemo();
|
616 |
+
if ($creditmemo) {
|
617 |
+
$creditmemo->sendEmail();
|
618 |
+
$order->addStatusHistoryComment(
|
619 |
+
Mage::helper('hipay')->__('Notified customer about creditmemo #%s.', $creditmemo->getIncrementId())
|
620 |
+
)
|
621 |
+
->setIsCustomerNotified(true)
|
622 |
+
->save();
|
623 |
+
}
|
624 |
+
|
625 |
}
|
626 |
|
627 |
break;
|
666 |
break;
|
667 |
|
668 |
case self::STATE_DECLINED:
|
669 |
+
if(/* @TODO wait for response from hipay support
|
670 |
+
About issue #10 les notifications des différentes transactions HiPay se croisent
|
671 |
+
$order->getStatus() == self::STATUS_CAPTURE_REQUESTED || $order->getStatus() == self::STATUS_PENDING_CAPTURE ||*/
|
672 |
+
$order->getStatus() == Mage_Sales_Model_Order::STATE_PROCESSING
|
673 |
+
|| $order->getStatus() == Mage_Sales_Model_Order::STATE_COMPLETE || $order->getStatus() == Mage_Sales_Model_Order::STATE_CLOSED
|
674 |
+
)// for logic process
|
675 |
+
break;
|
676 |
+
|
677 |
+
$statusCode = (int)$gatewayResponse->getStatus();
|
678 |
$reason = $gatewayResponse->getReason();
|
679 |
$this->addTransaction(
|
680 |
$payment,
|
699 |
$status = $order->getStatus();
|
700 |
}
|
701 |
|
702 |
+
if(in_array($statusCode,array(110)))
|
703 |
+
$this->_setFraudDetected($gatewayResponse,$customer, $payment,$amount,true);
|
704 |
|
705 |
|
706 |
|
900 |
$transactionId = $payment->getLastTransId();
|
901 |
|
902 |
$gatewayParams = array('operation'=>'refund','amount'=>$amount);
|
903 |
+
|
904 |
/* @var $request Allopass_Hipay_Model_Api_Request */
|
905 |
$request = Mage::getModel('hipay/api_request',array($this));
|
906 |
$action = Allopass_Hipay_Model_Api_Request::GATEWAY_ACTION_MAINTENANCE . $transactionId;
|
907 |
|
908 |
|
909 |
+
|
910 |
$this->_debug($gatewayParams);
|
911 |
|
912 |
$gatewayResponse = $request->gatewayRequest($action,$gatewayParams,$payment->getOrder()->getStoreId());
|
921 |
|
922 |
/* @var $creditmemo Mage_Sales_Model_Order_Creditmemo */
|
923 |
$creditmemo = $payment->getCreditmemo();
|
924 |
+
$creditmemo->setState(Mage_Sales_Model_Order_Creditmemo::STATE_OPEN);//State open = pending state
|
925 |
|
926 |
break;
|
927 |
default:
|
968 |
|
969 |
$params['description'] = Mage::helper('hipay')->__("Order %s by %s",$payment->getOrder()->getIncrementId(),$payment->getOrder()->getCustomerEmail());//MANDATORY
|
970 |
$params['long_description'] = $longDesc;// optional
|
971 |
+
$params['currency'] = $payment->getOrder()->getBaseCurrencyCode();
|
972 |
$params['amount'] = $amount;
|
973 |
$params['shipping'] = $payment->getOrder()->getShippingAmount();
|
974 |
$params['tax'] = $payment->getOrder()->getTaxAmount();
|
994 |
*/
|
995 |
if(!is_null($token))
|
996 |
$params['cardtoken'] = $token;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
997 |
|
998 |
+
// TPPMAG1-2 - JPN
|
999 |
+
//$params['authentication_indicator'] = 0;
|
1000 |
+
//switch ((int)$this->getConfigData('use_3d_secure')) {
|
1001 |
+
// case 1:
|
1002 |
+
// $params['authentication_indicator'] = 1;
|
1003 |
+
// break;
|
1004 |
+
// case 2:
|
1005 |
+
// case 3:
|
1006 |
+
// /* @var $rule Allopass_Hipay_Model_Rule */
|
1007 |
+
// $rule = Mage::getModel('hipay/rule')->load($this->getConfigData('config_3ds_rules'));
|
1008 |
+
// if($rule->getId() && $rule->validate($payment->getOrder()) )
|
1009 |
+
// {
|
1010 |
+
// $params['authentication_indicator'] = 1;
|
1011 |
+
// if((int)$this->getConfigData('use_3d_secure') == 3)//case for force 3ds if rules are validated
|
1012 |
+
// $params['authentication_indicator'] = 2;
|
1013 |
+
//
|
1014 |
+
// }
|
1015 |
+
// break;
|
1016 |
+
// case 4:
|
1017 |
+
// $params['authentication_indicator'] = 2;
|
1018 |
+
// break;
|
1019 |
+
//}
|
1020 |
+
$params['authentication_indicator'] = Mage::helper('hipay')->is3dSecure($this->getConfigData('use_3d_secure'), $this->getConfigData('config_3ds_rules'), $payment);
|
1021 |
|
1022 |
+
$isAdmin = $this->isAdmin();
|
1023 |
+
|
1024 |
/**
|
1025 |
* Electronic Commerce Indicator
|
1026 |
*/
|
1027 |
+
if($payment->getAdditionalInformation('use_oneclick')){
|
1028 |
+
|
1029 |
$params['eci'] = 9; //Recurring E-commerce
|
1030 |
+
}
|
1031 |
+
elseif($isAdmin){
|
1032 |
+
$params['eci'] = 1; //MO/TO (Card Not Present). This value prevent from 3ds redirection in Admin payment.
|
1033 |
+
}
|
1034 |
|
1035 |
/**
|
1036 |
* Redirect urls
|
1037 |
*/
|
1038 |
+
$params['accept_url'] = $isAdmin ? Mage::helper('adminhtml')->getUrl('*/payment/accept') : Mage::getUrl($this->getConfigData('accept_url'));
|
1039 |
+
$params['decline_url'] = $isAdmin ? Mage::helper('adminhtml')->getUrl('*/payment/decline') : Mage::getUrl($this->getConfigData('decline_url'));
|
1040 |
+
$params['pending_url'] = $isAdmin ? Mage::helper('adminhtml')->getUrl('*/payment/pending') : Mage::getUrl($this->getConfigData('pending_url'));
|
1041 |
+
$params['exception_url'] = $isAdmin ? Mage::helper('adminhtml')->getUrl('*/payment/exception') : Mage::getUrl($this->getConfigData('exception_url'));
|
1042 |
+
$params['cancel_url'] = $isAdmin ? Mage::helper('adminhtml')->getUrl('*/payment/cancel') : Mage::getUrl($this->getConfigData('cancel_url'));
|
|
|
1043 |
|
1044 |
$params = $this->getCustomerParams($payment,$params);
|
1045 |
$params = $this->getShippingParams($payment,$params);
|
1065 |
if(($dob = $order->getCustomerDob()) != "")
|
1066 |
{
|
1067 |
$dob = new Zend_Date($dob);
|
1068 |
+
$validator = new Zend_Validate_Date();
|
1069 |
+
if($validator->isValid($dob))
|
1070 |
+
$params['birthdate'] = $dob->toString('YYYYMMdd');
|
1071 |
}
|
1072 |
|
1073 |
$gender = $order->getCustomerGender();
|
1163 |
|
1164 |
|
1165 |
|
1166 |
+
}
|
1167 |
+
|
1168 |
+
protected function getCcTypeHipay($ccTypeMagento)
|
1169 |
+
{
|
1170 |
+
$ccTypes = Mage::getSingleton('hipay/config')->getCcTypesHipay();
|
1171 |
+
|
1172 |
+
if(isset($ccTypes[$ccTypeMagento]))
|
1173 |
+
return $ccTypes[$ccTypeMagento];
|
1174 |
+
else //Maybe it's already hipay code, we return it directly
|
1175 |
+
return $ccTypeMagento;
|
1176 |
+
|
1177 |
}
|
1178 |
|
1179 |
/**
|
1222 |
|
1223 |
switch ($gatewayResponse->getStatus())
|
1224 |
{
|
1225 |
+
case "116":
|
1226 |
+
$this->addTransaction(
|
1227 |
+
$payment,
|
1228 |
+
$gatewayResponse->getTransactionReference(),
|
1229 |
+
Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH,
|
1230 |
+
array('is_transaction_closed' => 0),
|
1231 |
+
array(),
|
1232 |
+
Mage::helper('hipay')->getTransactionMessage(
|
1233 |
+
$payment, self::OPERATION_MAINTENANCE_ACCEPT_CHALLENGE, $gatewayResponse->getTransactionReference(), $amount
|
1234 |
+
)
|
1235 |
+
);
|
1236 |
+
$payment->setIsTransactionPending(true);
|
1237 |
+
break;
|
1238 |
case "117": //Capture requested
|
1239 |
case "118": //Capture
|
1240 |
case "119": //Partially Capture
|
1252 |
$payment->setIsTransactionPending(true);
|
1253 |
break;
|
1254 |
default:
|
1255 |
+
Mage::throwException( $gatewayResponse->getStatus() . " ==> " .$gatewayResponse->getMessage() . " is not processed!");
|
1256 |
break;
|
1257 |
}
|
1258 |
|
app/code/community/Allopass/Hipay/Model/Method/Cbc.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Cc.php
CHANGED
@@ -22,17 +22,19 @@ class Allopass_Hipay_Model_Method_Cc extends Allopass_Hipay_Model_Method_Abstrac
|
|
22 |
if (!($data instanceof Varien_Object)) {
|
23 |
$data = new Varien_Object($data);
|
24 |
}
|
|
|
|
|
25 |
$info = $this->getInfoInstance();
|
26 |
-
$info->setCcType($data->
|
27 |
-
->setCcOwner($data->
|
28 |
-
->setCcLast4(substr($data->
|
29 |
-
->setCcNumber($data->
|
30 |
-
->setCcCid($data->
|
31 |
-
->setCcExpMonth($data->
|
32 |
-
->setCcExpYear($data->
|
33 |
-
->setCcSsIssue($data->
|
34 |
-
->setCcSsStartMonth($data->
|
35 |
-
->setCcSsStartYear($data->
|
36 |
;
|
37 |
|
38 |
$this->assignInfoData($info, $data);
|
@@ -193,16 +195,6 @@ class Allopass_Hipay_Model_Method_Cc extends Allopass_Hipay_Model_Method_Abstrac
|
|
193 |
|
194 |
}
|
195 |
|
196 |
-
protected function getCcTypeHipay($ccTypeMagento)
|
197 |
-
{
|
198 |
-
$ccTypes = Mage::getSingleton('hipay/config')->getCcTypesHipay();
|
199 |
-
|
200 |
-
if(isset($ccTypes[$ccTypeMagento]))
|
201 |
-
return $ccTypes[$ccTypeMagento];
|
202 |
-
|
203 |
-
Mage::throwException(Mage::helper('hipay')->__("Code Credit Card Type Hipay not found!"));
|
204 |
-
}
|
205 |
-
|
206 |
|
207 |
|
208 |
/**
|
22 |
if (!($data instanceof Varien_Object)) {
|
23 |
$data = new Varien_Object($data);
|
24 |
}
|
25 |
+
|
26 |
+
Mage::log($data,null,'debug_data.log');
|
27 |
$info = $this->getInfoInstance();
|
28 |
+
$info->setCcType($data->getData($this->getCode() . '_cc_type'))
|
29 |
+
->setCcOwner($data->getData($this->getCode() . '_cc_owner'))
|
30 |
+
->setCcLast4(substr($data->getData($this->getCode() . '_cc_number'), -4))
|
31 |
+
->setCcNumber($data->getData($this->getCode() . '_cc_number'))
|
32 |
+
->setCcCid($data->getData($this->getCode() . '_cc_cid'))
|
33 |
+
->setCcExpMonth($data->getData($this->getCode() . '_cc_exp_month'))
|
34 |
+
->setCcExpYear($data->getData($this->getCode() . '_cc_exp_year'))
|
35 |
+
->setCcSsIssue($data->getData($this->getCode() . '_cc_ss_issue'))
|
36 |
+
->setCcSsStartMonth($data->getData($this->getCode() . '_cc_ss_start_month'))
|
37 |
+
->setCcSsStartYear($data->getData($this->getCode() . '_cc_ss_start_yeat'))
|
38 |
;
|
39 |
|
40 |
$this->assignInfoData($info, $data);
|
195 |
|
196 |
}
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
|
200 |
/**
|
app/code/community/Allopass/Hipay/Model/Method/CcXtimes.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_CcXtimes extends Allopass_Hipay_Model_Method_Cc
|
3 |
+
{
|
4 |
+
protected $_canUseInternal = false;
|
5 |
+
|
6 |
+
protected $_code = 'hipay_ccxtimes';
|
7 |
+
|
8 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Dexia.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Giropay.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Hosted.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/HostedXtimes.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_HostedXtimes extends Allopass_Hipay_Model_Method_Hosted
|
3 |
+
{
|
4 |
+
protected $_canUseInternal = false;
|
5 |
+
|
6 |
+
protected $_code = 'hipay_hostedxtimes';
|
7 |
+
|
8 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Ideal.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Ing.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Kbc.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/PaypalApi.php
CHANGED
@@ -55,11 +55,12 @@ class Allopass_Hipay_Model_Method_PaypalApi extends Allopass_Hipay_Model_Method_
|
|
55 |
|
56 |
}
|
57 |
|
58 |
-
|
59 |
protected function getCcTypeHipay($ccTypeMagento)
|
60 |
{
|
61 |
return $ccTypeMagento;
|
62 |
}
|
|
|
63 |
|
64 |
/**
|
65 |
* Validate payment method information object
|
55 |
|
56 |
}
|
57 |
|
58 |
+
|
59 |
protected function getCcTypeHipay($ccTypeMagento)
|
60 |
{
|
61 |
return $ccTypeMagento;
|
62 |
}
|
63 |
+
|
64 |
|
65 |
/**
|
66 |
* Validate payment method information object
|
app/code/community/Allopass/Hipay/Model/Method/Przelewy24.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Przelewy24Api.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Qiwi.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Sdd.php
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_Model_Method_Sdd extends Allopass_Hipay_Model_Method_Cc
|
3 |
+
{
|
4 |
+
protected $_code = 'hipay_sdd';
|
5 |
+
protected $_canRefund = false;
|
6 |
+
protected $_canRefundInvoicePartial = false;
|
7 |
+
/**
|
8 |
+
* Assign data to info model instance
|
9 |
+
*
|
10 |
+
* @param mixed $data
|
11 |
+
* @return Mage_Payment_Model_Info
|
12 |
+
*/
|
13 |
+
public function assignData($data)
|
14 |
+
{
|
15 |
+
if (!($data instanceof Varien_Object)) {
|
16 |
+
$data = new Varien_Object($data);
|
17 |
+
}
|
18 |
+
$info = $this->getInfoInstance();
|
19 |
+
$info->setCcType('SDD')
|
20 |
+
->setAdditionalInformation('cc_gender', $data->getCcGender())
|
21 |
+
->setAdditionalInformation('cc_firstname', $data->getCcFirstname())
|
22 |
+
->setAdditionalInformation('cc_lastname', $data->getCcLastname())
|
23 |
+
->setAdditionalInformation('cc_iban', $data->getCcIban())
|
24 |
+
->setAdditionalInformation('cc_code_bic',$data->getCcCodeBic())
|
25 |
+
->setAdditionalInformation('cc_bank_name',$data->getCcBankName());
|
26 |
+
|
27 |
+
$this->assignInfoData($info, $data);
|
28 |
+
|
29 |
+
return $this;
|
30 |
+
}
|
31 |
+
|
32 |
+
public function initialize($paymentAction, $stateObject)
|
33 |
+
{
|
34 |
+
/* @var $payment Mage_Sales_Model_Order_Payment */
|
35 |
+
$payment = $this->getInfoInstance();
|
36 |
+
$order = $payment->getOrder();
|
37 |
+
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
38 |
+
|
39 |
+
return $this;
|
40 |
+
}
|
41 |
+
|
42 |
+
public function getOrderPlaceRedirectUrl()
|
43 |
+
{
|
44 |
+
|
45 |
+
return Mage::getUrl('hipay/sdd/sendRequest',array('_secure' => true));
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
public function place($payment, $amount)
|
50 |
+
{
|
51 |
+
// check if Electronic Signature
|
52 |
+
$codeElectronicSignature = $this->getConfigData('electronic_signature');
|
53 |
+
if($codeElectronicSignature > 0 )
|
54 |
+
{
|
55 |
+
// if Electronic signature, action hosted
|
56 |
+
$order = $payment->getOrder();
|
57 |
+
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
58 |
+
$request = Mage::getModel('hipay/api_request',array($this));
|
59 |
+
$payment->setAmount($amount);
|
60 |
+
$token = null;
|
61 |
+
$gatewayParams = $this->getGatewayParams($payment, $amount,$token);
|
62 |
+
|
63 |
+
if(is_null($token))
|
64 |
+
{
|
65 |
+
|
66 |
+
$gatewayParams['payment_product'] = $this->getCcTypeHipay($payment->getCcType()); ;
|
67 |
+
$gatewayParams['operation'] = $this->getOperation();
|
68 |
+
|
69 |
+
if(Mage::getStoreConfig('general/store_information/name') != "")
|
70 |
+
$gatewayParams['merchant_display_name'] = Mage::getStoreConfig('general/store_information/name');
|
71 |
+
|
72 |
+
$this->_debug($gatewayParams);
|
73 |
+
$gatewayResponse = $request->gatewayRequest(Allopass_Hipay_Model_Api_Request::GATEWAY_ACTION_ORDER,$gatewayParams,$payment->getOrder()->getStoreId());
|
74 |
+
$this->_debug($gatewayResponse->debug());
|
75 |
+
|
76 |
+
return $gatewayResponse->getForwardUrl();
|
77 |
+
}
|
78 |
+
else
|
79 |
+
{
|
80 |
+
$gatewayParams['operation'] = $this->getOperation();
|
81 |
+
$gatewayParams['payment_product'] = Mage::getSingleton('customer/session')->getCustomer()->getHipaySddType();
|
82 |
+
|
83 |
+
$this->_debug($gatewayParams);
|
84 |
+
$gatewayResponse = $request->gatewayRequest(Allopass_Hipay_Model_Api_Request::GATEWAY_ACTION_ORDER,$gatewayParams,$payment->getOrder()->getStoreId());
|
85 |
+
$this->_debug($gatewayResponse->debug());
|
86 |
+
$redirectUrl = $this->processResponseToRedirect($gatewayResponse, $payment, $amount);
|
87 |
+
return $redirectUrl;
|
88 |
+
}
|
89 |
+
}else{
|
90 |
+
// if not Electronic signature, action API
|
91 |
+
$order = $payment->getOrder();
|
92 |
+
$customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
|
93 |
+
$request = Mage::getModel('hipay/api_request',array($this));
|
94 |
+
$payment->setAmount($amount);
|
95 |
+
$token = $payment->getAdditionalInformation('token');
|
96 |
+
$gatewayParams = $this->getGatewayParams($payment, $amount,$token);
|
97 |
+
$gatewayParams['operation'] =$this->getOperation();
|
98 |
+
$paymentProduct = $this->getCcTypeHipay($payment->getCcType());
|
99 |
+
|
100 |
+
$gatewayParams['payment_product'] = $paymentProduct ;
|
101 |
+
$gatewayParams['gender'] = $payment->getAdditionalInformation('cc_gender');
|
102 |
+
$gatewayParams['firstname'] = $payment->getAdditionalInformation('cc_firstname');
|
103 |
+
$gatewayParams['lastname'] = $payment->getAdditionalInformation('cc_lastname');
|
104 |
+
$gatewayParams['recurring_payment'] = 0;
|
105 |
+
$gatewayParams['iban'] = $payment->getAdditionalInformation('cc_iban');
|
106 |
+
$gatewayParams['issuer_bank_id'] = $payment->getAdditionalInformation('cc_code_bic');
|
107 |
+
$gatewayParams['bank_name'] = $payment->getAdditionalInformation('cc_bank_name');
|
108 |
+
$gatewayParams['authentication_indicator'] = 0;
|
109 |
+
$this->_debug($gatewayParams);
|
110 |
+
$gatewayResponse = $request->gatewayRequest(Allopass_Hipay_Model_Api_Request::GATEWAY_ACTION_ORDER,$gatewayParams,$payment->getOrder()->getStoreId());
|
111 |
+
$this->_debug($gatewayResponse->debug());
|
112 |
+
$redirectUrl = $this->processResponseToRedirect($gatewayResponse, $payment, $amount);
|
113 |
+
|
114 |
+
return $redirectUrl;
|
115 |
+
}
|
116 |
+
}
|
117 |
+
/**
|
118 |
+
* Validate payment method information object
|
119 |
+
*
|
120 |
+
* @param Mage_Payment_Model_Info $info
|
121 |
+
* @return Mage_Payment_Model_Abstract
|
122 |
+
*/
|
123 |
+
public function validate()
|
124 |
+
{
|
125 |
+
/**
|
126 |
+
* to validate payment method is allowed for billing country or not
|
127 |
+
*/
|
128 |
+
$errorMsg = '';
|
129 |
+
$paymentInfo = $this->getInfoInstance();
|
130 |
+
// check if Electronic signature
|
131 |
+
$codeElectronicSignature = $this->getConfigData('electronic_signature');
|
132 |
+
if($codeElectronicSignature == 0 )
|
133 |
+
{
|
134 |
+
|
135 |
+
$iban = new Zend_Validate_Iban();
|
136 |
+
if(!$iban->isValid($paymentInfo->getAdditionalInformation('cc_iban')))
|
137 |
+
{
|
138 |
+
$errorMsg = Mage::helper('payment')->__('Iban is not correct, please enter a valid Iban.');
|
139 |
+
}
|
140 |
+
// variable pour la fonction empty
|
141 |
+
$var1 = $paymentInfo->getAdditionalInformation('cc_firstname');
|
142 |
+
$var2 = $paymentInfo->getAdditionalInformation('cc_lastname');
|
143 |
+
$var3 = $paymentInfo->getAdditionalInformation('cc_code_bic');
|
144 |
+
$var4 = $paymentInfo->getAdditionalInformation('cc_bank_name');
|
145 |
+
if(empty($var1))
|
146 |
+
{
|
147 |
+
$errorMsg = Mage::helper('payment')->__('Firstname is mandatory.');
|
148 |
+
}
|
149 |
+
if(empty($var2))
|
150 |
+
{
|
151 |
+
$errorMsg = Mage::helper('payment')->__('Lastname is mandatory.');
|
152 |
+
}
|
153 |
+
if(empty($var3))
|
154 |
+
{
|
155 |
+
$errorMsg = Mage::helper('payment')->__('Code BIC is not correct, please enter a valid Code BIC.');
|
156 |
+
}
|
157 |
+
if(empty($var4))
|
158 |
+
{
|
159 |
+
$errorMsg = Mage::helper('payment')->__('Bank name is not correct, please enter a valid Bank name.');
|
160 |
+
}
|
161 |
+
if($errorMsg)
|
162 |
+
{
|
163 |
+
Mage::throwException($errorMsg);
|
164 |
+
}
|
165 |
+
}
|
166 |
+
return $this;
|
167 |
+
}
|
168 |
+
}
|
app/code/community/Allopass/Hipay/Model/Method/Sisal.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/SisalApi.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Sofort.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/SofortApi.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Webmoney.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/WebmoneyApi.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/Yandex.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Method/YandexApi.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Observer.php
CHANGED
@@ -10,12 +10,12 @@ class Allopass_Hipay_Model_Observer
|
|
10 |
//Select only method with cancel orders enabled
|
11 |
foreach (Mage::helper('hipay')->getHipayMethods() as $code=>$model)
|
12 |
{
|
13 |
-
if(Mage::
|
14 |
{
|
15 |
$methodCodes[] = $code;
|
16 |
}
|
17 |
}
|
18 |
-
|
19 |
if(count($methodCodes) < 1)
|
20 |
return $this;
|
21 |
|
@@ -26,21 +26,19 @@ class Allopass_Hipay_Model_Observer
|
|
26 |
|
27 |
/* @var $collection Mage_Sales_Model_Resource_Order_Collection */
|
28 |
$collection = Mage::getResourceModel('sales/order_collection');
|
29 |
-
$collection->addFieldToSelect(array('entity_id'))
|
30 |
-
->addFieldToFilter('state',Mage_Sales_Model_Order::STATE_NEW)
|
31 |
->addFieldToFilter('op.method',array('in'=>array_values($methodCodes)))
|
32 |
->addAttributeToFilter('created_at', array('to' => ($date->subMinute($limitedTime)->toString('Y-MM-dd HH:mm:ss'))))
|
33 |
->join(array('op' => 'sales/order_payment'), 'main_table.entity_id=op.parent_id', array('method'));
|
34 |
|
35 |
-
|
36 |
/* @var $order Mage_Sales_Model_Order */
|
37 |
foreach ($collection as $order)
|
38 |
{
|
39 |
-
|
40 |
if($order->canCancel())
|
41 |
{
|
42 |
try {
|
43 |
-
|
44 |
$order->cancel();
|
45 |
$order
|
46 |
->addStatusToHistory($order->getStatus(),// keep order status/state
|
@@ -89,7 +87,7 @@ class Allopass_Hipay_Model_Observer
|
|
89 |
//TODO check if payment method is hosted and iframe active and is success
|
90 |
$methodInstance = $payment->getMethodInstance();
|
91 |
if($result['success']
|
92 |
-
&& $methodInstance->getCode() == 'hipay_hosted'
|
93 |
&& $methodInstance->getConfigData('display_iframe'))
|
94 |
{
|
95 |
$result['iframeUrl'] = $result['redirect'];
|
@@ -142,10 +140,10 @@ class Allopass_Hipay_Model_Observer
|
|
142 |
|
143 |
if($order->canReviewPayment())
|
144 |
{
|
145 |
-
$url = $block->getUrl("
|
146 |
$message = Mage::helper('sales')->__('Are you sure you want to accept this payment?');
|
147 |
$block->addButton('accept_capture_payment', array(
|
148 |
-
'label' => Mage::helper('
|
149 |
'onclick' => "confirmSetLocation('{$message}', '{$url}')",
|
150 |
));
|
151 |
}
|
10 |
//Select only method with cancel orders enabled
|
11 |
foreach (Mage::helper('hipay')->getHipayMethods() as $code=>$model)
|
12 |
{
|
13 |
+
if(Mage::getStoreConfigFlag('payment/'.$code."/cancel_pending_order"))
|
14 |
{
|
15 |
$methodCodes[] = $code;
|
16 |
}
|
17 |
}
|
18 |
+
|
19 |
if(count($methodCodes) < 1)
|
20 |
return $this;
|
21 |
|
26 |
|
27 |
/* @var $collection Mage_Sales_Model_Resource_Order_Collection */
|
28 |
$collection = Mage::getResourceModel('sales/order_collection');
|
29 |
+
$collection->addFieldToSelect(array('entity_id','increment_id','store_id','state'))
|
30 |
+
->addFieldToFilter('main_table.state',Mage_Sales_Model_Order::STATE_NEW)
|
31 |
->addFieldToFilter('op.method',array('in'=>array_values($methodCodes)))
|
32 |
->addAttributeToFilter('created_at', array('to' => ($date->subMinute($limitedTime)->toString('Y-MM-dd HH:mm:ss'))))
|
33 |
->join(array('op' => 'sales/order_payment'), 'main_table.entity_id=op.parent_id', array('method'));
|
34 |
|
|
|
35 |
/* @var $order Mage_Sales_Model_Order */
|
36 |
foreach ($collection as $order)
|
37 |
{
|
|
|
38 |
if($order->canCancel())
|
39 |
{
|
40 |
try {
|
41 |
+
|
42 |
$order->cancel();
|
43 |
$order
|
44 |
->addStatusToHistory($order->getStatus(),// keep order status/state
|
87 |
//TODO check if payment method is hosted and iframe active and is success
|
88 |
$methodInstance = $payment->getMethodInstance();
|
89 |
if($result['success']
|
90 |
+
&& ($methodInstance->getCode() == 'hipay_hosted' || $methodInstance->getCode() == 'hipay_hostedxtimes')
|
91 |
&& $methodInstance->getConfigData('display_iframe'))
|
92 |
{
|
93 |
$result['iframeUrl'] = $result['redirect'];
|
140 |
|
141 |
if($order->canReviewPayment())
|
142 |
{
|
143 |
+
$url = $block->getUrl("*/payment/reviewCapturePayment");
|
144 |
$message = Mage::helper('sales')->__('Are you sure you want to accept this payment?');
|
145 |
$block->addButton('accept_capture_payment', array(
|
146 |
+
'label' => Mage::helper('hipay')->__('Accept and Capture Payment'),
|
147 |
'onclick' => "confirmSetLocation('{$message}', '{$url}')",
|
148 |
));
|
149 |
}
|
app/code/community/Allopass/Hipay/Model/PaymentProfile.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Resource/Card.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Resource/Card/Collection.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Resource/PaymentProfile.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Resource/PaymentProfile/Collection.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Resource/Rule.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Resource/Rule/Collection.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Resource/SplitPayment.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Resource/SplitPayment/Collection.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule/Condition/Address.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule/Condition/Combine.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule/Condition/Customer.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule/Condition/Product.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule/Condition/Product/Combine.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule/Condition/Product/Found.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule/Condition/Product/Subselect.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Rule/Config.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/3ds.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/CcType.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/CcTypeHosted.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/Order/HipayStatusValidate.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status/Accepted.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status/Canceled.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status/New.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status/Refused.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/PaymentAction.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/PaymentProfile.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/Pendingredirect.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/Source/Template.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/Model/SplitPayment.php
CHANGED
@@ -78,7 +78,12 @@ class Allopass_Hipay_Model_SplitPayment extends Mage_Core_Model_Abstract
|
|
78 |
public function getMethodInstance()
|
79 |
{
|
80 |
list($moduleName,$methodClass) = explode("_",$this->getMethodCode());
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
|
84 |
public function canPay()
|
78 |
public function getMethodInstance()
|
79 |
{
|
80 |
list($moduleName,$methodClass) = explode("_",$this->getMethodCode());
|
81 |
+
//Fix bug due to upper letter in class name
|
82 |
+
if(strpos($methodClass,'xtimes') !== false)
|
83 |
+
{
|
84 |
+
$methodClass = str_replace("x","X",$methodClass);
|
85 |
+
}
|
86 |
+
return Mage::getSingleton($moduleName . "/method_" . $methodClass );
|
87 |
}
|
88 |
|
89 |
public function canPay()
|
app/code/community/Allopass/Hipay/Model/System/Config/Backend/CcTypes.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/Adminhtml/CardController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/Adminhtml/PaymentController.php
CHANGED
@@ -14,14 +14,9 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
14 |
*/
|
15 |
protected function _getMethodInstance()
|
16 |
{
|
17 |
-
|
18 |
-
//list($module,$method) = explode("_", $this->getCheckout()->getMethod());
|
19 |
-
//$modelName = $module . "/method_" . $method;
|
20 |
$modelName = Mage::getStoreConfig('payment/'.$this->getCheckout()->getMethod()."/model");
|
21 |
-
|
22 |
-
Mage::log($modelName,null,"debug_bo_hipay.log");
|
23 |
return Mage::getSingleton($modelName);
|
24 |
-
|
25 |
}
|
26 |
|
27 |
public function reviewCapturePaymentAction()
|
@@ -42,6 +37,7 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
42 |
try {
|
43 |
|
44 |
$order->getPayment()->accept();
|
|
|
45 |
$message = $this->__('The payment has been accepted.');
|
46 |
$order->save();
|
47 |
$this->_getSession()->addSuccess($message);
|
@@ -72,7 +68,10 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
72 |
|
73 |
$transactionSave->save();
|
74 |
|
75 |
-
$message = $this->__('The
|
|
|
|
|
|
|
76 |
$this->_getSession()->addSuccess($message);
|
77 |
|
78 |
} catch (Mage_Core_Exception $e) {
|
@@ -124,7 +123,7 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
124 |
;
|
125 |
$profiles = array();
|
126 |
foreach ($collection as $profile) {
|
127 |
-
|
128 |
$additionalInfo = array();
|
129 |
$additionalInfo['ccType'] = $gatewayResponse->getBrand();
|
130 |
$additionalInfo['ccExpMonth'] = $gatewayResponse->getCardExpiryMonth() ;
|
@@ -132,25 +131,22 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
132 |
$additionalInfo['token'] = $gatewayResponse->getToken();
|
133 |
$additionalInfo['transaction_id'] = $gatewayResponse->getTransactionReference();
|
134 |
$profile->setAdditionalInfo($additionalInfo);
|
135 |
-
|
136 |
$profile->setState(Mage_Sales_Model_Recurring_Profile::STATE_ACTIVE);
|
137 |
|
138 |
$profile->save();
|
139 |
}
|
140 |
}
|
141 |
}
|
142 |
-
|
143 |
-
{
|
144 |
-
$this->processResponse();
|
145 |
-
}*/
|
146 |
$this->processResponse();
|
147 |
-
|
148 |
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
|
149 |
$this->_redirect('adminhtml/sales_order/view', array('order_id' => $this->getOrder()->getId()));
|
150 |
-
|
151 |
$this->_redirect('adminhtml/sales_order/index');
|
152 |
-
|
153 |
-
|
154 |
|
155 |
return $this;
|
156 |
}
|
@@ -294,4 +290,5 @@ class Allopass_Hipay_Adminhtml_PaymentController extends Mage_Adminhtml_Controll
|
|
294 |
{
|
295 |
return Mage::getSingleton('checkout/session');
|
296 |
}
|
|
|
297 |
}
|
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()
|
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);
|
68 |
|
69 |
$transactionSave->save();
|
70 |
|
71 |
+
$message = $this->__('The Capture was requested.');
|
72 |
+
$this->_getSession()->addSuccess($message);
|
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) {
|
123 |
;
|
124 |
$profiles = array();
|
125 |
foreach ($collection as $profile) {
|
126 |
+
|
127 |
$additionalInfo = array();
|
128 |
$additionalInfo['ccType'] = $gatewayResponse->getBrand();
|
129 |
$additionalInfo['ccExpMonth'] = $gatewayResponse->getCardExpiryMonth() ;
|
131 |
$additionalInfo['token'] = $gatewayResponse->getToken();
|
132 |
$additionalInfo['transaction_id'] = $gatewayResponse->getTransactionReference();
|
133 |
$profile->setAdditionalInfo($additionalInfo);
|
134 |
+
|
135 |
$profile->setState(Mage_Sales_Model_Recurring_Profile::STATE_ACTIVE);
|
136 |
|
137 |
$profile->save();
|
138 |
}
|
139 |
}
|
140 |
}
|
141 |
+
|
|
|
|
|
|
|
142 |
$this->processResponse();
|
143 |
+
|
144 |
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
|
145 |
$this->_redirect('adminhtml/sales_order/view', array('order_id' => $this->getOrder()->getId()));
|
146 |
+
} else {
|
147 |
$this->_redirect('adminhtml/sales_order/index');
|
148 |
+
}
|
149 |
+
|
150 |
|
151 |
return $this;
|
152 |
}
|
290 |
{
|
291 |
return Mage::getSingleton('checkout/session');
|
292 |
}
|
293 |
+
|
294 |
}
|
app/code/community/Allopass/Hipay/controllers/Adminhtml/PaymentProfileController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/Adminhtml/RuleController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/{Sales → Adminhtml/Sales}/Order/CreateController.php
RENAMED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
require_once 'Mage/Adminhtml/controllers/Sales/Order/CreateController.php';
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
|
8 |
|
@@ -39,8 +39,8 @@ class Allopass_Hipay_Sales_Order_CreateController extends Mage_Adminhtml_Sales_O
|
|
39 |
*/
|
40 |
if(strpos($order->getPayment()->getMethod(), 'hipay') !== false)
|
41 |
{
|
42 |
-
|
43 |
-
$this->
|
44 |
|
45 |
// add order information to the session
|
46 |
Mage::getSingleton('checkout/session')->setLastOrderId($order->getId())
|
2 |
|
3 |
require_once 'Mage/Adminhtml/controllers/Sales/Order/CreateController.php';
|
4 |
|
5 |
+
class Allopass_Hipay_Adminhtml_Sales_Order_CreateController extends Mage_Adminhtml_Sales_Order_CreateController
|
6 |
{
|
7 |
|
8 |
|
39 |
*/
|
40 |
if(strpos($order->getPayment()->getMethod(), 'hipay') !== false)
|
41 |
{
|
42 |
+
$url = Mage::helper('adminhtml')->getUrl('*/payment/sendRequest',array('_secure' => true));
|
43 |
+
$this->_redirectUrl($url);
|
44 |
|
45 |
// add order information to the session
|
46 |
Mage::getSingleton('checkout/session')->setLastOrderId($order->getId())
|
app/code/community/Allopass/Hipay/controllers/Adminhtml/SplitPaymentController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/CardController.php
CHANGED
@@ -129,6 +129,7 @@ class Allopass_Hipay_CardController extends Mage_Core_Controller_Front_Action
|
|
129 |
// check if we know what should be deleted
|
130 |
if ($cardId = $this->getRequest()->getParam('card_id')) {
|
131 |
$customer = $this->_getSession()->getCustomer();
|
|
|
132 |
$card = Mage::getModel('hipay/card');
|
133 |
|
134 |
if ($cardId) {
|
@@ -144,11 +145,11 @@ class Allopass_Hipay_CardController extends Mage_Core_Controller_Front_Action
|
|
144 |
return $this->_redirectError(Mage::getUrl('*/*/'));
|
145 |
}
|
146 |
|
|
|
147 |
try {
|
148 |
|
149 |
-
//
|
150 |
-
$card->
|
151 |
-
$card->save();
|
152 |
// display success message
|
153 |
$this->_getSession()->addSuccess(
|
154 |
Mage::helper('hipay')->__('The card has been deleted.'));
|
129 |
// check if we know what should be deleted
|
130 |
if ($cardId = $this->getRequest()->getParam('card_id')) {
|
131 |
$customer = $this->_getSession()->getCustomer();
|
132 |
+
/* @var $card Allopass_Hipay_Model_Card */
|
133 |
$card = Mage::getModel('hipay/card');
|
134 |
|
135 |
if ($cardId) {
|
145 |
return $this->_redirectError(Mage::getUrl('*/*/'));
|
146 |
}
|
147 |
|
148 |
+
|
149 |
try {
|
150 |
|
151 |
+
//Delete the card
|
152 |
+
$card->delete();
|
|
|
153 |
// display success message
|
154 |
$this->_getSession()->addSuccess(
|
155 |
Mage::helper('hipay')->__('The card has been deleted.'));
|
app/code/community/Allopass/Hipay/controllers/CbcController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/CcController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/CcxtimesController.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_CcxtimesController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
|
5 |
+
|
6 |
+
/**
|
7 |
+
*
|
8 |
+
* @return Allopass_Hipay_Model_Method_Cc $methodInstance
|
9 |
+
*/
|
10 |
+
protected function _getMethodInstance()
|
11 |
+
{
|
12 |
+
return Mage::getSingleton('hipay/method_ccXtimes');
|
13 |
+
}
|
14 |
+
|
15 |
+
}
|
app/code/community/Allopass/Hipay/controllers/CheckoutController.php
CHANGED
@@ -9,22 +9,28 @@ class Allopass_Hipay_CheckoutController extends Mage_Core_Controller_Front_Actio
|
|
9 |
*/
|
10 |
public function preDispatch() {
|
11 |
parent::preDispatch();
|
12 |
-
//Mage::log($this->getRequest()->getParams(),null,$this->getRequest()->getActionName() . ".log");
|
13 |
}
|
14 |
|
15 |
|
16 |
public function pendingAction()
|
17 |
{
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
28 |
$this->renderLayout();
|
29 |
}
|
30 |
|
9 |
*/
|
10 |
public function preDispatch() {
|
11 |
parent::preDispatch();
|
|
|
12 |
}
|
13 |
|
14 |
|
15 |
public function pendingAction()
|
16 |
{
|
17 |
+
$session = $this->getOnepage()->getCheckout();
|
18 |
+
if (!$session->getLastSuccessQuoteId()) {
|
19 |
+
$this->_redirect('checkout/cart');
|
20 |
+
return;
|
21 |
+
}
|
22 |
|
23 |
+
$lastQuoteId = $session->getLastQuoteId();
|
24 |
+
$lastOrderId = $session->getLastOrderId();
|
25 |
+
$lastRecurringProfiles = $session->getLastRecurringProfileIds();
|
26 |
+
if (!$lastQuoteId || (!$lastOrderId && empty($lastRecurringProfiles))) {
|
27 |
+
$this->_redirect('checkout/cart');
|
28 |
+
return;
|
29 |
+
}
|
30 |
+
|
31 |
+
$session->clear();
|
32 |
+
$this->loadLayout();
|
33 |
+
$this->_initLayoutMessages('checkout/session');
|
34 |
$this->renderLayout();
|
35 |
}
|
36 |
|
app/code/community/Allopass/Hipay/controllers/DexiaController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/GiropayController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/HostedController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/HostedxtimesController.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_HostedxtimesController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
|
5 |
+
|
6 |
+
/**
|
7 |
+
*
|
8 |
+
* @return Allopass_Hipay_Model_Method_Cc $methodInstance
|
9 |
+
*/
|
10 |
+
protected function _getMethodInstance()
|
11 |
+
{
|
12 |
+
return Mage::getSingleton('hipay/method_hostedXtimes');
|
13 |
+
}
|
14 |
+
|
15 |
+
}
|
app/code/community/Allopass/Hipay/controllers/IdealController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/IngController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/KbcController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/NotifyController.php
CHANGED
@@ -13,8 +13,7 @@ class Allopass_Hipay_NotifyController extends Mage_Core_Controller_Front_Action
|
|
13 |
*/
|
14 |
public function preDispatch() {
|
15 |
parent::preDispatch();
|
16 |
-
|
17 |
-
//Mage::log($this->getRequest()->getParams(),null,$this->getRequest()->getActionName() . ".log");
|
18 |
if (!$this->_validateSignature()) {
|
19 |
$this->getResponse()->setBody("NOK. Wrong Signature!");
|
20 |
$this->setFlag('', 'no-dispatch', true);
|
@@ -49,28 +48,18 @@ class Allopass_Hipay_NotifyController extends Mage_Core_Controller_Front_Action
|
|
49 |
|
50 |
if(strpos($orderArr['id'], 'recurring') !== false)
|
51 |
{
|
52 |
-
|
53 |
-
|
54 |
list($action,$type,$profileId) = explode("-", $orderArr['id']);
|
55 |
|
56 |
if($profileId)
|
57 |
{
|
58 |
/* @var $profile Mage_Sales_Model_Recurring_Profile */
|
59 |
$profile = Mage::getModel('sales/recurring_profile')->load($profileId);
|
60 |
-
if(
|
61 |
{
|
62 |
-
|
63 |
-
|
64 |
-
if($action == 'create' || $action == "payment")
|
65 |
-
{
|
66 |
-
//$order = $this->createProfileOrder($profile, $response);
|
67 |
-
}
|
68 |
-
|
69 |
-
//return $this;
|
70 |
-
|
71 |
}
|
72 |
-
|
73 |
-
die(Mage::helper('hipay')->__("Profile for ID: %d doesn't exists (Recurring).",$profileId));
|
74 |
}
|
75 |
else
|
76 |
die(Mage::helper('hipay')->__("Order Id not present (Recurring)."));
|
@@ -95,19 +84,18 @@ class Allopass_Hipay_NotifyController extends Mage_Core_Controller_Front_Action
|
|
95 |
else
|
96 |
$amount = $response->getRefundedAmount();
|
97 |
|
98 |
-
$transactionId = $response->getTransactionReference();
|
99 |
-
|
100 |
-
|
101 |
-
$methodInstance->processResponse($response, $payment, $amount);
|
102 |
-
|
103 |
-
|
104 |
$message = Mage::helper('hipay')->__("Notification from Hipay:") . " " . Mage::helper('hipay')->__("status") . ": ". $response->getStatus(). " Message: " .$response->getMessage()." ".Mage::helper('hipay')->__('amount: %s',(string)$amount);
|
105 |
-
|
106 |
$order->addStatusToHistory($order->getStatus(), $message);
|
107 |
$order->save();
|
|
|
|
|
|
|
108 |
|
109 |
-
return $this;
|
110 |
-
|
111 |
|
112 |
}
|
113 |
|
13 |
*/
|
14 |
public function preDispatch() {
|
15 |
parent::preDispatch();
|
16 |
+
|
|
|
17 |
if (!$this->_validateSignature()) {
|
18 |
$this->getResponse()->setBody("NOK. Wrong Signature!");
|
19 |
$this->setFlag('', 'no-dispatch', true);
|
48 |
|
49 |
if(strpos($orderArr['id'], 'recurring') !== false)
|
50 |
{
|
51 |
+
|
|
|
52 |
list($action,$type,$profileId) = explode("-", $orderArr['id']);
|
53 |
|
54 |
if($profileId)
|
55 |
{
|
56 |
/* @var $profile Mage_Sales_Model_Recurring_Profile */
|
57 |
$profile = Mage::getModel('sales/recurring_profile')->load($profileId);
|
58 |
+
if(!$profile->getId())
|
59 |
{
|
60 |
+
die(Mage::helper('hipay')->__("Profile for ID: %d doesn't exists (Recurring).",$profileId));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
+
|
|
|
63 |
}
|
64 |
else
|
65 |
die(Mage::helper('hipay')->__("Order Id not present (Recurring)."));
|
84 |
else
|
85 |
$amount = $response->getRefundedAmount();
|
86 |
|
87 |
+
$transactionId = $response->getTransactionReference();
|
88 |
+
|
89 |
+
// Move Notification before processing
|
|
|
|
|
|
|
90 |
$message = Mage::helper('hipay')->__("Notification from Hipay:") . " " . Mage::helper('hipay')->__("status") . ": ". $response->getStatus(). " Message: " .$response->getMessage()." ".Mage::helper('hipay')->__('amount: %s',(string)$amount);
|
91 |
+
|
92 |
$order->addStatusToHistory($order->getStatus(), $message);
|
93 |
$order->save();
|
94 |
+
|
95 |
+
// THEN processResponse
|
96 |
+
+ $methodInstance->processResponse($response, $payment, $amount);
|
97 |
|
98 |
+
return $this;
|
|
|
99 |
|
100 |
}
|
101 |
|
app/code/community/Allopass/Hipay/controllers/PaypalapiController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/Przelewy24Controller.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/Przelewy24apiController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/QiwiController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/SddController.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Allopass_Hipay_SddController extends Allopass_Hipay_Controller_Payment
|
3 |
+
{
|
4 |
+
protected function _getMethodInstance()
|
5 |
+
{
|
6 |
+
return Mage::getSingleton('hipay/method_sdd');
|
7 |
+
}
|
8 |
+
}
|
app/code/community/Allopass/Hipay/controllers/SisalController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/SisalapiController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/SofortController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/SofortapiController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/WebmoneyController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/WebmoneyapiController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/YandexController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/controllers/YandexapiController.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Allopass_Hipay>
|
5 |
-
<version>1.
|
6 |
</Allopass_Hipay>
|
7 |
</modules>
|
8 |
<global>
|
@@ -107,12 +107,18 @@
|
|
107 |
<name>Bancontact / Mister Cash</name>
|
108 |
<order>60</order>
|
109 |
</BCMC>
|
110 |
-
|
111 |
<code>CB</code>
|
112 |
<code_hipay>cb</code_hipay>
|
113 |
<name>Carte Bancaire</name>
|
114 |
<order>0</order>
|
115 |
</CB>
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
</types>
|
117 |
</cc>
|
118 |
<hosted>
|
@@ -350,7 +356,7 @@
|
|
350 |
<active>0</active>
|
351 |
<title>Credit Card</title>
|
352 |
<payment_action>authorize_capture</payment_action>
|
353 |
-
<cctypes>VI,MC,AE</cctypes>
|
354 |
<display_card_owner>0</display_card_owner>
|
355 |
<useccv>1</useccv>
|
356 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
@@ -358,7 +364,6 @@
|
|
358 |
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
359 |
<hipay_status_validate_order>118</hipay_status_validate_order>
|
360 |
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
361 |
-
<allow_split_payment>0</allow_split_payment>
|
362 |
<allow_use_oneclick>0</allow_use_oneclick>
|
363 |
<invoice_create>1</invoice_create>
|
364 |
<re_add_to_cart>0</re_add_to_cart>
|
@@ -374,6 +379,33 @@
|
|
374 |
<use_3d_secure>1</use_3d_secure>
|
375 |
<send_fraud_payment_email>0</send_fraud_payment_email>
|
376 |
</hipay_cc>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
<hipay_hosted>
|
378 |
<active>0</active>
|
379 |
<title>Credit Card</title>
|
@@ -384,7 +416,6 @@
|
|
384 |
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
385 |
<hipay_status_validate_order>118</hipay_status_validate_order>
|
386 |
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
387 |
-
<allow_split_payment>0</allow_split_payment>
|
388 |
<display_selector>1</display_selector>
|
389 |
<template>basic</template>
|
390 |
<allow_use_oneclick>0</allow_use_oneclick>
|
@@ -407,6 +438,38 @@
|
|
407 |
<use_3d_secure>1</use_3d_secure>
|
408 |
<send_fraud_payment_email>0</send_fraud_payment_email>
|
409 |
</hipay_hosted>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
<hipay_sofortapi>
|
411 |
<active>0</active> <!-- Activé ou non -->
|
412 |
<title>HiPay Sofort</title> <!-- Titre par défaut modifiable en admin -->
|
@@ -778,6 +841,32 @@
|
|
778 |
<use_3d_secure>0</use_3d_secure><!-- valeur par défaut pour activer le 3ds -->
|
779 |
<send_fraud_payment_email>0</send_fraud_payment_email> <!-- Envoi le mail de fraud au client final -->
|
780 |
</hipay_paypalapi>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
781 |
</payment>
|
782 |
</default>
|
783 |
<crontab>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Allopass_Hipay>
|
5 |
+
<version>1.3.0</version>
|
6 |
</Allopass_Hipay>
|
7 |
</modules>
|
8 |
<global>
|
107 |
<name>Bancontact / Mister Cash</name>
|
108 |
<order>60</order>
|
109 |
</BCMC>
|
110 |
+
<CB>
|
111 |
<code>CB</code>
|
112 |
<code_hipay>cb</code_hipay>
|
113 |
<name>Carte Bancaire</name>
|
114 |
<order>0</order>
|
115 |
</CB>
|
116 |
+
<SDD>
|
117 |
+
<code>SDD</code>
|
118 |
+
<code_hipay>sdd</code_hipay>
|
119 |
+
<name>SEPA Direct Debit</name>
|
120 |
+
<order>70</order>
|
121 |
+
</SDD>
|
122 |
</types>
|
123 |
</cc>
|
124 |
<hosted>
|
356 |
<active>0</active>
|
357 |
<title>Credit Card</title>
|
358 |
<payment_action>authorize_capture</payment_action>
|
359 |
+
<cctypes>VI,MC,AE,SDD</cctypes>
|
360 |
<display_card_owner>0</display_card_owner>
|
361 |
<useccv>1</useccv>
|
362 |
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
364 |
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
365 |
<hipay_status_validate_order>118</hipay_status_validate_order>
|
366 |
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
|
|
367 |
<allow_use_oneclick>0</allow_use_oneclick>
|
368 |
<invoice_create>1</invoice_create>
|
369 |
<re_add_to_cart>0</re_add_to_cart>
|
379 |
<use_3d_secure>1</use_3d_secure>
|
380 |
<send_fraud_payment_email>0</send_fraud_payment_email>
|
381 |
</hipay_cc>
|
382 |
+
<hipay_ccxtimes>
|
383 |
+
<active>0</active>
|
384 |
+
<title>Credit Card Split Payment</title>
|
385 |
+
<payment_action>authorize_capture</payment_action>
|
386 |
+
<cctypes>VI,MC,AE</cctypes>
|
387 |
+
<display_card_owner>0</display_card_owner>
|
388 |
+
<useccv>1</useccv>
|
389 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
390 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
391 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
392 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
393 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
394 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
395 |
+
<invoice_create>1</invoice_create>
|
396 |
+
<re_add_to_cart>0</re_add_to_cart>
|
397 |
+
<cancel_pending_order>1</cancel_pending_order>
|
398 |
+
<is_test_mode>0</is_test_mode>
|
399 |
+
<debug>0</debug>
|
400 |
+
<model>hipay/method_ccXtimes</model>
|
401 |
+
<accept_url>hipay/cc/accept</accept_url>
|
402 |
+
<pending_url>hipay/cc/pending</pending_url>
|
403 |
+
<decline_url>hipay/cc/decline</decline_url>
|
404 |
+
<exception_url>hipay/cc/exception</exception_url>
|
405 |
+
<cancel_url>hipay/cc/cancel</cancel_url>
|
406 |
+
<use_3d_secure>1</use_3d_secure>
|
407 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
408 |
+
</hipay_ccxtimes>
|
409 |
<hipay_hosted>
|
410 |
<active>0</active>
|
411 |
<title>Credit Card</title>
|
416 |
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
417 |
<hipay_status_validate_order>118</hipay_status_validate_order>
|
418 |
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
|
|
419 |
<display_selector>1</display_selector>
|
420 |
<template>basic</template>
|
421 |
<allow_use_oneclick>0</allow_use_oneclick>
|
438 |
<use_3d_secure>1</use_3d_secure>
|
439 |
<send_fraud_payment_email>0</send_fraud_payment_email>
|
440 |
</hipay_hosted>
|
441 |
+
<hipay_hostedxtimes>
|
442 |
+
<active>0</active>
|
443 |
+
<title>Credit Card Split Payment</title>
|
444 |
+
<payment_action>authorize_capture</payment_action>
|
445 |
+
<cctypes>american-express,visa,mastercard</cctypes>
|
446 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
447 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
448 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
449 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
450 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
451 |
+
<display_selector>1</display_selector>
|
452 |
+
<template>basic</template>
|
453 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
454 |
+
<invoice_create>1</invoice_create>
|
455 |
+
<re_add_to_cart>0</re_add_to_cart>
|
456 |
+
<cancel_pending_order>1</cancel_pending_order>
|
457 |
+
<display_iframe>0</display_iframe>
|
458 |
+
<iframe_width>485px</iframe_width>
|
459 |
+
<iframe_height>450px</iframe_height>
|
460 |
+
<iframe_style>margin: 10px 0; border: 1px solid #BEBCB7;</iframe_style>
|
461 |
+
<iframe_wrapper_style>text-align: center; border-bottom: 1px solid #BEBCB7; border-left: 1px solid #BEBCB7; border-right: 1px solid #BEBCB7;</iframe_wrapper_style>
|
462 |
+
<is_test_mode>0</is_test_mode>
|
463 |
+
<debug>0</debug>
|
464 |
+
<model>hipay/method_hostedXtimes</model>
|
465 |
+
<accept_url>hipay/hosted/accept</accept_url>
|
466 |
+
<pending_url>hipay/hosted/pending</pending_url>
|
467 |
+
<decline_url>hipay/hosted/decline</decline_url>
|
468 |
+
<exception_url>hipay/hosted/exception</exception_url>
|
469 |
+
<cancel_url>hipay/hosted/cancel</cancel_url>
|
470 |
+
<use_3d_secure>1</use_3d_secure>
|
471 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
472 |
+
</hipay_hostedxtimes>
|
473 |
<hipay_sofortapi>
|
474 |
<active>0</active> <!-- Activé ou non -->
|
475 |
<title>HiPay Sofort</title> <!-- Titre par défaut modifiable en admin -->
|
841 |
<use_3d_secure>0</use_3d_secure><!-- valeur par défaut pour activer le 3ds -->
|
842 |
<send_fraud_payment_email>0</send_fraud_payment_email> <!-- Envoi le mail de fraud au client final -->
|
843 |
</hipay_paypalapi>
|
844 |
+
<hipay_sdd>
|
845 |
+
<active>0</active>
|
846 |
+
<title>HiPay SEPA Direct Debit</title>
|
847 |
+
<payment_action>authorize_capture</payment_action>
|
848 |
+
<cctypes>SDD</cctypes>
|
849 |
+
<order_status_payment_accepted>processing</order_status_payment_accepted>
|
850 |
+
<order_status_payment_refused>canceled</order_status_payment_refused>
|
851 |
+
<order_status_payment_canceled>canceled</order_status_payment_canceled>
|
852 |
+
<hipay_status_validate_order>118</hipay_status_validate_order>
|
853 |
+
<pending_redirect_page>hipay/checkout/pending</pending_redirect_page>
|
854 |
+
<allow_split_payment>0</allow_split_payment>
|
855 |
+
<allow_use_oneclick>0</allow_use_oneclick>
|
856 |
+
<invoice_create>1</invoice_create>
|
857 |
+
<re_add_to_cart>0</re_add_to_cart>
|
858 |
+
<cancel_pending_order>1</cancel_pending_order>
|
859 |
+
<is_test_mode>0</is_test_mode>
|
860 |
+
<debug>0</debug>
|
861 |
+
<model>hipay/method_sdd</model>
|
862 |
+
<accept_url>hipay/sdd/accept</accept_url>
|
863 |
+
<pending_url>hipay/sdd/pending</pending_url>
|
864 |
+
<decline_url>hipay/sdd/decline</decline_url>
|
865 |
+
<exception_url>hipay/sdd/exception</exception_url>
|
866 |
+
<cancel_url>hipay/sdd/cancel</cancel_url>
|
867 |
+
<electronic_signature>1</electronic_signature>
|
868 |
+
<send_fraud_payment_email>0</send_fraud_payment_email>
|
869 |
+
</hipay_sdd>
|
870 |
</payment>
|
871 |
</default>
|
872 |
<crontab>
|
app/code/community/Allopass/Hipay/etc/system.xml
CHANGED
@@ -359,7 +359,596 @@
|
|
359 |
<show_in_website>1</show_in_website>
|
360 |
<show_in_store>1</show_in_store>
|
361 |
</send_fraud_payment_email>
|
362 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
<label>Use Split Payment</label>
|
364 |
<frontend_type>select</frontend_type>
|
365 |
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
@@ -378,15 +967,15 @@
|
|
378 |
<show_in_website>1</show_in_website>
|
379 |
<show_in_store>0</show_in_store>
|
380 |
</split_payment_profile>
|
381 |
-
|
382 |
<label>Minimum Order Total for Split Payment</label>
|
383 |
<frontend_type>text</frontend_type>
|
384 |
<sort_order>68</sort_order>
|
385 |
<show_in_default>1</show_in_default>
|
386 |
<show_in_website>1</show_in_website>
|
387 |
<show_in_store>1</show_in_store>
|
388 |
-
</min_order_total_split_payment>
|
389 |
-
|
390 |
<label>Use Oneclick</label>
|
391 |
<frontend_type>select</frontend_type>
|
392 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
@@ -395,7 +984,7 @@
|
|
395 |
<show_in_website>1</show_in_website>
|
396 |
<show_in_store>0</show_in_store>
|
397 |
</allow_use_oneclick>
|
398 |
-
|
399 |
<label>Rules Oneclick</label>
|
400 |
<comment>Configure Rules to activate oneclick</comment>
|
401 |
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
@@ -405,7 +994,7 @@
|
|
405 |
<show_in_website>1</show_in_website>
|
406 |
<show_in_store>0</show_in_store>
|
407 |
</filter_oneclick>
|
408 |
-
|
409 |
<label>Add product to cart</label>
|
410 |
<comment>Fill cart when payment canceled or refused</comment>
|
411 |
<frontend_type>select</frontend_type>
|
@@ -414,8 +1003,8 @@
|
|
414 |
<show_in_default>1</show_in_default>
|
415 |
<show_in_website>1</show_in_website>
|
416 |
<show_in_store>0</show_in_store>
|
417 |
-
|
418 |
-
|
419 |
<label>Cancel pending order</label>
|
420 |
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
421 |
<frontend_type>select</frontend_type>
|
@@ -476,7 +1065,7 @@
|
|
476 |
<show_in_website>1</show_in_website>
|
477 |
<show_in_store>1</show_in_store>
|
478 |
</sort_order>
|
479 |
-
<debug>
|
480 |
<label>Enable debug log</label>
|
481 |
<comment></comment>
|
482 |
<frontend_type>select</frontend_type>
|
@@ -497,11 +1086,11 @@
|
|
497 |
<show_in_store>1</show_in_store>
|
498 |
</is_test_mode>
|
499 |
</fields>
|
500 |
-
</
|
501 |
-
<
|
502 |
-
<label>HiPay Fullservice Hosted Page</label>
|
503 |
<frontend_type>text</frontend_type>
|
504 |
-
<sort_order>
|
505 |
<show_in_default>1</show_in_default>
|
506 |
<show_in_website>1</show_in_website>
|
507 |
<show_in_store>1</show_in_store>
|
@@ -518,11 +1107,20 @@
|
|
518 |
<title translate="label">
|
519 |
<label>Title</label>
|
520 |
<frontend_type>text</frontend_type>
|
521 |
-
<sort_order>
|
522 |
<show_in_default>1</show_in_default>
|
523 |
<show_in_website>1</show_in_website>
|
524 |
<show_in_store>1</show_in_store>
|
525 |
</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
526 |
<order_status_payment_accepted translate="label">
|
527 |
<label>Order status when payment accepted</label>
|
528 |
<frontend_type>select</frontend_type>
|
@@ -686,33 +1284,6 @@
|
|
686 |
<show_in_website>1</show_in_website>
|
687 |
<show_in_store>1</show_in_store>
|
688 |
</send_fraud_payment_email>
|
689 |
-
<allow_split_payment translate="label">
|
690 |
-
<label>Use Split Payment</label>
|
691 |
-
<frontend_type>select</frontend_type>
|
692 |
-
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
693 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
694 |
-
<sort_order>65</sort_order>
|
695 |
-
<show_in_default>1</show_in_default>
|
696 |
-
<show_in_website>1</show_in_website>
|
697 |
-
<show_in_store>0</show_in_store>
|
698 |
-
</allow_split_payment>
|
699 |
-
<split_payment_profile translate="label">
|
700 |
-
<label>Payment Profile</label>
|
701 |
-
<frontend_type>multiselect</frontend_type>
|
702 |
-
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
703 |
-
<sort_order>66</sort_order>
|
704 |
-
<show_in_default>1</show_in_default>
|
705 |
-
<show_in_website>1</show_in_website>
|
706 |
-
<show_in_store>0</show_in_store>
|
707 |
-
</split_payment_profile>
|
708 |
-
<min_order_total_split_payment translate="label">
|
709 |
-
<label>Minimum Order Total for Split Payment</label>
|
710 |
-
<frontend_type>text</frontend_type>
|
711 |
-
<sort_order>68</sort_order>
|
712 |
-
<show_in_default>1</show_in_default>
|
713 |
-
<show_in_website>1</show_in_website>
|
714 |
-
<show_in_store>1</show_in_store>
|
715 |
-
</min_order_total_split_payment>
|
716 |
<allow_use_oneclick translate="label">
|
717 |
<label>Use Oneclick</label>
|
718 |
<frontend_type>select</frontend_type>
|
@@ -824,7 +1395,7 @@
|
|
824 |
<show_in_store>1</show_in_store>
|
825 |
</is_test_mode>
|
826 |
</fields>
|
827 |
-
</
|
828 |
<hipay_ideal translate="label" module="hipay">
|
829 |
<label>HiPay Fullservice iDeal</label>
|
830 |
<frontend_type>text</frontend_type>
|
@@ -3137,6 +3708,188 @@
|
|
3137 |
</is_test_mode>
|
3138 |
</fields>
|
3139 |
</hipay_paypalapi>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3140 |
</groups>
|
3141 |
</payment>
|
3142 |
</sections>
|
359 |
<show_in_website>1</show_in_website>
|
360 |
<show_in_store>1</show_in_store>
|
361 |
</send_fraud_payment_email>
|
362 |
+
<!-- @deprecated since version 1.2.6 -->
|
363 |
+
<!-- <allow_split_payment translate="label">
|
364 |
+
<label>Use Split Payment</label>
|
365 |
+
<frontend_type>select</frontend_type>
|
366 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
367 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
368 |
+
<sort_order>65</sort_order>
|
369 |
+
<show_in_default>1</show_in_default>
|
370 |
+
<show_in_website>1</show_in_website>
|
371 |
+
<show_in_store>0</show_in_store>
|
372 |
+
</allow_split_payment>
|
373 |
+
<split_payment_profile translate="label">
|
374 |
+
<label>Payment Profile</label>
|
375 |
+
<frontend_type>multiselect</frontend_type>
|
376 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
377 |
+
<sort_order>66</sort_order>
|
378 |
+
<show_in_default>1</show_in_default>
|
379 |
+
<show_in_website>1</show_in_website>
|
380 |
+
<show_in_store>0</show_in_store>
|
381 |
+
</split_payment_profile>
|
382 |
+
<min_order_total_split_payment translate="label">
|
383 |
+
<label>Minimum Order Total for Split Payment</label>
|
384 |
+
<frontend_type>text</frontend_type>
|
385 |
+
<sort_order>68</sort_order>
|
386 |
+
<show_in_default>1</show_in_default>
|
387 |
+
<show_in_website>1</show_in_website>
|
388 |
+
<show_in_store>1</show_in_store>
|
389 |
+
</min_order_total_split_payment> -->
|
390 |
+
<allow_use_oneclick translate="label">
|
391 |
+
<label>Use Oneclick</label>
|
392 |
+
<frontend_type>select</frontend_type>
|
393 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
394 |
+
<sort_order>70</sort_order>
|
395 |
+
<show_in_default>1</show_in_default>
|
396 |
+
<show_in_website>1</show_in_website>
|
397 |
+
<show_in_store>0</show_in_store>
|
398 |
+
</allow_use_oneclick>
|
399 |
+
<filter_oneclick translate="label comment">
|
400 |
+
<label>Rules Oneclick</label>
|
401 |
+
<comment>Configure Rules to activate oneclick</comment>
|
402 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
403 |
+
<backend_model>hipay/rule_config</backend_model>
|
404 |
+
<sort_order>80</sort_order>
|
405 |
+
<show_in_default>1</show_in_default>
|
406 |
+
<show_in_website>1</show_in_website>
|
407 |
+
<show_in_store>0</show_in_store>
|
408 |
+
</filter_oneclick>
|
409 |
+
<re_add_to_cart translate="label comment">
|
410 |
+
<label>Add product to cart</label>
|
411 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
412 |
+
<frontend_type>select</frontend_type>
|
413 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
414 |
+
<sort_order>95</sort_order>
|
415 |
+
<show_in_default>1</show_in_default>
|
416 |
+
<show_in_website>1</show_in_website>
|
417 |
+
<show_in_store>0</show_in_store>
|
418 |
+
</re_add_to_cart>
|
419 |
+
<cancel_pending_order translate="label comment">
|
420 |
+
<label>Cancel pending order</label>
|
421 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
422 |
+
<frontend_type>select</frontend_type>
|
423 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
424 |
+
<sort_order>97</sort_order>
|
425 |
+
<show_in_default>1</show_in_default>
|
426 |
+
<show_in_website>1</show_in_website>
|
427 |
+
<show_in_store>0</show_in_store>
|
428 |
+
</cancel_pending_order>
|
429 |
+
<send_fraud_payment_email translate="label">
|
430 |
+
<label>Send fraud payment email</label>
|
431 |
+
<frontend_type>select</frontend_type>
|
432 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
433 |
+
<sort_order>99</sort_order>
|
434 |
+
<show_in_default>1</show_in_default>
|
435 |
+
<show_in_website>1</show_in_website>
|
436 |
+
<show_in_store>1</show_in_store>
|
437 |
+
</send_fraud_payment_email>
|
438 |
+
<allowspecific translate="label">
|
439 |
+
<label>Payment from applicable countries</label>
|
440 |
+
<frontend_type>allowspecific</frontend_type>
|
441 |
+
<sort_order>100</sort_order>
|
442 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
443 |
+
<show_in_default>1</show_in_default>
|
444 |
+
<show_in_website>1</show_in_website>
|
445 |
+
<show_in_store>1</show_in_store>
|
446 |
+
</allowspecific>
|
447 |
+
<specificcountry translate="label">
|
448 |
+
<label>Payment from Specific countries</label>
|
449 |
+
<frontend_type>multiselect</frontend_type>
|
450 |
+
<sort_order>110</sort_order>
|
451 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
452 |
+
<show_in_default>1</show_in_default>
|
453 |
+
<show_in_website>1</show_in_website>
|
454 |
+
<show_in_store>1</show_in_store>
|
455 |
+
</specificcountry>
|
456 |
+
<min_order_total translate="label">
|
457 |
+
<label>Minimum Order Total</label>
|
458 |
+
<frontend_type>text</frontend_type>
|
459 |
+
<sort_order>120</sort_order>
|
460 |
+
<show_in_default>1</show_in_default>
|
461 |
+
<show_in_website>1</show_in_website>
|
462 |
+
<show_in_store>1</show_in_store>
|
463 |
+
</min_order_total>
|
464 |
+
<max_order_total translate="label">
|
465 |
+
<label>Maximum Order Total</label>
|
466 |
+
<frontend_type>text</frontend_type>
|
467 |
+
<sort_order>121</sort_order>
|
468 |
+
<show_in_default>1</show_in_default>
|
469 |
+
<show_in_website>1</show_in_website>
|
470 |
+
<show_in_store>1</show_in_store>
|
471 |
+
</max_order_total>
|
472 |
+
<sort_order translate="label">
|
473 |
+
<label>Sort Order</label>
|
474 |
+
<frontend_type>text</frontend_type>
|
475 |
+
<sort_order>130</sort_order>
|
476 |
+
<show_in_default>1</show_in_default>
|
477 |
+
<show_in_website>1</show_in_website>
|
478 |
+
<show_in_store>1</show_in_store>
|
479 |
+
</sort_order>
|
480 |
+
<debug>
|
481 |
+
<label>Enable debug log</label>
|
482 |
+
<comment></comment>
|
483 |
+
<frontend_type>select</frontend_type>
|
484 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
485 |
+
<sort_order>150</sort_order>
|
486 |
+
<show_in_default>1</show_in_default>
|
487 |
+
<show_in_website>1</show_in_website>
|
488 |
+
<show_in_store>0</show_in_store>
|
489 |
+
</debug>
|
490 |
+
<is_test_mode translate="label comment">
|
491 |
+
<label>Enable test mode</label>
|
492 |
+
<comment></comment>
|
493 |
+
<frontend_type>select</frontend_type>
|
494 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
495 |
+
<sort_order>200</sort_order>
|
496 |
+
<show_in_default>1</show_in_default>
|
497 |
+
<show_in_website>1</show_in_website>
|
498 |
+
<show_in_store>1</show_in_store>
|
499 |
+
</is_test_mode>
|
500 |
+
</fields>
|
501 |
+
</hipay_cc>
|
502 |
+
<hipay_ccxtimes translate="label" module="hipay">
|
503 |
+
<label>HiPay Fullservice Credit Card Split Payment</label>
|
504 |
+
<frontend_type>text</frontend_type>
|
505 |
+
<sort_order>205</sort_order>
|
506 |
+
<show_in_default>1</show_in_default>
|
507 |
+
<show_in_website>1</show_in_website>
|
508 |
+
<show_in_store>1</show_in_store>
|
509 |
+
<fields>
|
510 |
+
<active translate="label">
|
511 |
+
<label>Enabled</label>
|
512 |
+
<frontend_type>select</frontend_type>
|
513 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
514 |
+
<sort_order>10</sort_order>
|
515 |
+
<show_in_default>1</show_in_default>
|
516 |
+
<show_in_website>1</show_in_website>
|
517 |
+
<show_in_store>1</show_in_store>
|
518 |
+
</active>
|
519 |
+
<title translate="label">
|
520 |
+
<label>Title</label>
|
521 |
+
<frontend_type>text</frontend_type>
|
522 |
+
<sort_order>15</sort_order>
|
523 |
+
<show_in_default>1</show_in_default>
|
524 |
+
<show_in_website>1</show_in_website>
|
525 |
+
<show_in_store>1</show_in_store>
|
526 |
+
</title>
|
527 |
+
<split_payment_profile translate="label">
|
528 |
+
<label>Payment Profile</label>
|
529 |
+
<frontend_type>multiselect</frontend_type>
|
530 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
531 |
+
<sort_order>20</sort_order>
|
532 |
+
<show_in_default>1</show_in_default>
|
533 |
+
<show_in_website>1</show_in_website>
|
534 |
+
<show_in_store>0</show_in_store>
|
535 |
+
</split_payment_profile>
|
536 |
+
<order_status_payment_accepted translate="label">
|
537 |
+
<label>Order status when payment accepted</label>
|
538 |
+
<frontend_type>select</frontend_type>
|
539 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
540 |
+
<sort_order>23</sort_order>
|
541 |
+
<show_in_default>1</show_in_default>
|
542 |
+
<show_in_website>1</show_in_website>
|
543 |
+
<show_in_store>0</show_in_store>
|
544 |
+
</order_status_payment_accepted>
|
545 |
+
<order_status_payment_refused translate="label">
|
546 |
+
<label>Order status when payment refused</label>
|
547 |
+
<frontend_type>select</frontend_type>
|
548 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
549 |
+
<sort_order>24</sort_order>
|
550 |
+
<show_in_default>1</show_in_default>
|
551 |
+
<show_in_website>1</show_in_website>
|
552 |
+
<show_in_store>0</show_in_store>
|
553 |
+
</order_status_payment_refused>
|
554 |
+
<order_status_payment_canceled translate="label">
|
555 |
+
<label>Order status when payment canceled by customer</label>
|
556 |
+
<frontend_type>select</frontend_type>
|
557 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
558 |
+
<sort_order>25</sort_order>
|
559 |
+
<show_in_default>1</show_in_default>
|
560 |
+
<show_in_website>1</show_in_website>
|
561 |
+
<show_in_store>0</show_in_store>
|
562 |
+
</order_status_payment_canceled>
|
563 |
+
<hipay_status_validate_order translate="label">
|
564 |
+
<label>Hipay status to validate order</label>
|
565 |
+
<frontend_type>select</frontend_type>
|
566 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
567 |
+
<sort_order>26</sort_order>
|
568 |
+
<show_in_default>1</show_in_default>
|
569 |
+
<show_in_website>1</show_in_website>
|
570 |
+
<show_in_store>0</show_in_store>
|
571 |
+
</hipay_status_validate_order>
|
572 |
+
<pending_redirect_page translate="label">
|
573 |
+
<label>Redirect page pending status</label>
|
574 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
575 |
+
<frontend_type>select</frontend_type>
|
576 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
577 |
+
<sort_order>27</sort_order>
|
578 |
+
<show_in_default>1</show_in_default>
|
579 |
+
<show_in_website>1</show_in_website>
|
580 |
+
<show_in_store>0</show_in_store>
|
581 |
+
</pending_redirect_page>
|
582 |
+
<payment_action translate="label">
|
583 |
+
<label>Payment Action</label>
|
584 |
+
<frontend_type>select</frontend_type>
|
585 |
+
<source_model>hipay/source_paymentAction</source_model>
|
586 |
+
<sort_order>30</sort_order>
|
587 |
+
<show_in_default>1</show_in_default>
|
588 |
+
<show_in_website>1</show_in_website>
|
589 |
+
<show_in_store>0</show_in_store>
|
590 |
+
</payment_action>
|
591 |
+
<cctypes translate="label">
|
592 |
+
<label>Credit Card Types</label>
|
593 |
+
<comment>Sort the list by drag'n/drop credit card type</comment>
|
594 |
+
<frontend_type>checkboxes</frontend_type>
|
595 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_multiselectSortable</frontend_model>
|
596 |
+
<backend_model>hipay/system_config_backend_ccTypes</backend_model>
|
597 |
+
<source_model>hipay/source_ccType::toConfigOption</source_model>
|
598 |
+
<sort_order>40</sort_order>
|
599 |
+
<show_in_default>1</show_in_default>
|
600 |
+
<show_in_website>1</show_in_website>
|
601 |
+
<show_in_store>0</show_in_store>
|
602 |
+
</cctypes>
|
603 |
+
<display_card_owner translate="label comment">
|
604 |
+
<label>Display card owner</label>
|
605 |
+
<comment>Display card owner in card form</comment>
|
606 |
+
<frontend_type>select</frontend_type>
|
607 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
608 |
+
<sort_order>45</sort_order>
|
609 |
+
<show_in_default>1</show_in_default>
|
610 |
+
<show_in_website>1</show_in_website>
|
611 |
+
<show_in_store>0</show_in_store>
|
612 |
+
</display_card_owner>
|
613 |
+
<useccv translate="label">
|
614 |
+
<label>Credit Card Verification</label>
|
615 |
+
<frontend_type>select</frontend_type>
|
616 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
617 |
+
<sort_order>50</sort_order>
|
618 |
+
<show_in_default>1</show_in_default>
|
619 |
+
<show_in_website>1</show_in_website>
|
620 |
+
<show_in_store>0</show_in_store>
|
621 |
+
</useccv>
|
622 |
+
<use_3d_secure translate="label">
|
623 |
+
<label>Use 3D Secure</label>
|
624 |
+
<frontend_type>select</frontend_type>
|
625 |
+
<source_model>hipay/source_3ds</source_model>
|
626 |
+
<sort_order>60</sort_order>
|
627 |
+
<show_in_default>1</show_in_default>
|
628 |
+
<show_in_website>1</show_in_website>
|
629 |
+
<show_in_store>0</show_in_store>
|
630 |
+
</use_3d_secure>
|
631 |
+
<config_3ds_rules translate="label comment">
|
632 |
+
<label>Rules 3D Secure</label>
|
633 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
634 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
635 |
+
<backend_model>hipay/rule_config</backend_model>
|
636 |
+
<sort_order>61</sort_order>
|
637 |
+
<show_in_default>1</show_in_default>
|
638 |
+
<show_in_website>1</show_in_website>
|
639 |
+
<show_in_store>0</show_in_store>
|
640 |
+
</config_3ds_rules>
|
641 |
+
<send_fraud_payment_email translate="label">
|
642 |
+
<label>Send fraud payment email</label>
|
643 |
+
<frontend_type>select</frontend_type>
|
644 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
645 |
+
<sort_order>63</sort_order>
|
646 |
+
<show_in_default>1</show_in_default>
|
647 |
+
<show_in_website>1</show_in_website>
|
648 |
+
<show_in_store>1</show_in_store>
|
649 |
+
</send_fraud_payment_email>
|
650 |
+
<allow_use_oneclick translate="label">
|
651 |
+
<label>Use Oneclick</label>
|
652 |
+
<frontend_type>select</frontend_type>
|
653 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
654 |
+
<sort_order>70</sort_order>
|
655 |
+
<show_in_default>1</show_in_default>
|
656 |
+
<show_in_website>1</show_in_website>
|
657 |
+
<show_in_store>0</show_in_store>
|
658 |
+
</allow_use_oneclick>
|
659 |
+
<filter_oneclick translate="label comment">
|
660 |
+
<label>Rules Oneclick</label>
|
661 |
+
<comment>Configure Rules to activate oneclick</comment>
|
662 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
663 |
+
<backend_model>hipay/rule_config</backend_model>
|
664 |
+
<sort_order>80</sort_order>
|
665 |
+
<show_in_default>1</show_in_default>
|
666 |
+
<show_in_website>1</show_in_website>
|
667 |
+
<show_in_store>0</show_in_store>
|
668 |
+
</filter_oneclick>
|
669 |
+
<re_add_to_cart translate="label comment">
|
670 |
+
<label>Add product to cart</label>
|
671 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
672 |
+
<frontend_type>select</frontend_type>
|
673 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
674 |
+
<sort_order>95</sort_order>
|
675 |
+
<show_in_default>1</show_in_default>
|
676 |
+
<show_in_website>1</show_in_website>
|
677 |
+
<show_in_store>0</show_in_store>
|
678 |
+
</re_add_to_cart>
|
679 |
+
<cancel_pending_order translate="label comment">
|
680 |
+
<label>Cancel pending order</label>
|
681 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
682 |
+
<frontend_type>select</frontend_type>
|
683 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
684 |
+
<sort_order>97</sort_order>
|
685 |
+
<show_in_default>1</show_in_default>
|
686 |
+
<show_in_website>1</show_in_website>
|
687 |
+
<show_in_store>0</show_in_store>
|
688 |
+
</cancel_pending_order>
|
689 |
+
<send_fraud_payment_email translate="label">
|
690 |
+
<label>Send fraud payment email</label>
|
691 |
+
<frontend_type>select</frontend_type>
|
692 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
693 |
+
<sort_order>99</sort_order>
|
694 |
+
<show_in_default>1</show_in_default>
|
695 |
+
<show_in_website>1</show_in_website>
|
696 |
+
<show_in_store>1</show_in_store>
|
697 |
+
</send_fraud_payment_email>
|
698 |
+
<allowspecific translate="label">
|
699 |
+
<label>Payment from applicable countries</label>
|
700 |
+
<frontend_type>allowspecific</frontend_type>
|
701 |
+
<sort_order>100</sort_order>
|
702 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
703 |
+
<show_in_default>1</show_in_default>
|
704 |
+
<show_in_website>1</show_in_website>
|
705 |
+
<show_in_store>1</show_in_store>
|
706 |
+
</allowspecific>
|
707 |
+
<specificcountry translate="label">
|
708 |
+
<label>Payment from Specific countries</label>
|
709 |
+
<frontend_type>multiselect</frontend_type>
|
710 |
+
<sort_order>110</sort_order>
|
711 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
712 |
+
<show_in_default>1</show_in_default>
|
713 |
+
<show_in_website>1</show_in_website>
|
714 |
+
<show_in_store>1</show_in_store>
|
715 |
+
</specificcountry>
|
716 |
+
<min_order_total translate="label">
|
717 |
+
<label>Minimum Order Total</label>
|
718 |
+
<frontend_type>text</frontend_type>
|
719 |
+
<sort_order>120</sort_order>
|
720 |
+
<show_in_default>1</show_in_default>
|
721 |
+
<show_in_website>1</show_in_website>
|
722 |
+
<show_in_store>1</show_in_store>
|
723 |
+
</min_order_total>
|
724 |
+
<max_order_total translate="label">
|
725 |
+
<label>Maximum Order Total</label>
|
726 |
+
<frontend_type>text</frontend_type>
|
727 |
+
<sort_order>121</sort_order>
|
728 |
+
<show_in_default>1</show_in_default>
|
729 |
+
<show_in_website>1</show_in_website>
|
730 |
+
<show_in_store>1</show_in_store>
|
731 |
+
</max_order_total>
|
732 |
+
<sort_order translate="label">
|
733 |
+
<label>Sort Order</label>
|
734 |
+
<frontend_type>text</frontend_type>
|
735 |
+
<sort_order>130</sort_order>
|
736 |
+
<show_in_default>1</show_in_default>
|
737 |
+
<show_in_website>1</show_in_website>
|
738 |
+
<show_in_store>1</show_in_store>
|
739 |
+
</sort_order>
|
740 |
+
<debug>
|
741 |
+
<label>Enable debug log</label>
|
742 |
+
<comment></comment>
|
743 |
+
<frontend_type>select</frontend_type>
|
744 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
745 |
+
<sort_order>150</sort_order>
|
746 |
+
<show_in_default>1</show_in_default>
|
747 |
+
<show_in_website>1</show_in_website>
|
748 |
+
<show_in_store>0</show_in_store>
|
749 |
+
</debug>
|
750 |
+
<is_test_mode translate="label comment">
|
751 |
+
<label>Enable test mode</label>
|
752 |
+
<comment></comment>
|
753 |
+
<frontend_type>select</frontend_type>
|
754 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
755 |
+
<sort_order>200</sort_order>
|
756 |
+
<show_in_default>1</show_in_default>
|
757 |
+
<show_in_website>1</show_in_website>
|
758 |
+
<show_in_store>1</show_in_store>
|
759 |
+
</is_test_mode>
|
760 |
+
</fields>
|
761 |
+
</hipay_ccxtimes>
|
762 |
+
<hipay_hosted translate="label" module="hipay">
|
763 |
+
<label>HiPay Fullservice Hosted Page</label>
|
764 |
+
<frontend_type>text</frontend_type>
|
765 |
+
<sort_order>210</sort_order>
|
766 |
+
<show_in_default>1</show_in_default>
|
767 |
+
<show_in_website>1</show_in_website>
|
768 |
+
<show_in_store>1</show_in_store>
|
769 |
+
<fields>
|
770 |
+
<active translate="label">
|
771 |
+
<label>Enabled</label>
|
772 |
+
<frontend_type>select</frontend_type>
|
773 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
774 |
+
<sort_order>10</sort_order>
|
775 |
+
<show_in_default>1</show_in_default>
|
776 |
+
<show_in_website>1</show_in_website>
|
777 |
+
<show_in_store>1</show_in_store>
|
778 |
+
</active>
|
779 |
+
<title translate="label">
|
780 |
+
<label>Title</label>
|
781 |
+
<frontend_type>text</frontend_type>
|
782 |
+
<sort_order>20</sort_order>
|
783 |
+
<show_in_default>1</show_in_default>
|
784 |
+
<show_in_website>1</show_in_website>
|
785 |
+
<show_in_store>1</show_in_store>
|
786 |
+
</title>
|
787 |
+
<order_status_payment_accepted translate="label">
|
788 |
+
<label>Order status when payment accepted</label>
|
789 |
+
<frontend_type>select</frontend_type>
|
790 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
791 |
+
<sort_order>23</sort_order>
|
792 |
+
<show_in_default>1</show_in_default>
|
793 |
+
<show_in_website>1</show_in_website>
|
794 |
+
<show_in_store>0</show_in_store>
|
795 |
+
</order_status_payment_accepted>
|
796 |
+
<order_status_payment_refused translate="label">
|
797 |
+
<label>Order status when payment refused</label>
|
798 |
+
<frontend_type>select</frontend_type>
|
799 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
800 |
+
<sort_order>24</sort_order>
|
801 |
+
<show_in_default>1</show_in_default>
|
802 |
+
<show_in_website>1</show_in_website>
|
803 |
+
<show_in_store>0</show_in_store>
|
804 |
+
</order_status_payment_refused>
|
805 |
+
<order_status_payment_canceled translate="label">
|
806 |
+
<label>Order status when payment canceled by customer</label>
|
807 |
+
<frontend_type>select</frontend_type>
|
808 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
809 |
+
<sort_order>25</sort_order>
|
810 |
+
<show_in_default>1</show_in_default>
|
811 |
+
<show_in_website>1</show_in_website>
|
812 |
+
<show_in_store>0</show_in_store>
|
813 |
+
</order_status_payment_canceled>
|
814 |
+
<hipay_status_validate_order translate="label">
|
815 |
+
<label>Hipay status to validate order</label>
|
816 |
+
<frontend_type>select</frontend_type>
|
817 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
818 |
+
<sort_order>26</sort_order>
|
819 |
+
<show_in_default>1</show_in_default>
|
820 |
+
<show_in_website>1</show_in_website>
|
821 |
+
<show_in_store>0</show_in_store>
|
822 |
+
</hipay_status_validate_order>
|
823 |
+
<pending_redirect_page translate="label">
|
824 |
+
<label>Redirect page pending status</label>
|
825 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
826 |
+
<frontend_type>select</frontend_type>
|
827 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
828 |
+
<sort_order>27</sort_order>
|
829 |
+
<show_in_default>1</show_in_default>
|
830 |
+
<show_in_website>1</show_in_website>
|
831 |
+
<show_in_store>0</show_in_store>
|
832 |
+
</pending_redirect_page>
|
833 |
+
<payment_action translate="label">
|
834 |
+
<label>Payment Action</label>
|
835 |
+
<frontend_type>select</frontend_type>
|
836 |
+
<source_model>hipay/source_paymentAction</source_model>
|
837 |
+
<sort_order>28</sort_order>
|
838 |
+
<show_in_default>1</show_in_default>
|
839 |
+
<show_in_website>1</show_in_website>
|
840 |
+
<show_in_store>0</show_in_store>
|
841 |
+
</payment_action>
|
842 |
+
<cctypes translate="label">
|
843 |
+
<label>Credit Card Types</label>
|
844 |
+
<comment>Sort the list by drag'n/drop credit card type</comment>
|
845 |
+
<frontend_type>checkboxes</frontend_type>
|
846 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_multiselectSortable</frontend_model>
|
847 |
+
<backend_model>hipay/system_config_backend_ccTypes</backend_model>
|
848 |
+
<source_model>hipay/source_ccTypeHosted::toConfigOption</source_model>
|
849 |
+
<sort_order>29</sort_order>
|
850 |
+
<show_in_default>1</show_in_default>
|
851 |
+
<show_in_website>1</show_in_website>
|
852 |
+
<show_in_store>0</show_in_store>
|
853 |
+
</cctypes>
|
854 |
+
<css_url translate="label coment">
|
855 |
+
<label>Css Url</label>
|
856 |
+
<comment>Important, HTTPS protocol is required</comment>
|
857 |
+
<frontend_type>text</frontend_type>
|
858 |
+
<sort_order>30</sort_order>
|
859 |
+
<show_in_default>1</show_in_default>
|
860 |
+
<show_in_website>1</show_in_website>
|
861 |
+
<show_in_store>1</show_in_store>
|
862 |
+
</css_url>
|
863 |
+
<template translate="label">
|
864 |
+
<label>Page payment template</label>
|
865 |
+
<frontend_type>select</frontend_type>
|
866 |
+
<source_model>hipay/source_template</source_model>
|
867 |
+
<sort_order>35</sort_order>
|
868 |
+
<show_in_default>1</show_in_default>
|
869 |
+
<show_in_website>1</show_in_website>
|
870 |
+
<show_in_store>0</show_in_store>
|
871 |
+
</template>
|
872 |
+
<display_iframe translate="label">
|
873 |
+
<label>Display hosted page in Iframe</label>
|
874 |
+
<frontend_type>select</frontend_type>
|
875 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
876 |
+
<sort_order>36</sort_order>
|
877 |
+
<show_in_default>1</show_in_default>
|
878 |
+
<show_in_website>1</show_in_website>
|
879 |
+
<show_in_store>0</show_in_store>
|
880 |
+
</display_iframe>
|
881 |
+
<iframe_width translate="label">
|
882 |
+
<label>iFrame Width</label>
|
883 |
+
<frontend_type>text</frontend_type>
|
884 |
+
<sort_order>37</sort_order>
|
885 |
+
<show_in_default>1</show_in_default>
|
886 |
+
<show_in_website>1</show_in_website>
|
887 |
+
<show_in_store>1</show_in_store>
|
888 |
+
</iframe_width>
|
889 |
+
<iframe_height translate="label">
|
890 |
+
<label>iFrame Height</label>
|
891 |
+
<frontend_type>text</frontend_type>
|
892 |
+
<sort_order>38</sort_order>
|
893 |
+
<show_in_default>1</show_in_default>
|
894 |
+
<show_in_website>1</show_in_website>
|
895 |
+
<show_in_store>1</show_in_store>
|
896 |
+
</iframe_height>
|
897 |
+
<iframe_style translate="label">
|
898 |
+
<label>iFrame Style</label>
|
899 |
+
<frontend_type>text</frontend_type>
|
900 |
+
<sort_order>39</sort_order>
|
901 |
+
<show_in_default>1</show_in_default>
|
902 |
+
<show_in_website>1</show_in_website>
|
903 |
+
<show_in_store>1</show_in_store>
|
904 |
+
</iframe_style>
|
905 |
+
<iframe_wrapper_style translate="label">
|
906 |
+
<label>Wrapper iFrame Style</label>
|
907 |
+
<frontend_type>text</frontend_type>
|
908 |
+
<sort_order>39</sort_order>
|
909 |
+
<show_in_default>1</show_in_default>
|
910 |
+
<show_in_website>1</show_in_website>
|
911 |
+
<show_in_store>1</show_in_store>
|
912 |
+
</iframe_wrapper_style>
|
913 |
+
<display_selector translate="label">
|
914 |
+
<label>Display card selector</label>
|
915 |
+
<frontend_type>select</frontend_type>
|
916 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
917 |
+
<sort_order>40</sort_order>
|
918 |
+
<show_in_default>1</show_in_default>
|
919 |
+
<show_in_website>1</show_in_website>
|
920 |
+
<show_in_store>0</show_in_store>
|
921 |
+
</display_selector>
|
922 |
+
<use_3d_secure translate="label">
|
923 |
+
<label>Use 3D Secure</label>
|
924 |
+
<frontend_type>select</frontend_type>
|
925 |
+
<source_model>hipay/source_3ds</source_model>
|
926 |
+
<sort_order>60</sort_order>
|
927 |
+
<show_in_default>1</show_in_default>
|
928 |
+
<show_in_website>1</show_in_website>
|
929 |
+
<show_in_store>0</show_in_store>
|
930 |
+
</use_3d_secure>
|
931 |
+
<config_3ds_rules translate="label comment">
|
932 |
+
<label>Rules 3D Secure</label>
|
933 |
+
<comment>Configure Rules to activate 3D Secure</comment>
|
934 |
+
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
935 |
+
<backend_model>hipay/rule_config</backend_model>
|
936 |
+
<sort_order>61</sort_order>
|
937 |
+
<show_in_default>1</show_in_default>
|
938 |
+
<show_in_website>1</show_in_website>
|
939 |
+
<show_in_store>0</show_in_store>
|
940 |
+
</config_3ds_rules>
|
941 |
+
<send_fraud_payment_email translate="label">
|
942 |
+
<label>Send fraud payment email</label>
|
943 |
+
<frontend_type>select</frontend_type>
|
944 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
945 |
+
<sort_order>63</sort_order>
|
946 |
+
<show_in_default>1</show_in_default>
|
947 |
+
<show_in_website>1</show_in_website>
|
948 |
+
<show_in_store>1</show_in_store>
|
949 |
+
</send_fraud_payment_email>
|
950 |
+
<!-- @deprecated since version 1.2.6 -->
|
951 |
+
<!-- <allow_split_payment translate="label">
|
952 |
<label>Use Split Payment</label>
|
953 |
<frontend_type>select</frontend_type>
|
954 |
<frontend_model>hipay/adminhtml_system_config_form_field_allowsplitpayment</frontend_model>
|
967 |
<show_in_website>1</show_in_website>
|
968 |
<show_in_store>0</show_in_store>
|
969 |
</split_payment_profile>
|
970 |
+
<min_order_total_split_payment translate="label">
|
971 |
<label>Minimum Order Total for Split Payment</label>
|
972 |
<frontend_type>text</frontend_type>
|
973 |
<sort_order>68</sort_order>
|
974 |
<show_in_default>1</show_in_default>
|
975 |
<show_in_website>1</show_in_website>
|
976 |
<show_in_store>1</show_in_store>
|
977 |
+
</min_order_total_split_payment> -->
|
978 |
+
<allow_use_oneclick translate="label">
|
979 |
<label>Use Oneclick</label>
|
980 |
<frontend_type>select</frontend_type>
|
981 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
984 |
<show_in_website>1</show_in_website>
|
985 |
<show_in_store>0</show_in_store>
|
986 |
</allow_use_oneclick>
|
987 |
+
<filter_oneclick translate="label comment">
|
988 |
<label>Rules Oneclick</label>
|
989 |
<comment>Configure Rules to activate oneclick</comment>
|
990 |
<frontend_model>hipay/adminhtml_system_config_form_field_3dsRule</frontend_model>
|
994 |
<show_in_website>1</show_in_website>
|
995 |
<show_in_store>0</show_in_store>
|
996 |
</filter_oneclick>
|
997 |
+
<re_add_to_cart translate="label comment">
|
998 |
<label>Add product to cart</label>
|
999 |
<comment>Fill cart when payment canceled or refused</comment>
|
1000 |
<frontend_type>select</frontend_type>
|
1003 |
<show_in_default>1</show_in_default>
|
1004 |
<show_in_website>1</show_in_website>
|
1005 |
<show_in_store>0</show_in_store>
|
1006 |
+
</re_add_to_cart>
|
1007 |
+
<cancel_pending_order translate="label comment">
|
1008 |
<label>Cancel pending order</label>
|
1009 |
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
1010 |
<frontend_type>select</frontend_type>
|
1065 |
<show_in_website>1</show_in_website>
|
1066 |
<show_in_store>1</show_in_store>
|
1067 |
</sort_order>
|
1068 |
+
<debug translate="label">
|
1069 |
<label>Enable debug log</label>
|
1070 |
<comment></comment>
|
1071 |
<frontend_type>select</frontend_type>
|
1086 |
<show_in_store>1</show_in_store>
|
1087 |
</is_test_mode>
|
1088 |
</fields>
|
1089 |
+
</hipay_hosted>
|
1090 |
+
<hipay_hostedxtimes translate="label" module="hipay">
|
1091 |
+
<label>HiPay Fullservice Hosted Page Split Payment</label>
|
1092 |
<frontend_type>text</frontend_type>
|
1093 |
+
<sort_order>215</sort_order>
|
1094 |
<show_in_default>1</show_in_default>
|
1095 |
<show_in_website>1</show_in_website>
|
1096 |
<show_in_store>1</show_in_store>
|
1107 |
<title translate="label">
|
1108 |
<label>Title</label>
|
1109 |
<frontend_type>text</frontend_type>
|
1110 |
+
<sort_order>15</sort_order>
|
1111 |
<show_in_default>1</show_in_default>
|
1112 |
<show_in_website>1</show_in_website>
|
1113 |
<show_in_store>1</show_in_store>
|
1114 |
</title>
|
1115 |
+
<split_payment_profile translate="label">
|
1116 |
+
<label>Payment Profile</label>
|
1117 |
+
<frontend_type>multiselect</frontend_type>
|
1118 |
+
<source_model>hipay/source_paymentProfile::splitPaymentsToOptionArray</source_model>
|
1119 |
+
<sort_order>20</sort_order>
|
1120 |
+
<show_in_default>1</show_in_default>
|
1121 |
+
<show_in_website>1</show_in_website>
|
1122 |
+
<show_in_store>0</show_in_store>
|
1123 |
+
</split_payment_profile>
|
1124 |
<order_status_payment_accepted translate="label">
|
1125 |
<label>Order status when payment accepted</label>
|
1126 |
<frontend_type>select</frontend_type>
|
1284 |
<show_in_website>1</show_in_website>
|
1285 |
<show_in_store>1</show_in_store>
|
1286 |
</send_fraud_payment_email>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1287 |
<allow_use_oneclick translate="label">
|
1288 |
<label>Use Oneclick</label>
|
1289 |
<frontend_type>select</frontend_type>
|
1395 |
<show_in_store>1</show_in_store>
|
1396 |
</is_test_mode>
|
1397 |
</fields>
|
1398 |
+
</hipay_hostedxtimes>
|
1399 |
<hipay_ideal translate="label" module="hipay">
|
1400 |
<label>HiPay Fullservice iDeal</label>
|
1401 |
<frontend_type>text</frontend_type>
|
3708 |
</is_test_mode>
|
3709 |
</fields>
|
3710 |
</hipay_paypalapi>
|
3711 |
+
<hipay_sdd translate="label" module="hipay">
|
3712 |
+
<label>HiPay Fullservice SEPA Direct Debit</label>
|
3713 |
+
<frontend_type>text</frontend_type>
|
3714 |
+
<sort_order>200</sort_order>
|
3715 |
+
<show_in_default>1</show_in_default>
|
3716 |
+
<show_in_website>1</show_in_website>
|
3717 |
+
<show_in_store>1</show_in_store>
|
3718 |
+
<fields>
|
3719 |
+
<active translate="label">
|
3720 |
+
<label>Enabled</label>
|
3721 |
+
<frontend_type>select</frontend_type>
|
3722 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
3723 |
+
<sort_order>10</sort_order>
|
3724 |
+
<show_in_default>1</show_in_default>
|
3725 |
+
<show_in_website>1</show_in_website>
|
3726 |
+
<show_in_store>1</show_in_store>
|
3727 |
+
</active>
|
3728 |
+
<title translate="label">
|
3729 |
+
<label>Title</label>
|
3730 |
+
<frontend_type>text</frontend_type>
|
3731 |
+
<sort_order>20</sort_order>
|
3732 |
+
<show_in_default>1</show_in_default>
|
3733 |
+
<show_in_website>1</show_in_website>
|
3734 |
+
<show_in_store>1</show_in_store>
|
3735 |
+
</title>
|
3736 |
+
<order_status_payment_accepted translate="label">
|
3737 |
+
<label>Order status when payment accepted</label>
|
3738 |
+
<frontend_type>select</frontend_type>
|
3739 |
+
<source_model>hipay/source_order_status_accepted</source_model>
|
3740 |
+
<sort_order>23</sort_order>
|
3741 |
+
<show_in_default>1</show_in_default>
|
3742 |
+
<show_in_website>1</show_in_website>
|
3743 |
+
<show_in_store>0</show_in_store>
|
3744 |
+
</order_status_payment_accepted>
|
3745 |
+
<order_status_payment_refused translate="label">
|
3746 |
+
<label>Order status when payment refused</label>
|
3747 |
+
<frontend_type>select</frontend_type>
|
3748 |
+
<source_model>hipay/source_order_status_refused</source_model>
|
3749 |
+
<sort_order>24</sort_order>
|
3750 |
+
<show_in_default>1</show_in_default>
|
3751 |
+
<show_in_website>1</show_in_website>
|
3752 |
+
<show_in_store>0</show_in_store>
|
3753 |
+
</order_status_payment_refused>
|
3754 |
+
<order_status_payment_canceled translate="label">
|
3755 |
+
<label>Order status when payment canceled by customer</label>
|
3756 |
+
<frontend_type>select</frontend_type>
|
3757 |
+
<source_model>hipay/source_order_status_canceled</source_model>
|
3758 |
+
<sort_order>25</sort_order>
|
3759 |
+
<show_in_default>1</show_in_default>
|
3760 |
+
<show_in_website>1</show_in_website>
|
3761 |
+
<show_in_store>0</show_in_store>
|
3762 |
+
</order_status_payment_canceled>
|
3763 |
+
<hipay_status_validate_order translate="label">
|
3764 |
+
<label>Hipay status to validate order</label>
|
3765 |
+
<frontend_type>select</frontend_type>
|
3766 |
+
<source_model>hipay/source_order_hipayStatusValidate</source_model>
|
3767 |
+
<sort_order>26</sort_order>
|
3768 |
+
<show_in_default>1</show_in_default>
|
3769 |
+
<show_in_website>1</show_in_website>
|
3770 |
+
<show_in_store>0</show_in_store>
|
3771 |
+
</hipay_status_validate_order>
|
3772 |
+
<pending_redirect_page translate="label">
|
3773 |
+
<label>Redirect page pending status</label>
|
3774 |
+
<comment>Page to redirect when transaction is in pending status</comment>
|
3775 |
+
<frontend_type>select</frontend_type>
|
3776 |
+
<source_model>hipay/source_pendingredirect</source_model>
|
3777 |
+
<sort_order>27</sort_order>
|
3778 |
+
<show_in_default>1</show_in_default>
|
3779 |
+
<show_in_website>1</show_in_website>
|
3780 |
+
<show_in_store>0</show_in_store>
|
3781 |
+
</pending_redirect_page>
|
3782 |
+
<electronic_signature translate="label">
|
3783 |
+
<label>Enable the electronic signature of the mandate</label>
|
3784 |
+
<frontend_type>select</frontend_type>
|
3785 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
3786 |
+
<sort_order>60</sort_order>
|
3787 |
+
<show_in_default>1</show_in_default>
|
3788 |
+
<show_in_website>1</show_in_website>
|
3789 |
+
<show_in_store>0</show_in_store>
|
3790 |
+
</electronic_signature>
|
3791 |
+
<send_fraud_payment_email translate="label">
|
3792 |
+
<label>Send fraud payment email</label>
|
3793 |
+
<frontend_type>select</frontend_type>
|
3794 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
3795 |
+
<sort_order>63</sort_order>
|
3796 |
+
<show_in_default>1</show_in_default>
|
3797 |
+
<show_in_website>1</show_in_website>
|
3798 |
+
<show_in_store>1</show_in_store>
|
3799 |
+
</send_fraud_payment_email>
|
3800 |
+
<re_add_to_cart translate="label comment">
|
3801 |
+
<label>Add product to cart</label>
|
3802 |
+
<comment>Fill cart when payment canceled or refused</comment>
|
3803 |
+
<frontend_type>select</frontend_type>
|
3804 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
3805 |
+
<sort_order>95</sort_order>
|
3806 |
+
<show_in_default>1</show_in_default>
|
3807 |
+
<show_in_website>1</show_in_website>
|
3808 |
+
<show_in_store>0</show_in_store>
|
3809 |
+
</re_add_to_cart>
|
3810 |
+
<cancel_pending_order translate="label comment">
|
3811 |
+
<label>Cancel pending order</label>
|
3812 |
+
<comment>Cancel orders stayed in pending because customer not validated payment</comment>
|
3813 |
+
<frontend_type>select</frontend_type>
|
3814 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
3815 |
+
<sort_order>97</sort_order>
|
3816 |
+
<show_in_default>1</show_in_default>
|
3817 |
+
<show_in_website>1</show_in_website>
|
3818 |
+
<show_in_store>0</show_in_store>
|
3819 |
+
</cancel_pending_order>
|
3820 |
+
<send_fraud_payment_email translate="label">
|
3821 |
+
<label>Send fraud payment email</label>
|
3822 |
+
<frontend_type>select</frontend_type>
|
3823 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
3824 |
+
<sort_order>99</sort_order>
|
3825 |
+
<show_in_default>1</show_in_default>
|
3826 |
+
<show_in_website>1</show_in_website>
|
3827 |
+
<show_in_store>1</show_in_store>
|
3828 |
+
</send_fraud_payment_email>
|
3829 |
+
<allowspecific translate="label">
|
3830 |
+
<label>Payment from applicable countries</label>
|
3831 |
+
<frontend_type>allowspecific</frontend_type>
|
3832 |
+
<sort_order>100</sort_order>
|
3833 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
3834 |
+
<show_in_default>1</show_in_default>
|
3835 |
+
<show_in_website>1</show_in_website>
|
3836 |
+
<show_in_store>1</show_in_store>
|
3837 |
+
</allowspecific>
|
3838 |
+
<specificcountry translate="label">
|
3839 |
+
<label>Payment from Specific countries</label>
|
3840 |
+
<frontend_type>multiselect</frontend_type>
|
3841 |
+
<sort_order>110</sort_order>
|
3842 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
3843 |
+
<show_in_default>1</show_in_default>
|
3844 |
+
<show_in_website>1</show_in_website>
|
3845 |
+
<show_in_store>1</show_in_store>
|
3846 |
+
</specificcountry>
|
3847 |
+
<min_order_total translate="label">
|
3848 |
+
<label>Minimum Order Total</label>
|
3849 |
+
<frontend_type>text</frontend_type>
|
3850 |
+
<sort_order>120</sort_order>
|
3851 |
+
<show_in_default>1</show_in_default>
|
3852 |
+
<show_in_website>1</show_in_website>
|
3853 |
+
<show_in_store>1</show_in_store>
|
3854 |
+
</min_order_total>
|
3855 |
+
<max_order_total translate="label">
|
3856 |
+
<label>Maximum Order Total</label>
|
3857 |
+
<frontend_type>text</frontend_type>
|
3858 |
+
<sort_order>121</sort_order>
|
3859 |
+
<show_in_default>1</show_in_default>
|
3860 |
+
<show_in_website>1</show_in_website>
|
3861 |
+
<show_in_store>1</show_in_store>
|
3862 |
+
</max_order_total>
|
3863 |
+
<sort_order translate="label">
|
3864 |
+
<label>Sort Order</label>
|
3865 |
+
<frontend_type>text</frontend_type>
|
3866 |
+
<sort_order>130</sort_order>
|
3867 |
+
<show_in_default>1</show_in_default>
|
3868 |
+
<show_in_website>1</show_in_website>
|
3869 |
+
<show_in_store>1</show_in_store>
|
3870 |
+
</sort_order>
|
3871 |
+
<debug>
|
3872 |
+
<label>Enable debug log</label>
|
3873 |
+
<comment></comment>
|
3874 |
+
<frontend_type>select</frontend_type>
|
3875 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
3876 |
+
<sort_order>150</sort_order>
|
3877 |
+
<show_in_default>1</show_in_default>
|
3878 |
+
<show_in_website>1</show_in_website>
|
3879 |
+
<show_in_store>0</show_in_store>
|
3880 |
+
</debug>
|
3881 |
+
<is_test_mode translate="label comment">
|
3882 |
+
<label>Enable test mode</label>
|
3883 |
+
<comment></comment>
|
3884 |
+
<frontend_type>select</frontend_type>
|
3885 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
3886 |
+
<sort_order>200</sort_order>
|
3887 |
+
<show_in_default>1</show_in_default>
|
3888 |
+
<show_in_website>1</show_in_website>
|
3889 |
+
<show_in_store>1</show_in_store>
|
3890 |
+
</is_test_mode>
|
3891 |
+
</fields>
|
3892 |
+
</hipay_sdd>
|
3893 |
</groups>
|
3894 |
</payment>
|
3895 |
</sections>
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-install-0.1.0.php
CHANGED
@@ -6,8 +6,8 @@ $installer = $this;
|
|
6 |
|
7 |
$installer->startSetup();
|
8 |
|
9 |
-
$currentVersion = Mage::getVersion();
|
10 |
-
if (version_compare($currentVersion, '1.4.2') == 1)
|
11 |
{
|
12 |
|
13 |
$statusTable = $installer->getTable('sales/order_status');
|
@@ -26,19 +26,19 @@ if (version_compare($currentVersion, '1.4.2') == 1)
|
|
26 |
|
27 |
$installer->getConnection()->insertArray($statusTable, array('status', 'label'), $data);
|
28 |
//Insert relation between state and status
|
29 |
-
$data[0] = array(
|
30 |
-
'status' => $status,
|
31 |
-
'state' => $code,
|
32 |
-
'is_default'=> 0,
|
33 |
-
);
|
34 |
-
|
35 |
-
$installer->getConnection()->insertArray(
|
36 |
-
$statusStateTable,
|
37 |
-
array('status', 'state', 'is_default'),
|
38 |
-
$data
|
39 |
);
|
40 |
-
}
|
41 |
-
|
42 |
|
43 |
|
44 |
$installer->endSetup();
|
6 |
|
7 |
$installer->startSetup();
|
8 |
|
9 |
+
$currentVersion = Mage::getVersion();
|
10 |
+
if (version_compare($currentVersion, '1.4.2') == 1)
|
11 |
{
|
12 |
|
13 |
$statusTable = $installer->getTable('sales/order_status');
|
26 |
|
27 |
$installer->getConnection()->insertArray($statusTable, array('status', 'label'), $data);
|
28 |
//Insert relation between state and status
|
29 |
+
$data[0] = array(
|
30 |
+
'status' => $status,
|
31 |
+
'state' => $code,
|
32 |
+
'is_default'=> 0,
|
33 |
+
);
|
34 |
+
|
35 |
+
$installer->getConnection()->insertArray(
|
36 |
+
$statusStateTable,
|
37 |
+
array('status', 'state', 'is_default'),
|
38 |
+
$data
|
39 |
);
|
40 |
+
}
|
41 |
+
|
42 |
|
43 |
|
44 |
$installer->endSetup();
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-0.1.0-0.1.1.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-0.1.1-0.1.2.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-0.1.2-0.1.3.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-0.1.4-0.1.5.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-1.0.6-1.0.7.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-1.0.7-1.0.8.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-1.0.8-1.0.9.php
CHANGED
File without changes
|
app/code/community/Allopass/Hipay/sql/allopass_hipay_setup/mysql4-upgrade-1.0.9-1.1.0.php
CHANGED
File without changes
|
app/design/adminhtml/default/default/layout/hipay.xml
CHANGED
File without changes
|
app/design/adminhtml/default/default/template/hipay/form/cc.phtml
CHANGED
@@ -1,28 +1,40 @@
|
|
1 |
-
<?php
|
2 |
-
|
|
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
5 |
-
|
6 |
-
|
7 |
-
<div class="input-box">
|
8 |
-
<label for="<?php echo $_code ?>_cc_owner" class="required"><em>*</em><?php echo $this->__('Name on Card') ?></label>
|
9 |
-
<input type="text" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" id="<?php echo $_code ?>_cc_owner" name="payment[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>" />
|
10 |
-
</div>
|
11 |
-
</li>
|
12 |
-
*/ ?>
|
13 |
-
<li>
|
14 |
<?php if(count($this->getCcAvailableTypes()) == 1) :?>
|
15 |
<label for="<?php echo $_code ?>_cc_type" ><?php echo $this->__('Credit Card Type') ?>:
|
16 |
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
17 |
<?php echo $_typeName ?>
|
18 |
-
<input value="<?php echo $_typeCode ?>" type="hidden" name="payment[
|
19 |
<?php endforeach ?>
|
20 |
</label>
|
21 |
<?php else:?>
|
22 |
-
|
23 |
<div class="input-box">
|
24 |
-
|
25 |
-
<select id="<?php echo $_code ?>_cc_type" name="payment[
|
26 |
<option value=""><?php echo $this->__('--Please Select--')?></option>
|
27 |
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
28 |
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
@@ -33,38 +45,48 @@
|
|
33 |
</div>
|
34 |
<?php endif;?>
|
35 |
</li>
|
|
|
36 |
<li>
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
<div class="input-box">
|
39 |
-
|
40 |
-
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text validate-cc-number validate-cc-type" value="<?php echo $this->getInfoData('cc_number')?>" />
|
41 |
</div>
|
42 |
</li>
|
43 |
<li id="<?php echo $_code ?>_cc_type_exp_div">
|
|
|
44 |
<div class="input-box">
|
45 |
-
|
46 |
-
<select id="<?php echo $_code ?>_expiration" name="payment[
|
47 |
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
48 |
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
49 |
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
50 |
<?php endforeach ?>
|
51 |
</select>
|
|
|
|
|
52 |
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
53 |
-
<select id="<?php echo $_code ?>_expiration_yr" name="payment[
|
54 |
<?php foreach ($this->getCcYears() as $k=>$v): ?>
|
55 |
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
56 |
<?php endforeach ?>
|
57 |
</select>
|
|
|
58 |
</div>
|
59 |
</li>
|
60 |
<?php echo $this->getChildHtml() ?>
|
61 |
<?php if($this->hasVerification()): ?>
|
62 |
<li id="<?php echo $_code ?>_cc_type_cvv_div">
|
63 |
-
|
64 |
<div class="input-box">
|
65 |
-
<label for="<?php echo $_code ?>_cc_cid"><?php echo $this->__('Card Verification Number') ?> <span class="required">*</span></label>
|
66 |
<div class="v-fix">
|
67 |
-
<input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="input-text cvv required-entry validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[
|
68 |
</div>
|
69 |
<a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
|
70 |
</div>
|
@@ -72,53 +94,38 @@
|
|
72 |
<?php endif; ?>
|
73 |
|
74 |
</ul>
|
75 |
-
<?php if($this->allowSplitPayment()) : ?>
|
76 |
-
<ul class="form-list" id="splitpayment_card_payment_form_<?php echo $_code ?>" >
|
77 |
-
<li>
|
78 |
-
<div class="input-box">
|
79 |
-
<select id="<?php echo $_code ?>_split_payment" name="payment[split_payment_id]">
|
80 |
-
<option value=""><?php echo $this->__('-- Please Select --')?></option>
|
81 |
-
<?php foreach ($this->getSplitPaymentProfiles() as $profile) : ?>
|
82 |
-
<option value="<?php echo $profile->getId()?>"><?php echo $profile->getName()?></option>
|
83 |
-
<?php endforeach;?>
|
84 |
-
</select>
|
85 |
-
<label style="float: none;" for="<?php echo $_code ?>_split_payment"><?php echo $this->__('Split Payment') ?></label>
|
86 |
-
</div>
|
87 |
-
</li>
|
88 |
-
</ul>
|
89 |
-
<?php endif; ?>
|
90 |
<?php if ($this->oneClickIsAllowed()) : ?>
|
91 |
<ul class="form-list" id="oneclick_card_payment_form_<?php echo $_code ?>">
|
92 |
<li>
|
93 |
|
94 |
-
<?php if (!$this->
|
95 |
<div class="input-box">
|
96 |
-
<input id="<?php echo $_code ?>_create_alias_oneclick" value="create_oneclick" type="checkbox" name="payment[
|
97 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record your card data for a next buy.') ?></label>
|
98 |
</div>
|
99 |
-
<?php
|
100 |
<script type="text/javascript">$('card_payment_form_<?php echo $_code ?>').hide();</script>
|
|
|
101 |
<div class="input-box">
|
102 |
-
<input id="<?php echo $_code ?>_use_alias_oneclick" value="use_oneclick" checked="checked" type="radio" name="payment[
|
103 |
<label style="float: none;" for="<?php echo $_code ?>_use_alias_oneclick"><?php echo $this->__('Use my recorded card') ?></label>
|
104 |
</div>
|
105 |
-
<div class="input-box info-card">
|
106 |
-
<label><?php echo $this->__('Actual card') ?> :</label>
|
107 |
-
<span><?php echo $this->getCustomer()->getHipayCcNumberEnc() ?></span>
|
108 |
-
</div>
|
109 |
-
<div class="input-box info-card">
|
110 |
-
<label><?php echo $this->__('Expiration date') ?> : <?php echo $this->getCustomer()->getHipayCcExpDate() ?></label>
|
111 |
-
</div>
|
112 |
-
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
<div class="input-box">
|
116 |
-
<input id="<?php echo $_code ?>_create_alias_oneclick" type="radio" name="payment[
|
117 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record new card data') ?></label>
|
118 |
</div>
|
119 |
|
120 |
<div class="input-box">
|
121 |
-
<input id="<?php echo $_code ?>_not_oneclick" type="radio" name="payment[
|
122 |
<label style="float: none;" for="<?php echo $_code ?>_not_oneclick"><?php echo $this->__('Not use record card data') ?></label>
|
123 |
</div>
|
124 |
|
@@ -126,6 +133,7 @@
|
|
126 |
</li>
|
127 |
|
128 |
</ul>
|
|
|
129 |
<script type="text/javascript">
|
130 |
//<![CDATA[
|
131 |
|
@@ -140,11 +148,14 @@
|
|
140 |
};
|
141 |
|
142 |
Event.observe($('<?php echo $_code ?>_cc_type'), 'change', ToogleOneclick<?php echo $_code ?>);
|
143 |
-
|
|
|
|
|
|
|
144 |
//]]>
|
145 |
</script>
|
146 |
<?php endif; ?>
|
147 |
-
|
148 |
<script type="text/javascript">
|
149 |
//<![CDATA[
|
150 |
|
@@ -161,8 +172,8 @@
|
|
161 |
|
162 |
Event.observe($('<?php echo $_code ?>_cc_type'), 'change', ToogleCvn<?php echo $_code ?>);
|
163 |
ToogleCvn<?php echo $_code ?>();
|
|
|
164 |
//]]>
|
165 |
</script>
|
166 |
-
|
167 |
-
</div>
|
168 |
|
1 |
+
<?php
|
2 |
+
$_code=$this->getMethodCode();
|
3 |
+
$_cards = $this->getCards();
|
4 |
|
5 |
+
?>
|
6 |
+
<div id="payment_form_<?php echo $_code ?>" style="display:none;">
|
7 |
+
<?php if($this->allowSplitPayment()) : ?>
|
8 |
+
<ul class="form-list" id="splitpayment_card_payment_form_<?php echo $_code ?>" >
|
9 |
+
<li>
|
10 |
+
<div class="input-box">
|
11 |
+
<label style="float: none;" for="<?php echo $_code ?>_split_payment"><?php echo $this->__('Split your Payment') ?></label><br />
|
12 |
+
<select id="<?php echo $_code ?>_split_payment" name="payment[<?php echo $_code ?>_split_payment_id]">
|
13 |
+
<!-- <option value=""><?php echo $this->__('-- Please select your split payment --')?></option> -->
|
14 |
+
<?php foreach ($this->getSplitPaymentProfiles() as $profile) : ?>
|
15 |
+
<option value="<?php echo $profile->getId()?>"><?php echo $profile->getName()?></option>
|
16 |
+
<?php endforeach;?>
|
17 |
+
</select>
|
18 |
+
</div>
|
19 |
+
</li>
|
20 |
+
</ul>
|
21 |
+
<br />
|
22 |
+
<?php endif; ?>
|
23 |
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
24 |
+
|
25 |
+
<li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<?php if(count($this->getCcAvailableTypes()) == 1) :?>
|
27 |
<label for="<?php echo $_code ?>_cc_type" ><?php echo $this->__('Credit Card Type') ?>:
|
28 |
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
29 |
<?php echo $_typeName ?>
|
30 |
+
<input id="<?php echo $_code ?>_cc_type" value="<?php echo $_typeCode ?>" type="hidden" name="payment[<?php echo $_code ?>_cc_type]" />
|
31 |
<?php endforeach ?>
|
32 |
</label>
|
33 |
<?php else:?>
|
34 |
+
<label for="<?php echo $_code ?>_cc_type"><?php echo $this->__('Credit Card Type') ?><span class="required">*</span></label>
|
35 |
<div class="input-box">
|
36 |
+
|
37 |
+
<select id="<?php echo $_code ?>_cc_type" name="payment[<?php echo $_code ?>_cc_type]" class="required-entry validate-cc-type-select">
|
38 |
<option value=""><?php echo $this->__('--Please Select--')?></option>
|
39 |
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
40 |
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
45 |
</div>
|
46 |
<?php endif;?>
|
47 |
</li>
|
48 |
+
<?php if(Mage::getStoreConfigFlag('payment/'.$_code.'/display_card_owner')) : ?>
|
49 |
<li>
|
50 |
+
<label for="<?php echo $_code ?>_cc_owner"><?php echo $this->__('Name on Card') ?></label>
|
51 |
+
<div class="input-box">
|
52 |
+
<input type="text" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" id="<?php echo $_code ?>_cc_owner" name="payment[<?php echo $_code ?>_cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>" />
|
53 |
+
</div>
|
54 |
+
</li>
|
55 |
+
<?php endif; ?>
|
56 |
+
<li>
|
57 |
+
<label for="<?php echo $_code ?>_cc_number" ><?php echo $this->__('Credit Card Number') ?><span class="required">*</span></label>
|
58 |
<div class="input-box">
|
59 |
+
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[<?php echo $_code ?>_cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text validate-cc-number validate-cc-type" value="<?php echo $this->getInfoData('cc_number')?>" />
|
|
|
60 |
</div>
|
61 |
</li>
|
62 |
<li id="<?php echo $_code ?>_cc_type_exp_div">
|
63 |
+
<label for="<?php echo $_code ?>_expiration" ><?php echo $this->__('Expiration Date') ?><span class="required">*</span></label>
|
64 |
<div class="input-box">
|
65 |
+
<div class="v-fix">
|
66 |
+
<select id="<?php echo $_code ?>_expiration" name="payment[<?php echo $_code ?>_cc_exp_month]" class="month validate-cc-exp validate-cc-exp-split required-entry">
|
67 |
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
68 |
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
69 |
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
70 |
<?php endforeach ?>
|
71 |
</select>
|
72 |
+
</div>
|
73 |
+
<div class="v-fix">
|
74 |
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
75 |
+
<select id="<?php echo $_code ?>_expiration_yr" name="payment[<?php echo $_code ?>_cc_exp_year]" class="year required-entry">
|
76 |
<?php foreach ($this->getCcYears() as $k=>$v): ?>
|
77 |
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
78 |
<?php endforeach ?>
|
79 |
</select>
|
80 |
+
</div>
|
81 |
</div>
|
82 |
</li>
|
83 |
<?php echo $this->getChildHtml() ?>
|
84 |
<?php if($this->hasVerification()): ?>
|
85 |
<li id="<?php echo $_code ?>_cc_type_cvv_div">
|
86 |
+
<label for="<?php echo $_code ?>_cc_cid" ><?php echo $this->__('Card Verification Number') ?><span class="required">*</span></label>
|
87 |
<div class="input-box">
|
|
|
88 |
<div class="v-fix">
|
89 |
+
<input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="input-text cvv required-entry validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[<?php echo $_code ?>_cc_cid]" value="<?php echo trim($this->getInfoData('cc_cid'))?>" />
|
90 |
</div>
|
91 |
<a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
|
92 |
</div>
|
94 |
<?php endif; ?>
|
95 |
|
96 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
<?php if ($this->oneClickIsAllowed()) : ?>
|
98 |
<ul class="form-list" id="oneclick_card_payment_form_<?php echo $_code ?>">
|
99 |
<li>
|
100 |
|
101 |
+
<?php if (!$this->getCustomerHasCard()) :?>
|
102 |
<div class="input-box">
|
103 |
+
<input id="<?php echo $_code ?>_create_alias_oneclick" value="create_oneclick" type="checkbox" name="payment[<?php echo $_code ?>_oneclick]" />
|
104 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record your card data for a next buy.') ?></label>
|
105 |
</div>
|
106 |
+
<?php else :?>
|
107 |
<script type="text/javascript">$('card_payment_form_<?php echo $_code ?>').hide();</script>
|
108 |
+
|
109 |
<div class="input-box">
|
110 |
+
<input id="<?php echo $_code ?>_use_alias_oneclick" value="use_oneclick" checked="checked" type="radio" name="payment[<?php echo $_code ?>_oneclick]" onclick="$('card_payment_form_<?php echo $_code ?>').hide();" />
|
111 |
<label style="float: none;" for="<?php echo $_code ?>_use_alias_oneclick"><?php echo $this->__('Use my recorded card') ?></label>
|
112 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
|
114 |
+
<div class="input-box info-card">
|
115 |
+
<select id="<?php echo $_code ?>_oneclick_selected_card" name="payment[<?php echo $_code ?>_oneclick_card]" >
|
116 |
+
<?php foreach ($_cards as $card):?>
|
117 |
+
<option value="<?php echo $card->getId()?>"><?php echo $card->getName()?></option>
|
118 |
+
<?php endforeach;?>
|
119 |
+
</select>
|
120 |
+
</div>
|
121 |
|
122 |
<div class="input-box">
|
123 |
+
<input id="<?php echo $_code ?>_create_alias_oneclick" type="radio" name="payment[<?php echo $_code ?>_oneclick]" value="create_oneclick" onclick="$('card_payment_form_<?php echo $_code ?>').show();"/>
|
124 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record new card data') ?></label>
|
125 |
</div>
|
126 |
|
127 |
<div class="input-box">
|
128 |
+
<input id="<?php echo $_code ?>_not_oneclick" type="radio" name="payment[<?php echo $_code ?>_oneclick]" value="not_oneclick" onclick="$('card_payment_form_<?php echo $_code ?>').show();" />
|
129 |
<label style="float: none;" for="<?php echo $_code ?>_not_oneclick"><?php echo $this->__('Not use record card data') ?></label>
|
130 |
</div>
|
131 |
|
133 |
</li>
|
134 |
|
135 |
</ul>
|
136 |
+
<br />
|
137 |
<script type="text/javascript">
|
138 |
//<![CDATA[
|
139 |
|
148 |
};
|
149 |
|
150 |
Event.observe($('<?php echo $_code ?>_cc_type'), 'change', ToogleOneclick<?php echo $_code ?>);
|
151 |
+
document.observe("dom:loaded", function() {
|
152 |
+
ToogleOneclick<?php echo $_code ?>();
|
153 |
+
});
|
154 |
+
|
155 |
//]]>
|
156 |
</script>
|
157 |
<?php endif; ?>
|
158 |
+
|
159 |
<script type="text/javascript">
|
160 |
//<![CDATA[
|
161 |
|
172 |
|
173 |
Event.observe($('<?php echo $_code ?>_cc_type'), 'change', ToogleCvn<?php echo $_code ?>);
|
174 |
ToogleCvn<?php echo $_code ?>();
|
175 |
+
|
176 |
//]]>
|
177 |
</script>
|
178 |
+
</div>
|
|
|
179 |
|
app/design/adminhtml/default/default/template/hipay/form/hosted.phtml
CHANGED
@@ -1,33 +1,55 @@
|
|
1 |
-
<?php
|
|
|
|
|
|
|
2 |
<div id="payment_form_<?php echo $_code ?>" style="display:none;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<?php if ($this->oneClickIsAllowed()) : ?>
|
4 |
<ul class="form-list" id="oneclick_hosted_payment_form_<?php echo $_code ?>">
|
5 |
<li>
|
6 |
|
7 |
-
|
8 |
<div class="input-box">
|
9 |
-
<input id="<?php echo $_code ?>_create_alias_oneclick" value="create_oneclick" type="checkbox" name="payment[
|
10 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record your card data for a next buy.') ?></label>
|
11 |
</div>
|
12 |
-
<?php
|
|
|
13 |
<div class="input-box">
|
14 |
-
<input id="<?php echo $_code ?>_use_alias_oneclick" value="use_oneclick" checked="checked"
|
15 |
<label style="float: none;" for="<?php echo $_code ?>_use_alias_oneclick"><?php echo $this->__('Use my recorded card') ?></label>
|
16 |
</div>
|
|
|
17 |
<div class="input-box info-card">
|
18 |
-
<
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
24 |
<div class="input-box">
|
25 |
-
<input id="<?php echo $_code ?>_create_alias_oneclick" type="radio" name="payment[
|
26 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record new card data') ?></label>
|
27 |
</div>
|
28 |
|
29 |
<div class="input-box">
|
30 |
-
<input id="<?php echo $_code ?>_not_oneclick" type="radio" name="payment[
|
31 |
<label style="float: none;" for="<?php echo $_code ?>_not_oneclick"><?php echo $this->__('Not use record card data') ?></label>
|
32 |
</div>
|
33 |
|
@@ -35,7 +57,6 @@
|
|
35 |
</li>
|
36 |
|
37 |
</ul>
|
|
|
38 |
<?php endif; ?>
|
39 |
-
<?php echo $this->__('You will be redirect to payment page after submit order.')?>
|
40 |
-
<!-- @TODO MANAGE Iframe -->
|
41 |
</div>
|
1 |
+
<?php
|
2 |
+
$_code=$this->getMethodCode();
|
3 |
+
$_cards = $this->getCards();
|
4 |
+
?>
|
5 |
<div id="payment_form_<?php echo $_code ?>" style="display:none;">
|
6 |
+
<?php if($this->allowSplitPayment()) : ?>
|
7 |
+
<ul class="form-list" id="splitpayment_card_payment_form_<?php echo $_code ?>" >
|
8 |
+
<li>
|
9 |
+
<div class="input-box">
|
10 |
+
<label style="float: none;" for="<?php echo $_code ?>_split_payment"><?php echo $this->__('Split your Payment') ?></label><br />
|
11 |
+
<select id="<?php echo $_code ?>_split_payment" name="payment[<?php echo $_code ?>_split_payment_id]">
|
12 |
+
<!-- <option value=""><?php echo $this->__('-- Please select your split payment --')?></option> -->
|
13 |
+
<?php foreach ($this->getSplitPaymentProfiles() as $profile) : ?>
|
14 |
+
<option value="<?php echo $profile->getId()?>"><?php echo $profile->getName()?></option>
|
15 |
+
<?php endforeach;?>
|
16 |
+
</select>
|
17 |
+
</div>
|
18 |
+
</li>
|
19 |
+
</ul>
|
20 |
+
<br />
|
21 |
+
<?php endif; ?>
|
22 |
<?php if ($this->oneClickIsAllowed()) : ?>
|
23 |
<ul class="form-list" id="oneclick_hosted_payment_form_<?php echo $_code ?>">
|
24 |
<li>
|
25 |
|
26 |
+
<?php if (!$this->getCustomerHasCard()) :?>
|
27 |
<div class="input-box">
|
28 |
+
<input id="<?php echo $_code ?>_create_alias_oneclick" value="create_oneclick" type="checkbox" name="payment[<?php echo $_code ?>_oneclick]" />
|
29 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record your card data for a next buy.') ?></label>
|
30 |
</div>
|
31 |
+
<?php else :?>
|
32 |
+
|
33 |
<div class="input-box">
|
34 |
+
<input id="<?php echo $_code ?>_use_alias_oneclick" value="use_oneclick" checked="checked" type="radio" name="payment[<?php echo $_code ?>_oneclick]" checked/>
|
35 |
<label style="float: none;" for="<?php echo $_code ?>_use_alias_oneclick"><?php echo $this->__('Use my recorded card') ?></label>
|
36 |
</div>
|
37 |
+
|
38 |
<div class="input-box info-card">
|
39 |
+
<select id="<?php echo $_code ?>_oneclick_selected_card" name="payment[<?php echo $_code ?>_oneclick_card]" >
|
40 |
+
<?php foreach ($_cards as $card):?>
|
41 |
+
<option value="<?php echo $card->getId()?>"><?php echo $card->getName()?></option>
|
42 |
+
<?php endforeach;?>
|
43 |
+
</select>
|
44 |
+
</div>
|
45 |
+
|
46 |
<div class="input-box">
|
47 |
+
<input id="<?php echo $_code ?>_create_alias_oneclick" type="radio" name="payment[<?php echo $_code ?>_oneclick]" value="create_oneclick"/>
|
48 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record new card data') ?></label>
|
49 |
</div>
|
50 |
|
51 |
<div class="input-box">
|
52 |
+
<input id="<?php echo $_code ?>_not_oneclick" type="radio" name="payment[<?php echo $_code ?>_oneclick]" value="not_oneclick" />
|
53 |
<label style="float: none;" for="<?php echo $_code ?>_not_oneclick"><?php echo $this->__('Not use record card data') ?></label>
|
54 |
</div>
|
55 |
|
57 |
</li>
|
58 |
|
59 |
</ul>
|
60 |
+
<br />
|
61 |
<?php endif; ?>
|
|
|
|
|
62 |
</div>
|
app/design/adminhtml/default/default/template/hipay/info/cc.phtml
CHANGED
File without changes
|
app/design/adminhtml/default/default/template/hipay/info/hosted.phtml
CHANGED
File without changes
|
app/design/adminhtml/default/default/template/hipay/system/config/form/field/rules.phtml
CHANGED
File without changes
|
app/design/frontend/base/default/layout/hipay.xml
CHANGED
File without changes
|
app/design/frontend/base/default/template/hipay/card/account.phtml
CHANGED
File without changes
|
app/design/frontend/base/default/template/hipay/card/form/edit.phtml
CHANGED
File without changes
|
app/design/frontend/base/default/template/hipay/checkout/pending.phtml
CHANGED
File without changes
|
app/design/frontend/base/default/template/hipay/form/cc.phtml
CHANGED
@@ -9,8 +9,8 @@ $_cards = $this->getCards();
|
|
9 |
<li>
|
10 |
<div class="input-box">
|
11 |
<label style="float: none;" for="<?php echo $_code ?>_split_payment"><?php echo $this->__('Split your Payment') ?></label><br />
|
12 |
-
<select id="<?php echo $_code ?>_split_payment" name="payment[
|
13 |
-
<option value=""><?php echo $this->__('-- Please select your split payment --')?></option>
|
14 |
<?php foreach ($this->getSplitPaymentProfiles() as $profile) : ?>
|
15 |
<option value="<?php echo $profile->getId()?>"><?php echo $profile->getName()?></option>
|
16 |
<?php endforeach;?>
|
@@ -20,6 +20,7 @@ $_cards = $this->getCards();
|
|
20 |
</ul>
|
21 |
<br />
|
22 |
<?php endif; ?>
|
|
|
23 |
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
24 |
|
25 |
<li>
|
@@ -27,14 +28,14 @@ $_cards = $this->getCards();
|
|
27 |
<label for="<?php echo $_code ?>_cc_type" ><?php echo $this->__('Credit Card Type') ?>:
|
28 |
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
29 |
<?php echo $_typeName ?>
|
30 |
-
<input id="<?php echo $_code ?>_cc_type" value="<?php echo $_typeCode ?>" type="hidden" name="payment[
|
31 |
<?php endforeach ?>
|
32 |
</label>
|
33 |
<?php else:?>
|
34 |
<label for="<?php echo $_code ?>_cc_type" class="required"><em>*</em><?php echo $this->__('Credit Card Type') ?></label>
|
35 |
<div class="input-box">
|
36 |
|
37 |
-
<select id="<?php echo $_code ?>_cc_type" name="payment[
|
38 |
<option value=""><?php echo $this->__('--Please Select--')?></option>
|
39 |
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
40 |
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
@@ -49,21 +50,21 @@ $_cards = $this->getCards();
|
|
49 |
<li>
|
50 |
<label for="<?php echo $_code ?>_cc_owner" class="required"><em>*</em><?php echo $this->__('Name on Card') ?></label>
|
51 |
<div class="input-box">
|
52 |
-
<input type="text" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" id="<?php echo $_code ?>_cc_owner" name="payment[
|
53 |
</div>
|
54 |
</li>
|
55 |
<?php endif; ?>
|
56 |
<li>
|
57 |
<label for="<?php echo $_code ?>_cc_number" class="required"><em>*</em><?php echo $this->__('Credit Card Number') ?></label>
|
58 |
<div class="input-box">
|
59 |
-
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[
|
60 |
</div>
|
61 |
</li>
|
62 |
<li id="<?php echo $_code ?>_cc_type_exp_div">
|
63 |
<label for="<?php echo $_code ?>_expiration" class="required"><em>*</em><?php echo $this->__('Expiration Date') ?></label>
|
64 |
<div class="input-box">
|
65 |
<div class="v-fix">
|
66 |
-
<select id="<?php echo $_code ?>_expiration" name="payment[
|
67 |
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
68 |
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
69 |
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
@@ -72,7 +73,7 @@ $_cards = $this->getCards();
|
|
72 |
</div>
|
73 |
<div class="v-fix">
|
74 |
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
75 |
-
<select id="<?php echo $_code ?>_expiration_yr" name="payment[
|
76 |
<?php foreach ($this->getCcYears() as $k=>$v): ?>
|
77 |
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
78 |
<?php endforeach ?>
|
@@ -86,7 +87,7 @@ $_cards = $this->getCards();
|
|
86 |
<label for="<?php echo $_code ?>_cc_cid" class="required"><em>*</em><?php echo $this->__('Card Verification Number') ?></label>
|
87 |
<div class="input-box">
|
88 |
<div class="v-fix">
|
89 |
-
<input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="input-text cvv required-entry validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[
|
90 |
</div>
|
91 |
<a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
|
92 |
</div>
|
@@ -100,42 +101,32 @@ $_cards = $this->getCards();
|
|
100 |
|
101 |
<?php if (!$this->getCustomerHasCard()) :?>
|
102 |
<div class="input-box">
|
103 |
-
<input id="<?php echo $_code ?>_create_alias_oneclick" value="create_oneclick" type="checkbox" name="payment[
|
104 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record your card data for a next buy.') ?></label>
|
105 |
</div>
|
106 |
<?php else :?>
|
107 |
<script type="text/javascript">$('card_payment_form_<?php echo $_code ?>').hide();</script>
|
108 |
|
109 |
<div class="input-box">
|
110 |
-
<input id="<?php echo $_code ?>_use_alias_oneclick" value="use_oneclick" checked="checked" type="radio" name="payment[
|
111 |
<label style="float: none;" for="<?php echo $_code ?>_use_alias_oneclick"><?php echo $this->__('Use my recorded card') ?></label>
|
112 |
</div>
|
113 |
|
114 |
<div class="input-box info-card">
|
115 |
-
<select id="<?php echo $_code ?>_oneclick_selected_card" name="payment[
|
116 |
<?php foreach ($_cards as $card):?>
|
117 |
<option value="<?php echo $card->getId()?>"><?php echo $card->getName()?></option>
|
118 |
<?php endforeach;?>
|
119 |
</select>
|
120 |
-
</div>
|
121 |
-
|
122 |
-
<!-- <div class="input-box info-card">
|
123 |
-
<label><?php echo $this->__('Actual card') ?> :</label>
|
124 |
-
<span><?php echo $this->getCustomer()->getHipayCcNumberEnc() ?></span>
|
125 |
-
</div>
|
126 |
-
<div class="input-box info-card">
|
127 |
-
<label><?php echo $this->__('Expiration date') ?> : <?php echo $this->getCustomer()->getHipayCcExpDate() ?></label>
|
128 |
-
</div>-->
|
129 |
-
|
130 |
-
|
131 |
|
132 |
<div class="input-box">
|
133 |
-
<input id="<?php echo $_code ?>_create_alias_oneclick" type="radio" name="payment[
|
134 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record new card data') ?></label>
|
135 |
</div>
|
136 |
|
137 |
<div class="input-box">
|
138 |
-
<input id="<?php echo $_code ?>_not_oneclick" type="radio" name="payment[
|
139 |
<label style="float: none;" for="<?php echo $_code ?>_not_oneclick"><?php echo $this->__('Not use record card data') ?></label>
|
140 |
</div>
|
141 |
|
@@ -165,7 +156,7 @@ $_cards = $this->getCards();
|
|
165 |
//]]>
|
166 |
</script>
|
167 |
<?php endif; ?>
|
168 |
-
<div id="
|
169 |
<?php echo $this->__('You will be debit of amount %s only after submit order.',Mage::app()->getStore()->getBaseCurrency()->format($this->getQuote()->getGrandTotal(), array(), true))?>
|
170 |
</div>
|
171 |
<script type="text/javascript">
|
@@ -184,19 +175,20 @@ $_cards = $this->getCards();
|
|
184 |
|
185 |
Event.observe($('<?php echo $_code ?>_cc_type'), 'change', ToogleCvn<?php echo $_code ?>);
|
186 |
ToogleCvn<?php echo $_code ?>();
|
187 |
-
|
|
|
188 |
var UpdateDebitAmount<?php echo $_code ?> = function(){
|
189 |
|
190 |
new Ajax.Request('<?php echo Mage::getUrl('hipay/cc/updateDebitAmount') ?>', {
|
191 |
evalScripts: true,
|
192 |
-
parameters: {'payment_profile_id': $('<?php echo $_code ?>_split_payment').value},
|
193 |
onSuccess: function(transport) {
|
194 |
|
195 |
if (transport.responseText.isJSON()) {
|
196 |
var response = transport.responseText.evalJSON();
|
197 |
|
198 |
if (response.error) {
|
199 |
-
$('
|
200 |
Validation.add('validate-cc-exp-split', 'Incorrect credit card expiration date.', function(v,elm) {
|
201 |
return true;
|
202 |
});
|
@@ -210,13 +202,13 @@ $_cards = $this->getCards();
|
|
210 |
var dateArr = splitPayment[splitPayment.length - 1]['dateToPay'].split("-");
|
211 |
|
212 |
Validation.add('validate-cc-exp-split', 'Incorrect credit card expiration date.', function(v,elm) {
|
213 |
-
|
214 |
var ccExpMonth = v;
|
215 |
var ccExpYear = $(elm.id.substr(0,elm.id.indexOf('_expiration')) + '_expiration_yr').value;
|
216 |
var currentTime = new Date();
|
217 |
var currentMonth = parseInt(dateArr[1]);//currentTime.getMonth() + 1;
|
218 |
var currentYear = parseInt(dateArr[0])//currentTime.getFullYear();
|
219 |
-
|
220 |
if (ccExpMonth < currentMonth && ccExpYear == currentYear) {
|
221 |
return false;
|
222 |
}
|
@@ -224,7 +216,7 @@ $_cards = $this->getCards();
|
|
224 |
});
|
225 |
|
226 |
//Update HTMl
|
227 |
-
$('
|
228 |
decorateTable('split-payment-cc-table')
|
229 |
|
230 |
}
|
@@ -237,9 +229,71 @@ $_cards = $this->getCards();
|
|
237 |
};
|
238 |
|
239 |
Event.observe($('<?php echo $_code ?>_split_payment'), 'change', UpdateDebitAmount<?php echo $_code ?>);
|
240 |
-
|
|
|
241 |
//]]>
|
242 |
</script>
|
|
|
|
|
243 |
|
244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
|
9 |
<li>
|
10 |
<div class="input-box">
|
11 |
<label style="float: none;" for="<?php echo $_code ?>_split_payment"><?php echo $this->__('Split your Payment') ?></label><br />
|
12 |
+
<select id="<?php echo $_code ?>_split_payment" name="payment[<?php echo $_code ?>_split_payment_id]">
|
13 |
+
<!-- <option value=""><?php echo $this->__('-- Please select your split payment --')?></option> -->
|
14 |
<?php foreach ($this->getSplitPaymentProfiles() as $profile) : ?>
|
15 |
<option value="<?php echo $profile->getId()?>"><?php echo $profile->getName()?></option>
|
16 |
<?php endforeach;?>
|
20 |
</ul>
|
21 |
<br />
|
22 |
<?php endif; ?>
|
23 |
+
<?php if($_code != "hipay_sdd") : ?>
|
24 |
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
25 |
|
26 |
<li>
|
28 |
<label for="<?php echo $_code ?>_cc_type" ><?php echo $this->__('Credit Card Type') ?>:
|
29 |
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
30 |
<?php echo $_typeName ?>
|
31 |
+
<input id="<?php echo $_code ?>_cc_type" value="<?php echo $_typeCode ?>" type="hidden" name="payment[<?php echo $_code ?>_cc_type]" />
|
32 |
<?php endforeach ?>
|
33 |
</label>
|
34 |
<?php else:?>
|
35 |
<label for="<?php echo $_code ?>_cc_type" class="required"><em>*</em><?php echo $this->__('Credit Card Type') ?></label>
|
36 |
<div class="input-box">
|
37 |
|
38 |
+
<select id="<?php echo $_code ?>_cc_type" name="payment[<?php echo $_code ?>_cc_type]" class="required-entry validate-cc-type-select">
|
39 |
<option value=""><?php echo $this->__('--Please Select--')?></option>
|
40 |
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
41 |
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
50 |
<li>
|
51 |
<label for="<?php echo $_code ?>_cc_owner" class="required"><em>*</em><?php echo $this->__('Name on Card') ?></label>
|
52 |
<div class="input-box">
|
53 |
+
<input type="text" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" id="<?php echo $_code ?>_cc_owner" name="payment[<?php echo $_code ?>_cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>" />
|
54 |
</div>
|
55 |
</li>
|
56 |
<?php endif; ?>
|
57 |
<li>
|
58 |
<label for="<?php echo $_code ?>_cc_number" class="required"><em>*</em><?php echo $this->__('Credit Card Number') ?></label>
|
59 |
<div class="input-box">
|
60 |
+
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[<?php echo $_code ?>_cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text validate-cc-number validate-cc-type" value="" />
|
61 |
</div>
|
62 |
</li>
|
63 |
<li id="<?php echo $_code ?>_cc_type_exp_div">
|
64 |
<label for="<?php echo $_code ?>_expiration" class="required"><em>*</em><?php echo $this->__('Expiration Date') ?></label>
|
65 |
<div class="input-box">
|
66 |
<div class="v-fix">
|
67 |
+
<select id="<?php echo $_code ?>_expiration" name="payment[<?php echo $_code ?>_cc_exp_month]" class="month validate-cc-exp validate-cc-exp-split required-entry">
|
68 |
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
69 |
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
70 |
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
73 |
</div>
|
74 |
<div class="v-fix">
|
75 |
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
76 |
+
<select id="<?php echo $_code ?>_expiration_yr" name="payment[<?php echo $_code ?>_cc_exp_year]" class="year required-entry">
|
77 |
<?php foreach ($this->getCcYears() as $k=>$v): ?>
|
78 |
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
79 |
<?php endforeach ?>
|
87 |
<label for="<?php echo $_code ?>_cc_cid" class="required"><em>*</em><?php echo $this->__('Card Verification Number') ?></label>
|
88 |
<div class="input-box">
|
89 |
<div class="v-fix">
|
90 |
+
<input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="input-text cvv required-entry validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[<?php echo $_code ?>_cc_cid]" value="" />
|
91 |
</div>
|
92 |
<a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
|
93 |
</div>
|
101 |
|
102 |
<?php if (!$this->getCustomerHasCard()) :?>
|
103 |
<div class="input-box">
|
104 |
+
<input id="<?php echo $_code ?>_create_alias_oneclick" value="create_oneclick" type="checkbox" name="payment[<?php echo $_code ?>_oneclick]" />
|
105 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record your card data for a next buy.') ?></label>
|
106 |
</div>
|
107 |
<?php else :?>
|
108 |
<script type="text/javascript">$('card_payment_form_<?php echo $_code ?>').hide();</script>
|
109 |
|
110 |
<div class="input-box">
|
111 |
+
<input id="<?php echo $_code ?>_use_alias_oneclick" value="use_oneclick" checked="checked" type="radio" name="payment[<?php echo $_code ?>_oneclick]" onclick="$('card_payment_form_<?php echo $_code ?>').hide();" />
|
112 |
<label style="float: none;" for="<?php echo $_code ?>_use_alias_oneclick"><?php echo $this->__('Use my recorded card') ?></label>
|
113 |
</div>
|
114 |
|
115 |
<div class="input-box info-card">
|
116 |
+
<select id="<?php echo $_code ?>_oneclick_selected_card" name="payment[<?php echo $_code ?>_oneclick_card]" >
|
117 |
<?php foreach ($_cards as $card):?>
|
118 |
<option value="<?php echo $card->getId()?>"><?php echo $card->getName()?></option>
|
119 |
<?php endforeach;?>
|
120 |
</select>
|
121 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
<div class="input-box">
|
124 |
+
<input id="<?php echo $_code ?>_create_alias_oneclick" type="radio" name="payment[<?php echo $_code ?>_oneclick]" value="create_oneclick" onclick="$('card_payment_form_<?php echo $_code ?>').show();"/>
|
125 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record new card data') ?></label>
|
126 |
</div>
|
127 |
|
128 |
<div class="input-box">
|
129 |
+
<input id="<?php echo $_code ?>_not_oneclick" type="radio" name="payment[<?php echo $_code ?>_oneclick]" value="not_oneclick" onclick="$('card_payment_form_<?php echo $_code ?>').show();" />
|
130 |
<label style="float: none;" for="<?php echo $_code ?>_not_oneclick"><?php echo $this->__('Not use record card data') ?></label>
|
131 |
</div>
|
132 |
|
156 |
//]]>
|
157 |
</script>
|
158 |
<?php endif; ?>
|
159 |
+
<div id="<?php echo $_code ?>_debit_amount">
|
160 |
<?php echo $this->__('You will be debit of amount %s only after submit order.',Mage::app()->getStore()->getBaseCurrency()->format($this->getQuote()->getGrandTotal(), array(), true))?>
|
161 |
</div>
|
162 |
<script type="text/javascript">
|
175 |
|
176 |
Event.observe($('<?php echo $_code ?>_cc_type'), 'change', ToogleCvn<?php echo $_code ?>);
|
177 |
ToogleCvn<?php echo $_code ?>();
|
178 |
+
|
179 |
+
<?php if($this->allowSplitPayment()) : ?>
|
180 |
var UpdateDebitAmount<?php echo $_code ?> = function(){
|
181 |
|
182 |
new Ajax.Request('<?php echo Mage::getUrl('hipay/cc/updateDebitAmount') ?>', {
|
183 |
evalScripts: true,
|
184 |
+
parameters: {'payment_profile_id': $('<?php echo $_code ?>_split_payment').value,'method_code': '<?php echo $_code ?>'},
|
185 |
onSuccess: function(transport) {
|
186 |
|
187 |
if (transport.responseText.isJSON()) {
|
188 |
var response = transport.responseText.evalJSON();
|
189 |
|
190 |
if (response.error) {
|
191 |
+
$('<?php echo $_code ?>_debit_amount').innerHTML = response.message;
|
192 |
Validation.add('validate-cc-exp-split', 'Incorrect credit card expiration date.', function(v,elm) {
|
193 |
return true;
|
194 |
});
|
202 |
var dateArr = splitPayment[splitPayment.length - 1]['dateToPay'].split("-");
|
203 |
|
204 |
Validation.add('validate-cc-exp-split', 'Incorrect credit card expiration date.', function(v,elm) {
|
205 |
+
|
206 |
var ccExpMonth = v;
|
207 |
var ccExpYear = $(elm.id.substr(0,elm.id.indexOf('_expiration')) + '_expiration_yr').value;
|
208 |
var currentTime = new Date();
|
209 |
var currentMonth = parseInt(dateArr[1]);//currentTime.getMonth() + 1;
|
210 |
var currentYear = parseInt(dateArr[0])//currentTime.getFullYear();
|
211 |
+
|
212 |
if (ccExpMonth < currentMonth && ccExpYear == currentYear) {
|
213 |
return false;
|
214 |
}
|
216 |
});
|
217 |
|
218 |
//Update HTMl
|
219 |
+
$('<?php echo $_code ?>_debit_amount').innerHTML = response.labelSplitPayment;
|
220 |
decorateTable('split-payment-cc-table')
|
221 |
|
222 |
}
|
229 |
};
|
230 |
|
231 |
Event.observe($('<?php echo $_code ?>_split_payment'), 'change', UpdateDebitAmount<?php echo $_code ?>);
|
232 |
+
UpdateDebitAmount<?php echo $_code ?>();
|
233 |
+
<?php endif; ?>
|
234 |
//]]>
|
235 |
</script>
|
236 |
+
<?php else : ?>
|
237 |
+
<?php
|
238 |
|
239 |
+
// TPPMAG1-2 - SEPA Payment.
|
240 |
+
|
241 |
+
$useElectronicSigmature = Mage::getStoreConfig('payment/hipay_sdd/electronic_signature');
|
242 |
+
?>
|
243 |
+
<label for="<?php echo $_code ?>_type" ><?php echo $this->__('Bankwire method') ?>:
|
244 |
+
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
245 |
+
<?php echo $_typeName ?>
|
246 |
+
<input id="<?php echo $_code ?>_type" value="<?php echo $_typeCode ?>" type="hidden" name="payment[cc_type]" />
|
247 |
+
<?php endforeach ?>
|
248 |
+
</label>
|
249 |
+
<?php if($useElectronicSigmature == 0) : ?>
|
250 |
+
|
251 |
+
<ul class="form-list" id="card_payment_form_<?php echo $_code ?>" >
|
252 |
+
<li>
|
253 |
+
<label for="<?php echo $_code ?>_gender" class="required"><em>*</em><?php echo $this->__('Gender') ?></label>
|
254 |
+
<div class="input-box">
|
255 |
+
<select id="<?php echo $_code ?>_gender" name="payment[cc_gender]" >
|
256 |
+
<option value="M" selected><?php echo $this->__('Male') ?></option>
|
257 |
+
<option value="F"><?php echo $this->__('Female') ?></option>
|
258 |
+
</select>
|
259 |
+
</div>
|
260 |
+
</li>
|
261 |
+
<li>
|
262 |
+
<label for="<?php echo $_code ?>_fullname" class="required"><em>*</em><?php echo $this->__('firstname') ?></label>
|
263 |
+
<div class="input-box">
|
264 |
+
<input type="text" title="<?php echo $this->__('firstname') ?>" class="input-text " id="<?php echo $_code ?>_firstname" name="payment[cc_firstname]" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getFirstname()); ?>" />
|
265 |
+
</div>
|
266 |
+
</li>
|
267 |
+
<li>
|
268 |
+
<label for="<?php echo $_code ?>_fullname" class="required"><em>*</em><?php echo $this->__('lastname') ?></label>
|
269 |
+
<div class="input-box">
|
270 |
+
<input type="text" title="<?php echo $this->__('lastname') ?>" class="input-text " id="<?php echo $_code ?>_lastname" name="payment[cc_lastname]" value="<?php echo $this->htmlEscape(Mage::getSingleton('customer/session')->getCustomer()->getLastname()); ?>" />
|
271 |
+
</div>
|
272 |
+
</li>
|
273 |
+
<li>
|
274 |
+
<label for="<?php echo $_code ?>_iban" class="required"><em>*</em><?php echo $this->__('IBAN') ?></label>
|
275 |
+
<div class="input-box">
|
276 |
+
<input type="text" title="<?php echo $this->__('IBAN') ?>" class="input-text required-entry" id="<?php echo $_code ?>_iban" name="payment[cc_iban]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_iban')) ?>" />
|
277 |
+
</div>
|
278 |
+
</li>
|
279 |
+
<li>
|
280 |
+
<label for="<?php echo $_code ?>_code_bic" class="required"><em>*</em><?php echo $this->__('Code BIC') ?></label>
|
281 |
+
<div class="input-box">
|
282 |
+
<input type="text" title="<?php echo $this->__('Code BIC') ?>" class="input-text required-entry" id="<?php echo $_code ?>_code_bic" name="payment[cc_code_bic]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_code_bic')) ?>" />
|
283 |
+
</div>
|
284 |
+
</li>
|
285 |
+
<li>
|
286 |
+
<label for="<?php echo $_code ?>_bank_name" class="required"><em>*</em><?php echo $this->__('Bank name') ?></label>
|
287 |
+
<div class="input-box">
|
288 |
+
<input type="text" title="<?php echo $this->__('Bank name') ?>" class="input-text required-entry" id="<?php echo $_code ?>_bank_name" name="payment[cc_bank_name]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_bank_name')) ?>" />
|
289 |
+
</div>
|
290 |
+
</li>
|
291 |
+
</ul>
|
292 |
+
<?php endif; ?>
|
293 |
+
<div id="debit_amount">
|
294 |
+
<?php echo $this->__('You will be debit of amount %s only after submit order.',Mage::app()->getStore()->getBaseCurrency()->format($this->getQuote()->getGrandTotal(), array(), true))?>
|
295 |
+
</div>
|
296 |
+
<?php endif; ?>
|
297 |
+
|
298 |
+
</div>
|
299 |
|
app/design/frontend/base/default/template/hipay/form/hosted.phtml
CHANGED
@@ -8,8 +8,8 @@ $_cards = $this->getCards();
|
|
8 |
<li>
|
9 |
<div class="input-box">
|
10 |
<label style="float: none;" for="<?php echo $_code ?>_split_payment"><?php echo $this->__('Split your Payment') ?></label><br />
|
11 |
-
<select id="<?php echo $_code ?>_split_payment" name="payment[
|
12 |
-
<option value=""><?php echo $this->__('-- Please select your split payment --')?></option>
|
13 |
<?php foreach ($this->getSplitPaymentProfiles() as $profile) : ?>
|
14 |
<option value="<?php echo $profile->getId()?>"><?php echo $profile->getName()?></option>
|
15 |
<?php endforeach;?>
|
@@ -25,40 +25,31 @@ $_cards = $this->getCards();
|
|
25 |
|
26 |
<?php if (!$this->getCustomerHasCard()) :?>
|
27 |
<div class="input-box">
|
28 |
-
<input id="<?php echo $_code ?>_create_alias_oneclick" value="create_oneclick" type="checkbox" name="payment[
|
29 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record your card data for a next buy.') ?></label>
|
30 |
</div>
|
31 |
<?php else :?>
|
32 |
|
33 |
<div class="input-box">
|
34 |
-
<input id="<?php echo $_code ?>_use_alias_oneclick" value="use_oneclick" checked="checked" type="radio" name="payment[
|
35 |
<label style="float: none;" for="<?php echo $_code ?>_use_alias_oneclick"><?php echo $this->__('Use my recorded card') ?></label>
|
36 |
</div>
|
37 |
|
38 |
<div class="input-box info-card">
|
39 |
-
<select id="<?php echo $_code ?>_oneclick_selected_card" name="payment[
|
40 |
<?php foreach ($_cards as $card):?>
|
41 |
<option value="<?php echo $card->getId()?>"><?php echo $card->getName()?></option>
|
42 |
<?php endforeach;?>
|
43 |
</select>
|
44 |
</div>
|
45 |
|
46 |
-
<!-- <div class="input-box info-card">
|
47 |
-
<label><?php echo $this->__('Actual card') ?> :</label>
|
48 |
-
<span><?php echo $this->getCustomer()->getHipayCcNumberEnc() ?></span>
|
49 |
-
</div>
|
50 |
-
<div class="input-box info-card">
|
51 |
-
<label><?php echo $this->__('Expiration date') ?> : <?php echo $this->getCustomer()->getHipayCcExpDate() ?></label>
|
52 |
-
</div>-->
|
53 |
-
|
54 |
-
|
55 |
<div class="input-box">
|
56 |
-
<input id="<?php echo $_code ?>_create_alias_oneclick" type="radio" name="payment[
|
57 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record new card data') ?></label>
|
58 |
</div>
|
59 |
|
60 |
<div class="input-box">
|
61 |
-
<input id="<?php echo $_code ?>_not_oneclick" type="radio" name="payment[
|
62 |
<label style="float: none;" for="<?php echo $_code ?>_not_oneclick"><?php echo $this->__('Not use record card data') ?></label>
|
63 |
</div>
|
64 |
|
@@ -68,9 +59,50 @@ $_cards = $this->getCards();
|
|
68 |
</ul>
|
69 |
<br />
|
70 |
<?php endif; ?>
|
71 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
72 |
<script type="text/javascript">
|
73 |
//<![CDATA[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
<?php $iFrameConfig = $this->getIframeConfig() ?>
|
75 |
|
76 |
Review.prototype.displayIframe = function(url) {
|
8 |
<li>
|
9 |
<div class="input-box">
|
10 |
<label style="float: none;" for="<?php echo $_code ?>_split_payment"><?php echo $this->__('Split your Payment') ?></label><br />
|
11 |
+
<select id="<?php echo $_code ?>_split_payment" name="payment[<?php echo $_code ?>_split_payment_id]">
|
12 |
+
<!-- <option value=""><?php echo $this->__('-- Please select your split payment --')?></option> -->
|
13 |
<?php foreach ($this->getSplitPaymentProfiles() as $profile) : ?>
|
14 |
<option value="<?php echo $profile->getId()?>"><?php echo $profile->getName()?></option>
|
15 |
<?php endforeach;?>
|
25 |
|
26 |
<?php if (!$this->getCustomerHasCard()) :?>
|
27 |
<div class="input-box">
|
28 |
+
<input id="<?php echo $_code ?>_create_alias_oneclick" value="create_oneclick" type="checkbox" name="payment[<?php echo $_code ?>_oneclick]" />
|
29 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record your card data for a next buy.') ?></label>
|
30 |
</div>
|
31 |
<?php else :?>
|
32 |
|
33 |
<div class="input-box">
|
34 |
+
<input id="<?php echo $_code ?>_use_alias_oneclick" value="use_oneclick" checked="checked" type="radio" name="payment[<?php echo $_code ?>_oneclick]" checked/>
|
35 |
<label style="float: none;" for="<?php echo $_code ?>_use_alias_oneclick"><?php echo $this->__('Use my recorded card') ?></label>
|
36 |
</div>
|
37 |
|
38 |
<div class="input-box info-card">
|
39 |
+
<select id="<?php echo $_code ?>_oneclick_selected_card" name="payment[<?php echo $_code ?>_oneclick_card]" >
|
40 |
<?php foreach ($_cards as $card):?>
|
41 |
<option value="<?php echo $card->getId()?>"><?php echo $card->getName()?></option>
|
42 |
<?php endforeach;?>
|
43 |
</select>
|
44 |
</div>
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
<div class="input-box">
|
47 |
+
<input id="<?php echo $_code ?>_create_alias_oneclick" type="radio" name="payment[<?php echo $_code ?>_oneclick]" value="create_oneclick"/>
|
48 |
<label style="float: none;" for="<?php echo $_code ?>_create_alias_oneclick"><?php echo $this->__('Record new card data') ?></label>
|
49 |
</div>
|
50 |
|
51 |
<div class="input-box">
|
52 |
+
<input id="<?php echo $_code ?>_not_oneclick" type="radio" name="payment[<?php echo $_code ?>_oneclick]" value="not_oneclick" />
|
53 |
<label style="float: none;" for="<?php echo $_code ?>_not_oneclick"><?php echo $this->__('Not use record card data') ?></label>
|
54 |
</div>
|
55 |
|
59 |
</ul>
|
60 |
<br />
|
61 |
<?php endif; ?>
|
62 |
+
<?php if($this->allowSplitPayment()) : ?>
|
63 |
+
<div id="<?php echo $_code ?>_debit_amount">
|
64 |
+
<?php echo $this->__('You will be debit of amount %s only after submit order.',Mage::app()->getStore()->getBaseCurrency()->format($this->getQuote()->getGrandTotal(), array(), true))?>
|
65 |
+
</div>
|
66 |
+
<?php endif;?>
|
67 |
+
<?php echo $this->__('You will be redirect to payment page after submit order.')?>
|
68 |
<script type="text/javascript">
|
69 |
//<![CDATA[
|
70 |
+
|
71 |
+
<?php if($this->allowSplitPayment()) : ?>
|
72 |
+
var UpdateDebitAmount<?php echo $_code ?> = function(){
|
73 |
+
|
74 |
+
new Ajax.Request('<?php echo Mage::getUrl('hipay/hosted/updateDebitAmount') ?>', {
|
75 |
+
evalScripts: true,
|
76 |
+
parameters: {'payment_profile_id': $('<?php echo $_code ?>_split_payment').value,'method_code': '<?php echo $_code ?>'},
|
77 |
+
onSuccess: function(transport) {
|
78 |
+
|
79 |
+
if (transport.responseText.isJSON()) {
|
80 |
+
var response = transport.responseText.evalJSON();
|
81 |
+
|
82 |
+
if (response.error) {
|
83 |
+
$('<?php echo $_code ?>_debit_amount').innerHTML = response.message;
|
84 |
+
|
85 |
+
}
|
86 |
+
|
87 |
+
if(response.success)
|
88 |
+
{
|
89 |
+
//Update HTMl
|
90 |
+
$('<?php echo $_code ?>_debit_amount').innerHTML = response.labelSplitPayment;
|
91 |
+
decorateTable('split-payment-cc-table')
|
92 |
+
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
|
97 |
+
}
|
98 |
+
});
|
99 |
+
|
100 |
+
};
|
101 |
+
|
102 |
+
Event.observe($('<?php echo $_code ?>_split_payment'), 'change', UpdateDebitAmount<?php echo $_code ?>);
|
103 |
+
UpdateDebitAmount<?php echo $_code ?>();
|
104 |
+
<?php endif; ?>
|
105 |
+
|
106 |
<?php $iFrameConfig = $this->getIframeConfig() ?>
|
107 |
|
108 |
Review.prototype.displayIframe = function(url) {
|
app/design/frontend/base/default/template/hipay/info/cc.phtml
CHANGED
File without changes
|
app/design/frontend/base/default/template/hipay/info/hosted.phtml
CHANGED
File without changes
|
app/etc/modules/Allopass_Hipay.xml
CHANGED
File without changes
|
app/locale/en_US/Allopass_Hipay.csv
CHANGED
@@ -140,5 +140,18 @@
|
|
140 |
"HiPay Fullservice Hosted Page","HiPay Fullservice Credit Card Hosted Page"
|
141 |
"Hipay Hosted","HiPay Fullservice Credit Card Hosted Page"
|
142 |
"Hipay Credit Card","HiPay Fullservice Credit Card API"
|
143 |
-
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
"HiPay Fullservice Hosted Page","HiPay Fullservice Credit Card Hosted Page"
|
141 |
"Hipay Hosted","HiPay Fullservice Credit Card Hosted Page"
|
142 |
"Hipay Credit Card","HiPay Fullservice Credit Card API"
|
143 |
+
"HiPay Fullservice Credit Card Split Payment","HiPay Fullservice Credit Card Split Payment"
|
144 |
+
"Credit Card Split Payment","Credit Card Split Payment"
|
145 |
+
"HiPay Fullservice Hosted Page Split Payment","HiPay Fullservice Hosted Page Split Payment"
|
146 |
+
"Bankwire method","Bankwire method"
|
147 |
+
"Gender","Gender"
|
148 |
+
"Male","Male"
|
149 |
+
"Female","Female"
|
150 |
+
"firstname","Firstname"
|
151 |
+
"lastname","Lastname"
|
152 |
+
"Bank name","Bank name"
|
153 |
+
"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 ""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."
|
154 |
+
"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 issued by merchant. Registered notification about captured amount of %s. Transaction ID: ""%s"". Invoice has not been created. Please create offline Invoice."
|
155 |
+
"Accept and Capture Payment","Accept and Capture Payment"
|
156 |
+
"The Capture was requested.","The Capture was requested."
|
157 |
+
"You must reload the page to see new status.","You must reload the page to see new status."
|
app/locale/en_US/template/email/hipay_fraud_payment.html
CHANGED
File without changes
|
app/locale/en_US/template/email/hipay_fraud_payment_accept.html
CHANGED
File without changes
|
app/locale/en_US/template/email/hipay_fraud_payment_deny.html
CHANGED
File without changes
|
app/locale/fr_FR/Allopass_Hipay.csv
CHANGED
@@ -141,5 +141,19 @@
|
|
141 |
"HiPay Fullservice credentials configuration","HiPay Fullservice credentials configuration"
|
142 |
"HiPay Fullservice Credit Card","HiPay Fullservice Credit Card API"
|
143 |
"HiPay Fullservice Hosted Page","HiPay Fullservice Credit Card Hosted Page"
|
144 |
-
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
"HiPay Fullservice credentials configuration","HiPay Fullservice credentials configuration"
|
142 |
"HiPay Fullservice Credit Card","HiPay Fullservice Credit Card API"
|
143 |
"HiPay Fullservice Hosted Page","HiPay Fullservice Credit Card Hosted Page"
|
144 |
+
"HiPay Fullservice Credit Card Split Payment","HiPay Fullservice Credit Card Split Payment"
|
145 |
+
"Credit Card Split Payment","Paiement en plusieurs fois par carte bancaire"
|
146 |
+
"HiPay Fullservice Hosted Page Split Payment","HiPay Fullservice Hosted Page Split Payment"
|
147 |
+
"Bankwire method","Méthode virement bancaire"
|
148 |
+
"Gender","Le genre"
|
149 |
+
"Male","Homme"
|
150 |
+
"Female","Femme"
|
151 |
+
"firstname","Prénom"
|
152 |
+
"lastname","Nom"
|
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."
|
app/locale/fr_FR/template/email/hipay_fraud_payment.html
CHANGED
@@ -1,66 +1,66 @@
|
|
1 |
-
{* This is a comment block
|
2 |
-
|
3 |
-
Use vars: {{var var_name}}
|
4 |
-
*}<!--@subject Votre transaction est en attente de validation @-->
|
5 |
-
<!--@vars
|
6 |
-
{"var reason":"Transaction Failed Reason",
|
7 |
-
"var checkoutType":"Checkout Type",
|
8 |
-
"var customerEmail":"Customer Email",
|
9 |
-
"var customer":"Customer Name",
|
10 |
-
"var items":"Shopping Cart Items",
|
11 |
-
"var total":"Total",
|
12 |
-
"var billingAddress.format('html')":"Billing Address",
|
13 |
-
"var shippingAddress.format('html')":"Shipping Address",
|
14 |
-
"var shippingMethod":"Shipping Method",
|
15 |
-
"var paymentMethod":"Payment Method",
|
16 |
-
"var dateAndTime":"Date and Time of Transaction"}
|
17 |
-
@-->
|
18 |
-
|
19 |
-
<table>
|
20 |
-
<thead>
|
21 |
-
<tr>
|
22 |
-
<th>Une transaction de paiement est en attente de validation.</th>
|
23 |
-
</tr>
|
24 |
-
</thead>
|
25 |
-
<tbody>
|
26 |
-
<tr>
|
27 |
-
<td>
|
28 |
-
<p>
|
29 |
-
<b>Raison</b><br />
|
30 |
-
{{var reason}}
|
31 |
-
</p>
|
32 |
-
<p>
|
33 |
-
<b>Client :</b><br />
|
34 |
-
<a href="mailto:{{var customerEmail}}">{{var customer}}</a> <{{var customerEmail}}>
|
35 |
-
</p>
|
36 |
-
<p><b>Articles :</b><br />
|
37 |
-
{{var items}}
|
38 |
-
</p>
|
39 |
-
<p>
|
40 |
-
<b>Total :</b><br />
|
41 |
-
{{var total}}
|
42 |
-
</p>
|
43 |
-
<p>
|
44 |
-
<b>Adresse de facturation :</b><br />
|
45 |
-
{{var billingAddress.format('html')}}
|
46 |
-
</p>
|
47 |
-
<p>
|
48 |
-
<b>Adresse de livraison :</b><br />
|
49 |
-
{{var shippingAddress.format('html')}}
|
50 |
-
</p>
|
51 |
-
<p>
|
52 |
-
<b>Mode de livraison :</b><br />
|
53 |
-
{{var shippingMethod}}
|
54 |
-
</p>
|
55 |
-
<p>
|
56 |
-
<b>Mode de paiement :</b><br />
|
57 |
-
{{var paymentMethod}}
|
58 |
-
</p>
|
59 |
-
<p>
|
60 |
-
<b>Date & Heure :</b><br />
|
61 |
-
{{var dateAndTime}}
|
62 |
-
</p>
|
63 |
-
</td>
|
64 |
-
</tr>
|
65 |
-
</tbody>
|
66 |
-
</table>
|
1 |
+
{* This is a comment block
|
2 |
+
|
3 |
+
Use vars: {{var var_name}}
|
4 |
+
*}<!--@subject Votre transaction est en attente de validation @-->
|
5 |
+
<!--@vars
|
6 |
+
{"var reason":"Transaction Failed Reason",
|
7 |
+
"var checkoutType":"Checkout Type",
|
8 |
+
"var customerEmail":"Customer Email",
|
9 |
+
"var customer":"Customer Name",
|
10 |
+
"var items":"Shopping Cart Items",
|
11 |
+
"var total":"Total",
|
12 |
+
"var billingAddress.format('html')":"Billing Address",
|
13 |
+
"var shippingAddress.format('html')":"Shipping Address",
|
14 |
+
"var shippingMethod":"Shipping Method",
|
15 |
+
"var paymentMethod":"Payment Method",
|
16 |
+
"var dateAndTime":"Date and Time of Transaction"}
|
17 |
+
@-->
|
18 |
+
|
19 |
+
<table>
|
20 |
+
<thead>
|
21 |
+
<tr>
|
22 |
+
<th>Une transaction de paiement est en attente de validation.</th>
|
23 |
+
</tr>
|
24 |
+
</thead>
|
25 |
+
<tbody>
|
26 |
+
<tr>
|
27 |
+
<td>
|
28 |
+
<p>
|
29 |
+
<b>Raison</b><br />
|
30 |
+
{{var reason}}
|
31 |
+
</p>
|
32 |
+
<p>
|
33 |
+
<b>Client :</b><br />
|
34 |
+
<a href="mailto:{{var customerEmail}}">{{var customer}}</a> <{{var customerEmail}}>
|
35 |
+
</p>
|
36 |
+
<p><b>Articles :</b><br />
|
37 |
+
{{var items}}
|
38 |
+
</p>
|
39 |
+
<p>
|
40 |
+
<b>Total :</b><br />
|
41 |
+
{{var total}}
|
42 |
+
</p>
|
43 |
+
<p>
|
44 |
+
<b>Adresse de facturation :</b><br />
|
45 |
+
{{var billingAddress.format('html')}}
|
46 |
+
</p>
|
47 |
+
<p>
|
48 |
+
<b>Adresse de livraison :</b><br />
|
49 |
+
{{var shippingAddress.format('html')}}
|
50 |
+
</p>
|
51 |
+
<p>
|
52 |
+
<b>Mode de livraison :</b><br />
|
53 |
+
{{var shippingMethod}}
|
54 |
+
</p>
|
55 |
+
<p>
|
56 |
+
<b>Mode de paiement :</b><br />
|
57 |
+
{{var paymentMethod}}
|
58 |
+
</p>
|
59 |
+
<p>
|
60 |
+
<b>Date & Heure :</b><br />
|
61 |
+
{{var dateAndTime}}
|
62 |
+
</p>
|
63 |
+
</td>
|
64 |
+
</tr>
|
65 |
+
</tbody>
|
66 |
+
</table>
|
app/locale/fr_FR/template/email/hipay_fraud_payment_accept.html
CHANGED
File without changes
|
app/locale/fr_FR/template/email/hipay_fraud_payment_deny.html
CHANGED
File without changes
|
app/locale/it_IT/Allopass_Hipay.csv
CHANGED
@@ -120,3 +120,11 @@
|
|
120 |
"HiPay Fullservice credentials configuration","HiPay Fullservice credentials configuration"
|
121 |
"HiPay Fullservice Credit Card","HiPay Fullservice Credit Card API"
|
122 |
"HiPay Fullservice Hosted Page","HiPay Fullservice Credit Card Hosted Page"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
"HiPay Fullservice credentials configuration","HiPay Fullservice credentials configuration"
|
121 |
"HiPay Fullservice Credit Card","HiPay Fullservice Credit Card API"
|
122 |
"HiPay Fullservice Hosted Page","HiPay Fullservice Credit Card Hosted Page"
|
123 |
+
"HiPay Fullservice Credit Card Split Payment","HiPay Fullservice Credit Card Split Payment"
|
124 |
+
"Credit Card Split Payment","Credit Card Split Payment"
|
125 |
+
"HiPay Fullservice Hosted Page Split Payment","HiPay Fullservice Hosted Page Split Payment"
|
126 |
+
"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 ""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."
|
127 |
+
"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 issued by merchant. Registered notification about captured amount of %s. Transaction ID: ""%s"". Invoice has not been created. Please create offline Invoice."
|
128 |
+
"Accept and Capture Payment","Accept and Capture Payment"
|
129 |
+
"The Capture was requested.","The Capture was requested."
|
130 |
+
"You must reload the page to see new status.","You must reload the page to see new status."
|
app/locale/it_IT/template/email/hipay_fraud_payment.html
CHANGED
File without changes
|
app/locale/it_IT/template/email/hipay_fraud_payment_accept.html
CHANGED
File without changes
|
app/locale/it_IT/template/email/hipay_fraud_payment_deny.html
CHANGED
File without changes
|
package.xml
CHANGED
@@ -1,19 +1,2 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<package>
|
3 |
-
<name>Allopass_Hipay</name>
|
4 |
-
<version>1.2.4</version>
|
5 |
-
<stability>stable</stability>
|
6 |
-
<license uri="http://www.opensource.org/licenses/gpl-license.php">GNU General Public License (GPL)</license>
|
7 |
-
<channel>community</channel>
|
8 |
-
<extends/>
|
9 |
-
<summary>Payment method HIPAY</summary>
|
10 |
-
<description>Payment method with hosted page and API</description>
|
11 |
-
<notes>* Optimize cancel order query
|
12 |
-
* Change some title</notes>
|
13 |
-
<authors><author><name>Kassim_Profileo</name><user>Kassim_Profileo</user><email>kassim@profileo.com</email></author></authors>
|
14 |
-
<date>2015-11-24</date>
|
15 |
-
<time>11:23:17</time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Allopass"><dir name="Hipay"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Card"><dir name="Edit"><file name="Form.php" hash="addfd57cd54aff9ce5b57759105ad221"/></dir><file name="Edit.php" hash="5f1896bb299030ade2090e2743ce2f95"/></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Card.php" hash="3b88e16a00bcc97ad984613a8716448d"/></dir></dir></dir><dir name="PaymentProfile"><dir name="Edit"><file name="Form.php" hash="e17cc9773f3d4b1ef0981b513c659841"/></dir><file name="Edit.php" hash="ef7b6945e91ef450a8a6a4ef0dbfef97"/><file name="Grid.php" hash="f8ac0daa082f3c6d2be6289e935dbd31"/></dir><file name="PaymentProfile.php" hash="b02de6e3cf69724d7f901f9b4f42e333"/><dir name="SplitPayment"><dir name="Edit"><file name="Form.php" hash="06f8e4c7714d8e362c00ac8a4d88e292"/></dir><file name="Edit.php" hash="2aa5f311f6ba084420a6adc0fa518cc5"/><file name="Grid.php" hash="42031ca1b4a9a399e6e148378880ad82"/></dir><file name="SplitPayment.php" hash="1f5b84881308b79f0ada533862568e28"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="3dsRule.php" hash="e3808525b924001037cb93d497f86518"/><file name="Allowsplitpayment.php" hash="0c6e4378ba1537584417870c9eb2c59c"/><file name="MultiselectSortable.php" hash="afba089fed75aefece6155de1210a856"/></dir></dir></dir></dir></dir><dir name="Card"><file name="Edit.php" hash="530cd326480c2d074dfdc59a578dd1db"/></dir><file name="Card.php" hash="8e9a964e1b44c4664b78a2f9a5f7b1ae"/><dir name="Checkout"><file name="Pending.php" hash="48112f7e2fdcc79ee9431cf5350e223f"/></dir><dir name="Form"><file name="Abstract.php" hash="1f1d3cc5cfbdea1833f74ad22638139d"/><file name="Cc.php" hash="64b899c98ee3edd77c5262eccd0bdfd1"/><file name="Hosted.php" hash="1cbc3fe21de97bba192cd5e651dfaeae"/></dir><dir name="Info"><file name="Cc.php" hash="d4ed3d7c3bbc82c1b3b13e19abdd4ddc"/><file name="Hosted.php" hash="40355126a48bd854c21bb0201840229c"/></dir></dir><dir name="Controller"><file name="Payment.php" hash="442236e180888eac3036a88784515841"/></dir><dir name="Helper"><file name="Data.php" hash="724d4cb5a12657237d03ef2731c4f89c"/></dir><dir name="Model"><dir name="Api"><dir name="Http"><dir name="Client"><dir name="Adapter"><file name="Curl.php" hash="cebf9e03d310e65f23a2a4ddc980e26f"/><file name="Stream.php" hash="5a110dd1f33ee4c8319cec396fc4fa40"/></dir></dir></dir><file name="Request.php" hash="cd99b338ce6487765b2c100f2009f37f"/><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><file name="Card.php" hash="5d5ed0ece4cb9ef50bf445eee6911f8a"/><file name="Config.php" hash="58b729e16f5ac9ec28535013274d465a"/><dir name="Log"><file name="Adapter.php" hash="9d5533d5d3622c72cbc84abfd4e3116c"/></dir><dir name="Method"><file name="Abstract.php" hash="039da5ef8210ee602739dc37da10c534"/><file name="Cbc.php" hash="49d1b0e2ad320c1a78043bb7231de930"/><file name="Cc.php" hash="ed8e077db41c1d2c2bacdb6eb416b524"/><file name="Dexia.php" hash="a385bcf6b0826917fecec6917a8230f9"/><file name="Giropay.php" hash="8f924fea486cd68e22dd55039c7cda77"/><file name="Hosted.php" hash="5bd41f736ddc997d5620932838b38849"/><file name="Ideal.php" hash="0cf882d667b36c0e89bc1800ea9fa7a1"/><file name="Ing.php" hash="774c41e17868dcfe8031d047703a8b1c"/><file name="Kbc.php" hash="77981ab4ebd64d3555bd9fddccadf283"/><file name="PaypalApi.php" hash="7b107d521c52c39380bb5daf4716da52"/><file name="Przelewy24.php" hash="00b695e7b34b69f36d593587a9b5dcdd"/><file name="Przelewy24Api.php" hash="ff20c8621b68fea2b9d96cf131d320e7"/><file name="Qiwi.php" hash="acea5092f8fd1720d506d5be3714864f"/><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><file name="Observer.php" hash="ba479a7af20e364788967c3436b992be"/><file name="PaymentProfile.php" hash="002417022b9afb132e771bbb2eb09d1c"/><dir name="Resource"><dir name="Card"><file name="Collection.php" hash="4a9ca5d5124dcaa5fe9a01c7e864bf6e"/></dir><file name="Card.php" hash="5550c1486504972e6423fce49e3e8d93"/><dir name="PaymentProfile"><file name="Collection.php" hash="b1d5980904dbc3669cc6ee904c7620a3"/></dir><file name="PaymentProfile.php" hash="fb397fd11c35b19986d4688d207b55cb"/><dir name="Rule"><file name="Collection.php" hash="b4dd0d851cda670c6aafad0cf588b106"/></dir><file name="Rule.php" hash="115bccaa9e4d37ed03e179147ab3788d"/><dir name="SplitPayment"><file name="Collection.php" hash="c44859bdf1e4de9551bc31cd57e7ef88"/></dir><file name="SplitPayment.php" hash="133f41e753dfbb150cb61c6edf5745c9"/></dir><dir name="Rule"><dir name="Condition"><file name="Address.php" hash="4180131479d72272c7b2c67534341dbc"/><file name="Combine.php" hash="e57da0bfd13c85721ef06d9f5c1d5a45"/><file name="Customer.php" hash="b847ff261e77565af4f64761d378de59"/><dir name="Product"><file name="Combine.php" hash="b99adc27124c3c6f56d04f0bcb5a42be"/><file name="Found.php" hash="bc266762458faaba326b7d7245b688a8"/><file name="Subselect.php" hash="5c0d482cddd69d82350bc5fec15c40b7"/></dir><file name="Product.php" hash="5186cb9be313c7a772a11613ff4d1406"/></dir><file name="Config.php" hash="4034bf549bc274c836930a43d0ef8646"/></dir><file name="Rule.php" hash="4cddad3f6cb38af59dc2726d80148f51"/><dir name="Source"><file name="3ds.php" hash="e7b97e8a1c886b11951051a212c965ba"/><file name="CcType.php" hash="088d0e8c51f594092a0c6cd0f9bf6545"/><file name="CcTypeHosted.php" hash="f119a5901ac3a9056df56f9cb35b5e02"/><dir name="Order"><file name="HipayStatusValidate.php" hash="63414f71ce035909310f27842bc1b511"/><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><file name="Status.php" hash="395ac5e1567ee6095769abc6ce64fec0"/></dir><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><file name="SplitPayment.php" hash="38ccc9e82079d15a25e8d90710aa2b20"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="CcTypes.php" hash="916ab83c9e5e1ee18d488f42a090c524"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="CardController.php" hash="1e5cba078cef7987df9314c467dd640e"/><file name="PaymentController.php" hash="d212b4ede76d1632a0554ee53285ec23"/><file name="PaymentProfileController.php" hash="887808a799db4e95d76bb9a014f80f29"/><file name="RuleController.php" hash="55291c15c7de616237b14dfad1bc5e80"/><file name="SplitPaymentController.php" hash="642960a1002c316efc04d3af4e6d2a57"/></dir><file name="CardController.php" hash="bb0bf974d25bf4d4c40e99904ba1dd35"/><file name="CbcController.php" hash="11a793cfef50322482b4d1e44f7fb427"/><file name="CcController.php" hash="2e45012894cac90a24c2017a427258b5"/><file name="CheckoutController.php" hash="8d565df4627074dd62c59e6d5b301ce0"/><file name="DexiaController.php" hash="abafa7205262125aef603f0d51445ebd"/><file name="GiropayController.php" hash="93ebe6d63e60627ee86815a7cc23006b"/><file name="HostedController.php" hash="f0bd2d41f36b0453e42063531b88d4a3"/><file name="IdealController.php" hash="49bc5c1a52c98cef934b45ce27da574a"/><file name="IngController.php" hash="43b8ae9e752d5268a51a164abc98df9f"/><file name="KbcController.php" hash="fad29361513cc354dcf200fde25265da"/><file name="NotifyController.php" hash="a05ff382d55531e2ff2c2db4f7011c75"/><file name="PaypalapiController.php" hash="6163a491b9e7b43593983da5735d29e6"/><file name="Przelewy24Controller.php" hash="d6923f98e8a53d8b8becd1d5ef99e0d0"/><file name="Przelewy24apiController.php" hash="bc488ef00a5a063d05aa12c545d8e8fe"/><file name="QiwiController.php" hash="6b3e05b2910dae0b919c50cb06363c57"/><dir name="Sales"><dir name="Order"><file name="CreateController.php" hash="68bf9e177386c3068bffa5249ce52329"/></dir></dir><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><dir name="etc"><file name="config.xml" hash="ce13f1a78730428df2e20d67ae1180a7"/><file name="system.xml" hash="d7e57b4927882fb81b281c0027bbf60b"/></dir><dir name="sql"><dir name="allopass_hipay_setup"><file name="mysql4-install-0.1.0.php" hash="f26c1b504004395dff2ec07d57bc5439"/><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"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="hipay.xml" hash="457415436810b9a57b0c5228ac4ae4b0"/></dir><dir name="template"><dir name="hipay"><dir name="card"><file name="account.phtml" hash="8e4ec26a1ccfb13bf8c4706d74990aad"/><dir name="form"><file name="edit.phtml" hash="befde62b0368c1afb8daa70d46796865"/></dir></dir><dir name="checkout"><file name="pending.phtml" hash="34e6bba88ea5fdd6b4ea71595de638d6"/></dir><dir name="form"><file name="cc.phtml" hash="14cf953e5a2ff9f445694be21b59a9db"/><file name="hosted.phtml" hash="9272af0be34cff74a3c0a3642171b413"/></dir><dir name="info"><file name="cc.phtml" hash="96e92e2b6564392e7294b8f96469940f"/><file name="hosted.phtml" hash="96e92e2b6564392e7294b8f96469940f"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="hipay.xml" hash="478e41f2896fd595f4d264149059c737"/></dir><dir name="template"><dir name="hipay"><dir name="form"><file name="cc.phtml" hash="558753da13affeb289d9d4725eb92871"/><file name="hosted.phtml" hash="1dc8481e0b754e12eaeb065da8a6e41f"/></dir><dir name="info"><file name="cc.phtml" hash="96e92e2b6564392e7294b8f96469940f"/><file name="hosted.phtml" hash="96e92e2b6564392e7294b8f96469940f"/></dir><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="rules.phtml" hash="b25ca0397baffa2306ab70776b2febac"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Allopass_Hipay.xml" hash="fd0ac2e9080c0a432a3a7b6d969171c0"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Allopass_Hipay.csv" hash="b8f92ffaf6db845b758aa3e0651d7437"/><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"/></dir></dir></dir><dir name="fr_FR"><file name="Allopass_Hipay.csv" hash="645ba86bef9697600a399edee449a5d4"/><dir name="template"><dir name="email"><file name="hipay_fraud_payment.html" hash="9ec2e3fc5610a60ce86dd24d0f83ff5d"/><file name="hipay_fraud_payment_accept.html" hash="5f2538c69555f414f7c8e8767ac505f7"/><file name="hipay_fraud_payment_deny.html" hash="035b655eac80930d6ebe4e5bf2c3e50c"/></dir></dir></dir><dir name="it_IT"><file name="Allopass_Hipay.csv" hash="1c67af480532f6b3001a995016b65bd3"/><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"/></dir></dir></dir></target><target name="mageskin"><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></target></contents>
|
17 |
-
<compatible/>
|
18 |
-
<dependencies><required><php><min>5.2.0</min><max>5.5.99</max></php></required></dependencies>
|
19 |
-
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<package><name>Allopass_Hipay</name><version>1.3.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>2016-03-18</date><time>2:36:28</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="58b729e16f5ac9ec28535013274d465a"/><file name="Observer.php" hash="9d518d322ea4e7a8829e8cd09596d6f8"/><file name="PaymentProfile.php" hash="002417022b9afb132e771bbb2eb09d1c"/><file name="Rule.php" hash="4cddad3f6cb38af59dc2726d80148f51"/><file name="SplitPayment.php" hash="245fda18c3c08b32a92a9667e939a62d"/><dir name="Api"><file name="Request.php" hash="cd99b338ce6487765b2c100f2009f37f"/><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="4180131479d72272c7b2c67534341dbc"/><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="2f332bb69790798facbc534fd54bda87"/><file name="Cbc.php" hash="49d1b0e2ad320c1a78043bb7231de930"/><file name="Cc.php" hash="13ac152e05d6530d64dfdf98f01051ac"/><file name="CcXtimes.php" hash="1c46d4ce4c6f878ea6050196cfb04852"/><file name="Dexia.php" hash="a385bcf6b0826917fecec6917a8230f9"/><file name="Giropay.php" hash="8f924fea486cd68e22dd55039c7cda77"/><file name="Hosted.php" hash="5bd41f736ddc997d5620932838b38849"/><file name="HostedXtimes.php" hash="b6566db76a4027dc39bbd60756a63fbc"/><file name="Ideal.php" hash="0cf882d667b36c0e89bc1800ea9fa7a1"/><file name="Ing.php" hash="774c41e17868dcfe8031d047703a8b1c"/><file name="Kbc.php" hash="77981ab4ebd64d3555bd9fddccadf283"/><file name="PaypalApi.php" hash="65d6c43ad78671a49d162acb381a1079"/><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="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="2af905052b02e76eef5947cc89f7e656"/></dir><dir name="Controller"><file name="Payment.php" hash="c9f4eedb41f09c397beb9bf10893152a"/></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="NotifyController.php" hash="a0084a51bfe05c6300272ed88e98fecd"/><file name="PaypalapiController.php" hash="6163a491b9e7b43593983da5735d29e6"/><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="06e07d68cb27e669fb6105bc78db2b9c"/><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="290f850385e6feac4938b2179a111e64"/><file name="system.xml" hash="b4bdc0d83fd1e0a7db384ad8abeaab21"/></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"/></dir></dir><dir name="Block"><file name="Card.php" hash="8e9a964e1b44c4664b78a2f9a5f7b1ae"/><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"/></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="e17cc9773f3d4b1ef0981b513c659841"/></dir></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Card.php" hash="652fce24783da2b3f2d2e3ffb5345bc8"/></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"/></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="06f8e4c7714d8e362c00ac8a4d88e292"/></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="7ac0b4ef819dbca21bb1e3099d157106"/><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"/></dir></dir></dir><dir name="fr_FR"><file name="Allopass_Hipay.csv" hash="2107c2e169e8205628eebc43701b726f"/><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"/></dir></dir></dir><dir name="it_IT"><file name="Allopass_Hipay.csv" hash="d1b48f4d4007421a60b7e7414a40461c"/><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"/></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"/></dir><dir name="card"><file name="account.phtml" hash="8e4ec26a1ccfb13bf8c4706d74990aad"/><dir name="form"><file name="edit.phtml" hash="befde62b0368c1afb8daa70d46796865"/></dir></dir><dir name="form"><file name="cc.phtml" hash="180374d4570419ace38c7f9a729db0ff"/><file name="hosted.phtml" hash="c3befb800e3410764eb62428f4e41149"/></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="457415436810b9a57b0c5228ac4ae4b0"/></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="rules.phtml" hash="b25ca0397baffa2306ab70776b2febac"/></dir></dir></dir></dir><dir name="form"><file name="cc.phtml" hash="b8be13ef62d74d357a98639171160e69"/><file name="hosted.phtml" hash="5be27a6e29c212d8ab38a5b32ead66c8"/></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="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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/adminhtml/default/default/hipay/js/rules.js
CHANGED
File without changes
|