Version Notes
Bug fixing and upgardes:
1. Orders which have status 'REDIRECTED' can be canceled/voided.
2. An eps problem was solved
3. There are specified IPs which are allowed for the confirmation requests. In case the request is coming not from one of these IPs a TRANSACTIONSTATUS request is executed.
Download this release
Release Info
Developer | Magento Core Team |
Extension | mPAY24 |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.4
- app/code/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php +263 -260
- app/code/community/Mpay24/Mpay24/Model/Api/MPay24Shop.php +4 -4
- app/code/community/Mpay24/Mpay24/Model/Selectpayment.php +2 -2
- app/code/community/Mpay24/Mpay24/controllers/PaymentController.php +13 -14
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-install-1.4.3.php +0 -53
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-install-1.4.4.php +33 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-0.6.2-1.4.3.php → mysql4-upgrade-0.6.2-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.0.0-1.4.3.php → mysql4-upgrade-1.0.0-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.0.4-1.4.3.php → mysql4-upgrade-1.0.4-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.0.6-1.4.3.php → mysql4-upgrade-1.0.6-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.0.7-1.4.3.php → mysql4-upgrade-1.0.7-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.1.1-1.4.3.php → mysql4-upgrade-1.1.1-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.1.7-1.4.3.php → mysql4-upgrade-1.1.7-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.1.8-1.4.3.php → mysql4-upgrade-1.1.8-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.1.9-1.4.3.php → mysql4-upgrade-1.1.9-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.2.0-1.4.3.php → mysql4-upgrade-1.2.0-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.2.1-1.4.3.php → mysql4-upgrade-1.2.1-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.2.2-1.4.3.php → mysql4-upgrade-1.2.2-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.3.0-1.4.3.php → mysql4-upgrade-1.3.0-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.0-1.4.3.php → mysql4-upgrade-1.4.0-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.1-1.4.3.php → mysql4-upgrade-1.4.1-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.2-1.4.3.php → mysql4-upgrade-1.4.2-1.4.4.php} +0 -0
- app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.3-1.4.4.php +38 -0
- app/etc/modules/Mpay24_Mpay24.xml +1 -1
- package.xml +4 -4
app/code/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php
CHANGED
@@ -10,17 +10,17 @@ include_once("MPay24Shop.php");
|
|
10 |
|
11 |
class MPay24MagentoShop extends MPay24Shop {
|
12 |
|
13 |
-
const PAYMENT_TYPE_AUTH = 'authorize';
|
14 |
-
const PAYMENT_TYPE_SALE = 'authorize_capture';
|
15 |
-
|
16 |
-
const SUCCESS_URL = 'mpay24/payment/success';
|
17 |
-
const GUEST_SUCCESS_URL = 'mpay24/payment/guestsuccess';
|
18 |
-
const ERROR_URL = 'mpay24/payment/error';
|
19 |
-
const CONFIRMATION_URL = 'mpay24/payment/confirmation';
|
20 |
-
|
21 |
-
const CANCEL_URL = 'mpay24/payment/cancel';
|
22 |
-
|
23 |
-
const MAGENTO_VERSION = "Magento 1.4.
|
24 |
|
25 |
var $tid;
|
26 |
var $price;
|
@@ -33,196 +33,199 @@ include_once("MPay24Shop.php");
|
|
33 |
return array("CB", "MAESTRO", "PAYPAL", "ELV", "PB", "MPASS", "INVOICE", "HP", "SAFETYPAY");
|
34 |
}
|
35 |
|
36 |
-
private function getOrder($tid=null) {
|
37 |
-
$order = Mage::getSingleton('sales/order');
|
38 |
|
39 |
-
if($tid == null)
|
40 |
-
return $order->loadByIncrementId($this->getCheckout()->getLastRealOrderId());
|
41 |
-
else
|
42 |
-
return $order->loadByIncrementId($tid);
|
43 |
}
|
44 |
|
45 |
function updateTransaction($tid, $args, $shippingConfirmed) {}
|
46 |
|
47 |
function updateStatusToCancel($tid) {
|
48 |
-
$order = $this->getOrder($tid);
|
49 |
-
Mage::log('updateStatusToCancel called for order '.$order->getData('increment_id'));
|
50 |
-
$confirmationCalled = "Payment ";
|
51 |
-
|
52 |
-
$status = "";
|
53 |
-
|
54 |
-
$incrementId = $order->getData('increment_id');
|
55 |
-
$tid = $order->getId();
|
56 |
-
|
57 |
-
if($order->getPayment()) {
|
58 |
-
$mPay24MagentoShop = $this->getMPay24Api();
|
59 |
-
$mPAY24Result = $mPay24MagentoShop->updateTransactionStatus($incrementId);
|
60 |
-
|
61 |
-
if($mPAY24Result->getGeneralResponse()->getStatus() != 'OK' || $mPAY24Result->getParam('APPR_CODE') == '')
|
62 |
-
$apprCode = 'N/A';
|
63 |
-
else
|
64 |
-
$apprCode = $mPAY24Result->getParam('APPR_CODE');
|
65 |
-
|
66 |
-
switch ($mPAY24Result->getGeneralResponse()->getStatus()) {
|
67 |
-
case "OK":
|
68 |
-
if($order->getPayment()->getAdditionalInformation('user_field') == $mPAY24Result->getParam('USER_FIELD')) {
|
69 |
-
$updateResult = "The transaction status was succesfully updated!";
|
70 |
-
|
71 |
-
$order->getPayment()->setAdditionalData($mPAY24Result->getParam("P_TYPE"))->save();
|
72 |
-
$order->getPayment()->setCcType($mPAY24Result->getParam('BRAND'))->save();
|
73 |
-
$order->getPayment()->setAdditionalInformation('status', true)->save();
|
74 |
-
$updateResult .= "\n\nActual status: " . $mPAY24Result->getParam('STATUS ');
|
75 |
-
$updateResult .= "\nAmount: " . number_format($mPAY24Result->getParam('PRICE')/100, 2, '.', '') . " " . $mPAY24Result->getParam('CURRENCY');
|
76 |
-
$updateResult .= "\nMPAYTID: " . $mPAY24Result->getParam('MPAYTID');
|
77 |
-
$updateResult .= "\nAppr_code: " . $apprCode;
|
78 |
-
|
79 |
-
$status = $mPAY24Result->getParam('TSTATUS');
|
80 |
-
|
81 |
-
switch($status) {
|
82 |
-
case 'RESERVED':
|
83 |
-
if($order->getId()) {
|
84 |
-
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
85 |
-
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
86 |
-
$order->getPayment()->setAmountAuthorized($mPAY24Result->getParam('PRICE')/100)->save();
|
87 |
-
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
88 |
-
$order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("RESERVED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]');
|
89 |
-
$order->sendNewOrderEmail();
|
90 |
-
|
91 |
-
if($order->getInvoiceCollection()->count() == 0)
|
92 |
-
if(Mage::getStoreConfig('payment/mpay24/paid_payment_action') == MPay24MagentoShop::PAYMENT_TYPE_SALE) {
|
93 |
-
$order->getPayment()->setAdditionalInformation('mpay24AutoClearing', true)->save();
|
94 |
-
$this->_createInvoice($order, true);
|
95 |
-
} else
|
96 |
-
$this->_createInvoice($order);
|
97 |
-
}
|
98 |
-
|
99 |
-
$order->save();
|
100 |
-
break;
|
101 |
-
case 'BILLED':
|
102 |
-
if($order->getInvoiceCollection()->count() == 0) {
|
103 |
-
if(in_array($mPAY24Result->getParam('P_TYPE'), MPay24MagentoShop::getAllowedAuth())) {
|
104 |
-
$onlineCapture = false;
|
105 |
-
$mif = true;
|
106 |
-
} else {
|
107 |
-
$onlineCapture = true;
|
108 |
-
$mif = false;
|
109 |
-
}
|
110 |
-
|
111 |
-
$order->getPayment()->setAmountCharged($mPAY24Result->getParam('PRICE')/100)->save();
|
112 |
-
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
113 |
-
$order->sendOrderUpdateEmail();
|
114 |
-
|
115 |
-
if($confirmation) {
|
116 |
-
$order->getPayment()->setAdditionalInformation('mpay24AutoClearing', false)->save();
|
117 |
-
$this->_createInvoice($order, true, true, $onlineCapture);
|
118 |
-
} else
|
119 |
-
$this->_createInvoice($order, true, $mif, $onlineCapture);
|
120 |
-
|
121 |
-
$order->save();
|
122 |
-
}
|
123 |
-
|
124 |
-
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
125 |
-
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
126 |
-
|
127 |
-
if($order->getIsNotVirtual())
|
128 |
-
$s = Mage::getStoreConfig('payment/mpay24/paid_order_status');
|
129 |
-
else
|
130 |
-
$s = Mage_Sales_Model_Order::STATE_COMPLETE;
|
131 |
-
|
132 |
-
$order->addStatusToHistory($s, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]', true)->save();
|
133 |
-
$order->save();
|
134 |
-
break;
|
135 |
-
case 'CREDITED':
|
136 |
-
if ($order->getTotalOnlineRefunded() == 0.00) {
|
137 |
-
$creditmemo = Mage::getModel('sales/service_order', $order)
|
138 |
-
->prepareCreditmemo()
|
139 |
-
->setPaymentRefundDisallowed(true)
|
140 |
-
->setAutomaticallyCreated(true)
|
141 |
-
->register();
|
142 |
-
|
143 |
-
$creditmemo->addComment(Mage::helper('mpay24')->__("Credit memo has been created automatically through of MI/F crediting!"));
|
144 |
-
$creditmemo->save();
|
145 |
-
|
146 |
-
$order->getPayment()->refund($creditmemo)->save();
|
147 |
-
|
148 |
-
$order->sendOrderUpdateEmail();
|
149 |
-
}
|
150 |
-
|
151 |
-
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
152 |
-
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
153 |
-
|
154 |
-
$this->_addChildTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND,
|
155 |
-
Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE);
|
156 |
-
|
157 |
-
$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_COMPLETE, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("CREDITED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
|
158 |
-
$order->save();
|
159 |
-
|
160 |
-
break;
|
161 |
-
case 'SUSPENDED':
|
162 |
-
if($order->getId()) {
|
163 |
-
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
164 |
-
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
165 |
-
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
166 |
-
$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("SUSPENDED") . ' [ '.$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]');
|
167 |
-
}
|
168 |
-
|
169 |
-
$order->save();
|
170 |
-
break;
|
171 |
-
case 'REVERSED':
|
172 |
-
if($order->getState() != Mage_Sales_Model_Order::STATE_CANCELED)
|
173 |
-
foreach ($order->getInvoiceCollection() as $orderInvoice) {
|
174 |
-
$order->getPayment()->setAdditionalInformation('MIFReverse', true)->save();
|
175 |
-
$order->getPayment()->void($orderInvoice)->save();
|
176 |
-
}
|
177 |
-
|
178 |
-
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
179 |
-
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
180 |
-
|
181 |
-
$order->sendOrderUpdateEmail();
|
182 |
-
$order->addStatusToHistory($order->getState(), Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("REVERSED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]', true)->save();
|
183 |
-
$order->save();
|
184 |
-
break;
|
185 |
-
case 'ERROR':
|
186 |
-
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
187 |
-
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
188 |
-
$order->getPayment()->setAdditionalInformation('error', true)->save();
|
189 |
-
|
190 |
-
if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED &&
|
191 |
-
$order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
|
192 |
-
$order->cancel($order->getPayment())->save();
|
193 |
-
|
194 |
-
$order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("ERROR") . " " . $order->getPayment()->getAdditionalInformation('error_text'));
|
195 |
-
$order->save();
|
196 |
-
|
197 |
-
break;
|
198 |
-
default:
|
199 |
-
break;
|
200 |
-
}
|
201 |
}
|
202 |
else
|
203 |
-
$status = "SUSPENDED";
|
204 |
-
|
205 |
-
break;
|
206 |
-
case "ERROR":
|
207 |
-
if($mPAY24Result->getReturnCode() == 'NOT_FOUND' && $order->getPayment()->getAdditionalInformation('cancelButton'))
|
208 |
-
$updateResult = 'The order was canceled by the customer';
|
209 |
-
else
|
210 |
-
$
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
$order->
|
219 |
-
$order->getPayment()->setAdditionalInformation('
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
break;
|
224 |
-
|
225 |
-
|
|
|
|
|
|
|
226 |
return $status;
|
227 |
}
|
228 |
|
@@ -286,7 +289,7 @@ include_once("MPay24Shop.php");
|
|
286 |
|
287 |
$mdxi->Order->PaymentTypes->Payment(1)->setType($this->type);
|
288 |
|
289 |
-
if($this->type != $this->brand)
|
290 |
$mdxi->Order->PaymentTypes->Payment(1)->setBrand($this->brand);
|
291 |
} else {
|
292 |
$brandsAndTypes = explode(", ", Mage::getStoreConfig('mpay24/mpay24/active_payment_types'));
|
@@ -305,18 +308,18 @@ include_once("MPay24Shop.php");
|
|
305 |
}
|
306 |
|
307 |
if(!$allPS && Mage::getStoreConfig('mpay24/mpay24/payments_active') != 'false') {
|
308 |
-
$mdxi->Order->PaymentTypes->setEnable('true');
|
309 |
-
|
310 |
-
$brands = $this->getActiveMethods();
|
311 |
-
$c = 1;
|
312 |
|
313 |
-
foreach($brands as $brand => $type) {
|
314 |
-
$mdxi->Order->PaymentTypes->Payment($c)->setType($type);
|
315 |
|
316 |
-
if($type != $brand)
|
317 |
-
$mdxi->Order->PaymentTypes->Payment($c)->setBrand($brand);
|
318 |
|
319 |
-
$c++;
|
320 |
}
|
321 |
}
|
322 |
}
|
@@ -509,7 +512,7 @@ include_once("MPay24Shop.php");
|
|
509 |
} else {
|
510 |
$mdxi->Order->BillingAddr->Street = $billingStreet['Street'];
|
511 |
|
512 |
-
if(isset($billingStreet['Street2']))
|
513 |
$mdxi->Order->BillingAddr->Street2 = $billingStreet['Street2'];
|
514 |
}
|
515 |
|
@@ -540,7 +543,7 @@ include_once("MPay24Shop.php");
|
|
540 |
} else {
|
541 |
$mdxi->Order->ShippingAddr->Street = $shippingStreet['Street'];
|
542 |
|
543 |
-
if(isset($shippingStreet['Street2']))
|
544 |
$mdxi->Order->ShippingAddr->Street2 = $shippingStreet['Street2'];
|
545 |
}
|
546 |
|
@@ -663,61 +666,61 @@ include_once("MPay24Shop.php");
|
|
663 |
return $mPay24MagentoShop;
|
664 |
}
|
665 |
|
666 |
-
/**
|
667 |
-
* @abstract Get the payment systems for the merchant from the core_config_data and explode it into an array
|
668 |
-
* @return Array $method
|
669 |
-
*/
|
670 |
-
public function getActiveMethods() {
|
671 |
-
$methods = array();
|
672 |
-
$brandsAndDescriptions = explode(", ", Mage::getStoreConfig('mpay24/mpay24/active_payment_types'));
|
673 |
-
|
674 |
-
$firstPS = Mage::getStoreConfig('mpay24/mpay24/ps_1');
|
675 |
-
$allPS = true;
|
676 |
-
|
677 |
-
for($i=2; $i<=Mage::getStoreConfig('mpay24/mpay24/payments_count'); $i++)
|
678 |
-
if($firstPS != Mage::getStoreConfig('mpay24/mpay24/ps_'.$i)) {
|
679 |
-
$allPS = false;
|
680 |
-
break;
|
681 |
-
}
|
682 |
-
|
683 |
-
if($allPS) {
|
684 |
-
if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'false')
|
685 |
-
if($firstPS == 1) {
|
686 |
-
Mage::getConfig()->saveConfig("payment/mpay24/active", 0);
|
687 |
-
Mage::getConfig()->reinit();
|
688 |
-
Mage::app()->reinitStores();
|
689 |
-
}
|
690 |
-
else
|
691 |
-
if($firstPS == 0) {
|
692 |
-
Mage::getConfig()->saveConfig("payment/mpay24/active", 0);
|
693 |
-
Mage::getConfig()->reinit();
|
694 |
-
Mage::app()->reinitStores();
|
695 |
-
}
|
696 |
-
|
697 |
-
foreach($brandsAndDescriptions as $brandAndDescr) {
|
698 |
-
$brand = substr($brandAndDescr, 0, strpos($brandAndDescr, "=>"));
|
699 |
-
$description = substr($brandAndDescr, strpos($brandAndDescr, "=>")+2);
|
700 |
-
$methods[$brand] = $description;
|
701 |
-
}
|
702 |
-
} else {
|
703 |
-
if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'false')
|
704 |
-
$check = 0;
|
705 |
-
else
|
706 |
-
$check = 1;
|
707 |
-
|
708 |
-
$i=1;
|
709 |
|
710 |
-
foreach($brandsAndDescriptions as $brandAndDescr) {
|
711 |
-
if(Mage::getStoreConfig('mpay24/mpay24/ps_'.$i) == $check) {
|
712 |
-
$brand = substr($brandAndDescr, 0, strpos($brandAndDescr, "=>"));
|
713 |
-
$description = substr($brandAndDescr, strpos($brandAndDescr, "=>")+2);
|
714 |
-
$methods[$brand] = $description;
|
715 |
-
}
|
716 |
-
$i++;
|
717 |
-
}
|
718 |
-
}
|
719 |
-
|
720 |
-
return $methods;
|
721 |
}
|
722 |
}
|
723 |
-
?>
|
10 |
|
11 |
class MPay24MagentoShop extends MPay24Shop {
|
12 |
|
13 |
+
const PAYMENT_TYPE_AUTH = 'authorize';
|
14 |
+
const PAYMENT_TYPE_SALE = 'authorize_capture';
|
15 |
+
|
16 |
+
const SUCCESS_URL = 'mpay24/payment/success';
|
17 |
+
const GUEST_SUCCESS_URL = 'mpay24/payment/guestsuccess';
|
18 |
+
const ERROR_URL = 'mpay24/payment/error';
|
19 |
+
const CONFIRMATION_URL = 'mpay24/payment/confirmation';
|
20 |
+
|
21 |
+
const CANCEL_URL = 'mpay24/payment/cancel';
|
22 |
+
|
23 |
+
const MAGENTO_VERSION = "Magento 1.4.4 ";
|
24 |
|
25 |
var $tid;
|
26 |
var $price;
|
33 |
return array("CB", "MAESTRO", "PAYPAL", "ELV", "PB", "MPASS", "INVOICE", "HP", "SAFETYPAY");
|
34 |
}
|
35 |
|
36 |
+
private function getOrder($tid=null) {
|
37 |
+
$order = Mage::getSingleton('sales/order');
|
38 |
|
39 |
+
if($tid == null)
|
40 |
+
return $order->loadByIncrementId($this->getCheckout()->getLastRealOrderId());
|
41 |
+
else
|
42 |
+
return $order->loadByIncrementId($tid);
|
43 |
}
|
44 |
|
45 |
function updateTransaction($tid, $args, $shippingConfirmed) {}
|
46 |
|
47 |
function updateStatusToCancel($tid) {
|
48 |
+
$order = $this->getOrder($tid);
|
49 |
+
Mage::log('updateStatusToCancel called for order '.$order->getData('increment_id'));
|
50 |
+
$confirmationCalled = "Payment ";
|
51 |
+
|
52 |
+
$status = "";
|
53 |
+
|
54 |
+
$incrementId = $order->getData('increment_id');
|
55 |
+
$tid = $order->getId();
|
56 |
+
|
57 |
+
if($order->getPayment()) {
|
58 |
+
$mPay24MagentoShop = $this->getMPay24Api();
|
59 |
+
$mPAY24Result = $mPay24MagentoShop->updateTransactionStatus($incrementId);
|
60 |
+
|
61 |
+
if($mPAY24Result->getGeneralResponse()->getStatus() != 'OK' || $mPAY24Result->getParam('APPR_CODE') == '')
|
62 |
+
$apprCode = 'N/A';
|
63 |
+
else
|
64 |
+
$apprCode = $mPAY24Result->getParam('APPR_CODE');
|
65 |
+
|
66 |
+
switch ($mPAY24Result->getGeneralResponse()->getStatus()) {
|
67 |
+
case "OK":
|
68 |
+
if($order->getPayment()->getAdditionalInformation('user_field') == $mPAY24Result->getParam('USER_FIELD')) {
|
69 |
+
$updateResult = "The transaction status was succesfully updated!";
|
70 |
+
|
71 |
+
$order->getPayment()->setAdditionalData($mPAY24Result->getParam("P_TYPE"))->save();
|
72 |
+
$order->getPayment()->setCcType($mPAY24Result->getParam('BRAND'))->save();
|
73 |
+
$order->getPayment()->setAdditionalInformation('status', true)->save();
|
74 |
+
$updateResult .= "\n\nActual status: " . $mPAY24Result->getParam('STATUS ');
|
75 |
+
$updateResult .= "\nAmount: " . number_format($mPAY24Result->getParam('PRICE')/100, 2, '.', '') . " " . $mPAY24Result->getParam('CURRENCY');
|
76 |
+
$updateResult .= "\nMPAYTID: " . $mPAY24Result->getParam('MPAYTID');
|
77 |
+
$updateResult .= "\nAppr_code: " . $apprCode;
|
78 |
+
|
79 |
+
$status = $mPAY24Result->getParam('TSTATUS');
|
80 |
+
|
81 |
+
switch($status) {
|
82 |
+
case 'RESERVED':
|
83 |
+
if($order->getId()) {
|
84 |
+
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
85 |
+
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
86 |
+
$order->getPayment()->setAmountAuthorized($mPAY24Result->getParam('PRICE')/100)->save();
|
87 |
+
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
88 |
+
$order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("RESERVED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]');
|
89 |
+
$order->sendNewOrderEmail();
|
90 |
+
|
91 |
+
if($order->getInvoiceCollection()->count() == 0)
|
92 |
+
if(Mage::getStoreConfig('payment/mpay24/paid_payment_action') == MPay24MagentoShop::PAYMENT_TYPE_SALE) {
|
93 |
+
$order->getPayment()->setAdditionalInformation('mpay24AutoClearing', true)->save();
|
94 |
+
$this->_createInvoice($order, true);
|
95 |
+
} else
|
96 |
+
$this->_createInvoice($order);
|
97 |
+
}
|
98 |
+
|
99 |
+
$order->save();
|
100 |
+
break;
|
101 |
+
case 'BILLED':
|
102 |
+
if($order->getInvoiceCollection()->count() == 0) {
|
103 |
+
if(in_array($mPAY24Result->getParam('P_TYPE'), MPay24MagentoShop::getAllowedAuth())) {
|
104 |
+
$onlineCapture = false;
|
105 |
+
$mif = true;
|
106 |
+
} else {
|
107 |
+
$onlineCapture = true;
|
108 |
+
$mif = false;
|
109 |
+
}
|
110 |
+
|
111 |
+
$order->getPayment()->setAmountCharged($mPAY24Result->getParam('PRICE')/100)->save();
|
112 |
+
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
113 |
+
$order->sendOrderUpdateEmail();
|
114 |
+
|
115 |
+
if($confirmation) {
|
116 |
+
$order->getPayment()->setAdditionalInformation('mpay24AutoClearing', false)->save();
|
117 |
+
$this->_createInvoice($order, true, true, $onlineCapture);
|
118 |
+
} else
|
119 |
+
$this->_createInvoice($order, true, $mif, $onlineCapture);
|
120 |
+
|
121 |
+
$order->save();
|
122 |
+
}
|
123 |
+
|
124 |
+
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
125 |
+
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
126 |
+
|
127 |
+
if($order->getIsNotVirtual())
|
128 |
+
$s = Mage::getStoreConfig('payment/mpay24/paid_order_status');
|
129 |
+
else
|
130 |
+
$s = Mage_Sales_Model_Order::STATE_COMPLETE;
|
131 |
+
|
132 |
+
$order->addStatusToHistory($s, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]', true)->save();
|
133 |
+
$order->save();
|
134 |
+
break;
|
135 |
+
case 'CREDITED':
|
136 |
+
if ($order->getTotalOnlineRefunded() == 0.00) {
|
137 |
+
$creditmemo = Mage::getModel('sales/service_order', $order)
|
138 |
+
->prepareCreditmemo()
|
139 |
+
->setPaymentRefundDisallowed(true)
|
140 |
+
->setAutomaticallyCreated(true)
|
141 |
+
->register();
|
142 |
+
|
143 |
+
$creditmemo->addComment(Mage::helper('mpay24')->__("Credit memo has been created automatically through of MI/F crediting!"));
|
144 |
+
$creditmemo->save();
|
145 |
+
|
146 |
+
$order->getPayment()->refund($creditmemo)->save();
|
147 |
+
|
148 |
+
$order->sendOrderUpdateEmail();
|
149 |
+
}
|
150 |
+
|
151 |
+
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
152 |
+
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
153 |
+
|
154 |
+
$this->_addChildTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_REFUND,
|
155 |
+
Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE);
|
156 |
+
|
157 |
+
$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_COMPLETE, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("CREDITED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
|
158 |
+
$order->save();
|
159 |
+
|
160 |
+
break;
|
161 |
+
case 'SUSPENDED':
|
162 |
+
if($order->getId()) {
|
163 |
+
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
164 |
+
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
165 |
+
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
166 |
+
$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("SUSPENDED") . ' [ '.$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]');
|
167 |
+
}
|
168 |
+
|
169 |
+
$order->save();
|
170 |
+
break;
|
171 |
+
case 'REVERSED':
|
172 |
+
if($order->getState() != Mage_Sales_Model_Order::STATE_CANCELED)
|
173 |
+
foreach ($order->getInvoiceCollection() as $orderInvoice) {
|
174 |
+
$order->getPayment()->setAdditionalInformation('MIFReverse', true)->save();
|
175 |
+
$order->getPayment()->void($orderInvoice)->save();
|
176 |
+
}
|
177 |
+
|
178 |
+
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
179 |
+
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
180 |
+
|
181 |
+
$order->sendOrderUpdateEmail();
|
182 |
+
$order->addStatusToHistory($order->getState(), Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("REVERSED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]', true)->save();
|
183 |
+
$order->save();
|
184 |
+
break;
|
185 |
+
case 'ERROR':
|
186 |
+
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
187 |
+
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
188 |
+
$order->getPayment()->setAdditionalInformation('error', true)->save();
|
189 |
+
|
190 |
+
if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED &&
|
191 |
+
$order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
|
192 |
+
$order->cancel($order->getPayment())->save();
|
193 |
+
|
194 |
+
$order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("ERROR") . " " . $order->getPayment()->getAdditionalInformation('error_text'));
|
195 |
+
$order->save();
|
196 |
+
|
197 |
+
break;
|
198 |
+
default:
|
199 |
+
break;
|
200 |
+
}
|
201 |
}
|
202 |
else
|
203 |
+
$status = "SUSPENDED";
|
204 |
+
|
205 |
+
break;
|
206 |
+
case "ERROR":
|
207 |
+
if($mPAY24Result->getReturnCode() == 'NOT_FOUND' && $order->getPayment()->getAdditionalInformation('cancelButton'))
|
208 |
+
$updateResult = 'The order was canceled by the customer';
|
209 |
+
else {
|
210 |
+
$status = 'SUSPENDED';
|
211 |
+
$updateResult = Mage::helper('mpay24')->__("The transaction was not found!");
|
212 |
+
}
|
213 |
+
|
214 |
+
if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED &&
|
215 |
+
$order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED && $status != 'SUSPENDED')
|
216 |
+
$order->cancel($order->getPayment())->save();
|
217 |
+
|
218 |
+
$order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__($updateResult), true)->save();
|
219 |
+
$order->getPayment()->setAdditionalInformation('status', true)->save();
|
220 |
+
$order->getPayment()->setAdditionalInformation('mpay_tid', 'N/A')->save();
|
221 |
+
$order->getPayment()->setAdditionalInformation('appr_code', 'N/A')->save();
|
222 |
+
|
223 |
+
break;
|
224 |
+
default:
|
225 |
+
$status = 'SUSPENDED';
|
226 |
+
break;
|
227 |
+
}
|
228 |
+
}
|
229 |
return $status;
|
230 |
}
|
231 |
|
289 |
|
290 |
$mdxi->Order->PaymentTypes->Payment(1)->setType($this->type);
|
291 |
|
292 |
+
if($this->type != $this->brand)
|
293 |
$mdxi->Order->PaymentTypes->Payment(1)->setBrand($this->brand);
|
294 |
} else {
|
295 |
$brandsAndTypes = explode(", ", Mage::getStoreConfig('mpay24/mpay24/active_payment_types'));
|
308 |
}
|
309 |
|
310 |
if(!$allPS && Mage::getStoreConfig('mpay24/mpay24/payments_active') != 'false') {
|
311 |
+
$mdxi->Order->PaymentTypes->setEnable('true');
|
312 |
+
|
313 |
+
$brands = $this->getActiveMethods();
|
314 |
+
$c = 1;
|
315 |
|
316 |
+
foreach($brands as $brand => $type) {
|
317 |
+
$mdxi->Order->PaymentTypes->Payment($c)->setType($type);
|
318 |
|
319 |
+
if($type != $brand)
|
320 |
+
$mdxi->Order->PaymentTypes->Payment($c)->setBrand($brand);
|
321 |
|
322 |
+
$c++;
|
323 |
}
|
324 |
}
|
325 |
}
|
512 |
} else {
|
513 |
$mdxi->Order->BillingAddr->Street = $billingStreet['Street'];
|
514 |
|
515 |
+
if(isset($billingStreet['Street2']))
|
516 |
$mdxi->Order->BillingAddr->Street2 = $billingStreet['Street2'];
|
517 |
}
|
518 |
|
543 |
} else {
|
544 |
$mdxi->Order->ShippingAddr->Street = $shippingStreet['Street'];
|
545 |
|
546 |
+
if(isset($shippingStreet['Street2']))
|
547 |
$mdxi->Order->ShippingAddr->Street2 = $shippingStreet['Street2'];
|
548 |
}
|
549 |
|
666 |
return $mPay24MagentoShop;
|
667 |
}
|
668 |
|
669 |
+
/**
|
670 |
+
* @abstract Get the payment systems for the merchant from the core_config_data and explode it into an array
|
671 |
+
* @return Array $method
|
672 |
+
*/
|
673 |
+
public function getActiveMethods() {
|
674 |
+
$methods = array();
|
675 |
+
$brandsAndDescriptions = explode(", ", Mage::getStoreConfig('mpay24/mpay24/active_payment_types'));
|
676 |
+
|
677 |
+
$firstPS = Mage::getStoreConfig('mpay24/mpay24/ps_1');
|
678 |
+
$allPS = true;
|
679 |
+
|
680 |
+
for($i=2; $i<=Mage::getStoreConfig('mpay24/mpay24/payments_count'); $i++)
|
681 |
+
if($firstPS != Mage::getStoreConfig('mpay24/mpay24/ps_'.$i)) {
|
682 |
+
$allPS = false;
|
683 |
+
break;
|
684 |
+
}
|
685 |
+
|
686 |
+
if($allPS) {
|
687 |
+
if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'false')
|
688 |
+
if($firstPS == 1) {
|
689 |
+
Mage::getConfig()->saveConfig("payment/mpay24/active", 0);
|
690 |
+
Mage::getConfig()->reinit();
|
691 |
+
Mage::app()->reinitStores();
|
692 |
+
}
|
693 |
+
else
|
694 |
+
if($firstPS == 0) {
|
695 |
+
Mage::getConfig()->saveConfig("payment/mpay24/active", 0);
|
696 |
+
Mage::getConfig()->reinit();
|
697 |
+
Mage::app()->reinitStores();
|
698 |
+
}
|
699 |
+
|
700 |
+
foreach($brandsAndDescriptions as $brandAndDescr) {
|
701 |
+
$brand = substr($brandAndDescr, 0, strpos($brandAndDescr, "=>"));
|
702 |
+
$description = substr($brandAndDescr, strpos($brandAndDescr, "=>")+2);
|
703 |
+
$methods[$brand] = $description;
|
704 |
+
}
|
705 |
+
} else {
|
706 |
+
if(Mage::getStoreConfig('mpay24/mpay24/payments_active') == 'false')
|
707 |
+
$check = 0;
|
708 |
+
else
|
709 |
+
$check = 1;
|
710 |
+
|
711 |
+
$i=1;
|
712 |
|
713 |
+
foreach($brandsAndDescriptions as $brandAndDescr) {
|
714 |
+
if(Mage::getStoreConfig('mpay24/mpay24/ps_'.$i) == $check) {
|
715 |
+
$brand = substr($brandAndDescr, 0, strpos($brandAndDescr, "=>"));
|
716 |
+
$description = substr($brandAndDescr, strpos($brandAndDescr, "=>")+2);
|
717 |
+
$methods[$brand] = $description;
|
718 |
+
}
|
719 |
+
$i++;
|
720 |
+
}
|
721 |
+
}
|
722 |
+
|
723 |
+
return $methods;
|
724 |
}
|
725 |
}
|
726 |
+
?>
|
app/code/community/Mpay24/Mpay24/Model/Api/MPay24Shop.php
CHANGED
@@ -216,7 +216,7 @@
|
|
216 |
|
217 |
$this->write_log("ERROR", "The schema you have created is not valid!\n\n". trim($error->message) . "\n\n$mdxiXML");
|
218 |
|
219 |
-
Mage::log("The schema you have created is not valid!\n\n". trim($error->message) . "\n\n$mdxiXML", 10);
|
220 |
Mage::throwException(Mage::helper('mpay24')->__('Please contact the merchant,')."\n".Mage::helper('mpay24')->__('this payment is not possible at the moment!'));
|
221 |
|
222 |
$this->mPay24Api->dieWithMsg("The schema you have created is not valid!". "<br><br>".$errors.
|
@@ -531,12 +531,12 @@
|
|
531 |
|
532 |
$clearAmountResult = $this->mPay24Api->ManualClear($mPAYTid, $amount, $currency);
|
533 |
|
534 |
-
if($this->mPay24Api->getDebug()) {
|
535 |
$this->write_log("ClearAmount",
|
536 |
"REQUEST to " . $this->mPay24Api->getEtpURL() . " - ".str_replace("><", ">\n<", $this->mPay24Api->getRequest())."\n");
|
537 |
$this->write_log("ClearAmount",
|
538 |
"RESPONSE - ".str_replace("><", ">\n<", $this->mPay24Api->getResponse())."\n");
|
539 |
-
}
|
540 |
|
541 |
return $clearAmountResult;
|
542 |
}
|
@@ -718,4 +718,4 @@
|
|
718 |
return $this->properties;
|
719 |
}
|
720 |
}
|
721 |
-
?>
|
216 |
|
217 |
$this->write_log("ERROR", "The schema you have created is not valid!\n\n". trim($error->message) . "\n\n$mdxiXML");
|
218 |
|
219 |
+
Mage::log("The schema you have created is not valid!\n\n". trim($error->message) . "\n\n$mdxiXML", 10);
|
220 |
Mage::throwException(Mage::helper('mpay24')->__('Please contact the merchant,')."\n".Mage::helper('mpay24')->__('this payment is not possible at the moment!'));
|
221 |
|
222 |
$this->mPay24Api->dieWithMsg("The schema you have created is not valid!". "<br><br>".$errors.
|
531 |
|
532 |
$clearAmountResult = $this->mPay24Api->ManualClear($mPAYTid, $amount, $currency);
|
533 |
|
534 |
+
//if($this->mPay24Api->getDebug()) {
|
535 |
$this->write_log("ClearAmount",
|
536 |
"REQUEST to " . $this->mPay24Api->getEtpURL() . " - ".str_replace("><", ">\n<", $this->mPay24Api->getRequest())."\n");
|
537 |
$this->write_log("ClearAmount",
|
538 |
"RESPONSE - ".str_replace("><", ">\n<", $this->mPay24Api->getResponse())."\n");
|
539 |
+
//}
|
540 |
|
541 |
return $clearAmountResult;
|
542 |
}
|
718 |
return $this->properties;
|
719 |
}
|
720 |
}
|
721 |
+
?>
|
app/code/community/Mpay24/Mpay24/Model/Selectpayment.php
CHANGED
@@ -55,7 +55,7 @@ class Mpay24_Mpay24_Model_Selectpayment extends Mpay24_Mpay24_Model_Method_Selec
|
|
55 |
* @return Mpay24_Mpay24_Model_PaymentMethod
|
56 |
*/
|
57 |
public function capture(Varien_Object $payment, $amount) {
|
58 |
-
if(
|
59 |
$this->clearSession();
|
60 |
$mPay24MagentoShop = MPay24MagentoShop::getMPay24Api();
|
61 |
$mPAY24Result = $mPay24MagentoShop->clearAmount($payment->getOrder()->getIncrementId(),$amount*100);
|
@@ -159,4 +159,4 @@ class Mpay24_Mpay24_Model_Selectpayment extends Mpay24_Mpay24_Model_Method_Selec
|
|
159 |
return $this;
|
160 |
}
|
161 |
}
|
162 |
-
?>
|
55 |
* @return Mpay24_Mpay24_Model_PaymentMethod
|
56 |
*/
|
57 |
public function capture(Varien_Object $payment, $amount) {
|
58 |
+
if(!$payment->getAdditionalInformation('MIFClear') && Mage::getStoreConfig('payment/mpay24/paid_payment_action') != MPay24MagentoShop::PAYMENT_TYPE_SALE && !$payment->getAdditionalInformation('error')) {
|
59 |
$this->clearSession();
|
60 |
$mPay24MagentoShop = MPay24MagentoShop::getMPay24Api();
|
61 |
$mPAY24Result = $mPay24MagentoShop->clearAmount($payment->getOrder()->getIncrementId(),$amount*100);
|
159 |
return $this;
|
160 |
}
|
161 |
}
|
162 |
+
?>
|
app/code/community/Mpay24/Mpay24/controllers/PaymentController.php
CHANGED
@@ -109,7 +109,7 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
|
|
109 |
Mage::log('error action called for order '.$order->getData('increment_id'));
|
110 |
$order->getPayment()->setAdditionalInformation('error_text', utf8_encode($_REQUEST['ERROR']))->save();
|
111 |
$order->getPayment()->setAdditionalInformation('error', true)->save();
|
112 |
-
$this->getTransactionStatus();
|
113 |
|
114 |
Mage::getSingleton('mpay24/session')->setParentRedirectUrl('sales/order/view/order_id/'.$order->getId().'/');
|
115 |
$this->getResponse()->setBody($this->getLayout()->createBlock("mpay24/parentRedirect")->toHtml());
|
@@ -206,9 +206,9 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
|
|
206 |
$updateResult .= "\nMPAYTID: " . $mPAY24Result->getParam('MPAYTID');
|
207 |
$updateResult .= "\nAppr_code: " . $apprCode;
|
208 |
|
209 |
-
if($order->getIsNotVirtual())
|
210 |
-
$s = Mage::getStoreConfig('payment/mpay24/paid_order_status');
|
211 |
-
else
|
212 |
$s = Mage_Sales_Model_Order::STATE_COMPLETE;
|
213 |
|
214 |
switch($status) {
|
@@ -222,10 +222,9 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
|
|
222 |
$order->sendNewOrderEmail();
|
223 |
|
224 |
if($order->getInvoiceCollection()->count() == 0)
|
225 |
-
if(Mage::getStoreConfig('payment/mpay24/paid_payment_action') == MPay24MagentoShop::PAYMENT_TYPE_SALE)
|
226 |
-
$order->getPayment()->setAdditionalInformation('mpay24AutoClearing', true)->save();
|
227 |
$this->_createInvoice($order, true);
|
228 |
-
|
229 |
$this->_createInvoice($order);
|
230 |
}
|
231 |
|
@@ -245,11 +244,10 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
|
|
245 |
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
246 |
$order->sendOrderUpdateEmail();
|
247 |
|
248 |
-
if($order->getInvoiceCollection()->count() == 0
|
249 |
-
if($confirmation)
|
250 |
-
$order->getPayment()->setAdditionalInformation('mpay24AutoClearing', false)->save();
|
251 |
$this->_createInvoice($order, true, true, $onlineCapture);
|
252 |
-
|
253 |
$this->_createInvoice($order, true, $mif, $onlineCapture);
|
254 |
$order->save();
|
255 |
}
|
@@ -289,7 +287,7 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
|
|
289 |
break;
|
290 |
case 'SUSPENDED':
|
291 |
if($order->getId()) {
|
292 |
-
$order->getPayment()->setAdditionalInformation('mpay_tid', $
|
293 |
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
294 |
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
295 |
$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("SUSPENDED") . ' [ '.$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]');
|
@@ -543,7 +541,8 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
|
|
543 |
if($capture && $onlineCapture)
|
544 |
$invoice->setRequestedCaptureCase(Mage_Sales_Model_Order_Invoice::CAPTURE_ONLINE);
|
545 |
|
546 |
-
$invoice->register();
|
|
|
547 |
|
548 |
Mage::getModel('core/resource_transaction')
|
549 |
->addObject($invoice)
|
@@ -597,4 +596,4 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
|
|
597 |
$parentTransaction->setIsClosed(true)->save();
|
598 |
}
|
599 |
}
|
600 |
-
}
|
109 |
Mage::log('error action called for order '.$order->getData('increment_id'));
|
110 |
$order->getPayment()->setAdditionalInformation('error_text', utf8_encode($_REQUEST['ERROR']))->save();
|
111 |
$order->getPayment()->setAdditionalInformation('error', true)->save();
|
112 |
+
$this->getTransactionStatus($_REQUEST['TID']);
|
113 |
|
114 |
Mage::getSingleton('mpay24/session')->setParentRedirectUrl('sales/order/view/order_id/'.$order->getId().'/');
|
115 |
$this->getResponse()->setBody($this->getLayout()->createBlock("mpay24/parentRedirect")->toHtml());
|
206 |
$updateResult .= "\nMPAYTID: " . $mPAY24Result->getParam('MPAYTID');
|
207 |
$updateResult .= "\nAppr_code: " . $apprCode;
|
208 |
|
209 |
+
if($order->getIsNotVirtual())
|
210 |
+
$s = Mage::getStoreConfig('payment/mpay24/paid_order_status');
|
211 |
+
else
|
212 |
$s = Mage_Sales_Model_Order::STATE_COMPLETE;
|
213 |
|
214 |
switch($status) {
|
222 |
$order->sendNewOrderEmail();
|
223 |
|
224 |
if($order->getInvoiceCollection()->count() == 0)
|
225 |
+
if(Mage::getStoreConfig('payment/mpay24/paid_payment_action') == MPay24MagentoShop::PAYMENT_TYPE_SALE)
|
|
|
226 |
$this->_createInvoice($order, true);
|
227 |
+
else
|
228 |
$this->_createInvoice($order);
|
229 |
}
|
230 |
|
244 |
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
245 |
$order->sendOrderUpdateEmail();
|
246 |
|
247 |
+
if($order->getInvoiceCollection()->count() == 0) {
|
248 |
+
if($confirmation)
|
|
|
249 |
$this->_createInvoice($order, true, true, $onlineCapture);
|
250 |
+
else
|
251 |
$this->_createInvoice($order, true, $mif, $onlineCapture);
|
252 |
$order->save();
|
253 |
}
|
287 |
break;
|
288 |
case 'SUSPENDED':
|
289 |
if($order->getId()) {
|
290 |
+
$order->getPayment()->setAdditionalInformation('mpay_tid', $mPAY24Result->getParam('MPAYTID'))->save();
|
291 |
$order->getPayment()->setAdditionalInformation('appr_code', $apprCode)->save();
|
292 |
$order->getPayment()->setAdditionalInformation('error', false)->save();
|
293 |
$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("$confirmationCalled") . Mage::helper('mpay24')->__("SUSPENDED") . ' [ '.$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]');
|
541 |
if($capture && $onlineCapture)
|
542 |
$invoice->setRequestedCaptureCase(Mage_Sales_Model_Order_Invoice::CAPTURE_ONLINE);
|
543 |
|
544 |
+
$invoice->register();
|
545 |
+
Mage::log("mPAY24 Extension: Invoice registered!");
|
546 |
|
547 |
Mage::getModel('core/resource_transaction')
|
548 |
->addObject($invoice)
|
596 |
$parentTransaction->setIsClosed(true)->save();
|
597 |
}
|
598 |
}
|
599 |
+
}
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-install-1.4.3.php
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* @category Mpay24
|
16 |
-
* @package Mpay24_Mpay24
|
17 |
-
* @author Filipp Akinfiev
|
18 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
-
*/
|
20 |
-
|
21 |
-
$this->startSetup();
|
22 |
-
|
23 |
-
$this->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
|
24 |
-
|
25 |
-
$this->run("
|
26 |
-
|
27 |
-
-- DROP TABLE if exists {$this->getTable('mpay24_debug')};
|
28 |
-
CREATE TABLE {$this->getTable('mpay24_debug')} (
|
29 |
-
`debug_id` int(10) unsigned NOT NULL auto_increment,
|
30 |
-
`request_body` text,
|
31 |
-
`response_body` text,
|
32 |
-
`request_serialized` text,
|
33 |
-
`result_serialized` text,
|
34 |
-
`request_dump` text,
|
35 |
-
`result_dump` text,
|
36 |
-
`time_stamp` TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
37 |
-
ON UPDATE CURRENT_TIMESTAMP,
|
38 |
-
PRIMARY KEY (`debug_id`)
|
39 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
40 |
-
|
41 |
-
");
|
42 |
-
|
43 |
-
|
44 |
-
$installer->run("
|
45 |
-
UPDATE `sales_flat_quote_payment` SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_sp_cc';
|
46 |
-
");
|
47 |
-
|
48 |
-
$installer->run("
|
49 |
-
UPDATE `sales_flat_order_payment` SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_sp_cc';
|
50 |
-
");
|
51 |
-
|
52 |
-
$this->endSetup();
|
53 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-install-1.4.4.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Mpay24
|
16 |
+
* @package Mpay24_Mpay24
|
17 |
+
* @author Filipp Akinfiev
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
$this->startSetup();
|
22 |
+
|
23 |
+
$this->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
|
24 |
+
|
25 |
+
$this->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
|
26 |
+
|
27 |
+
|
28 |
+
$installer->run("UPDATE `sales_flat_quote_payment` SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_sp_cc';");
|
29 |
+
|
30 |
+
$installer->run("UPDATE `sales_flat_order_payment` SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_sp_cc';");
|
31 |
+
|
32 |
+
$this->endSetup();
|
33 |
+
?>
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-0.6.2-1.4.3.php → mysql4-upgrade-0.6.2-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.0.0-1.4.3.php → mysql4-upgrade-1.0.0-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.0.4-1.4.3.php → mysql4-upgrade-1.0.4-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.0.6-1.4.3.php → mysql4-upgrade-1.0.6-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.0.7-1.4.3.php → mysql4-upgrade-1.0.7-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.1.1-1.4.3.php → mysql4-upgrade-1.1.1-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.1.7-1.4.3.php → mysql4-upgrade-1.1.7-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.1.8-1.4.3.php → mysql4-upgrade-1.1.8-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.1.9-1.4.3.php → mysql4-upgrade-1.1.9-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.2.0-1.4.3.php → mysql4-upgrade-1.2.0-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.2.1-1.4.3.php → mysql4-upgrade-1.2.1-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.2.2-1.4.3.php → mysql4-upgrade-1.2.2-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.3.0-1.4.3.php → mysql4-upgrade-1.3.0-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.0-1.4.3.php → mysql4-upgrade-1.4.0-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.1-1.4.3.php → mysql4-upgrade-1.4.1-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/{mysql4-upgrade-1.4.2-1.4.3.php → mysql4-upgrade-1.4.2-1.4.4.php}
RENAMED
File without changes
|
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-upgrade-1.4.3-1.4.4.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Mpay24
|
16 |
+
* @package Mpay24_Mpay24
|
17 |
+
* @author Filipp Akinfiev
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
$code = 'mpay24';
|
22 |
+
$installer = $this;
|
23 |
+
|
24 |
+
$installer->startSetup();
|
25 |
+
$installer->run("
|
26 |
+
DROP TABLE if exists {$this->getTable('mpay24_debug')};
|
27 |
+
");
|
28 |
+
|
29 |
+
$installer->run("
|
30 |
+
UPDATE `sales_flat_quote_payment` SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_sp_cc';
|
31 |
+
");
|
32 |
+
|
33 |
+
$installer->run("
|
34 |
+
UPDATE `sales_flat_order_payment` SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_sp_cc';
|
35 |
+
");
|
36 |
+
|
37 |
+
$installer->endSetup();
|
38 |
+
?>
|
app/etc/modules/Mpay24_Mpay24.xml
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
<depends>
|
8 |
<Mage_Payment />
|
9 |
</depends>
|
10 |
-
<version>1.4.
|
11 |
</Mpay24_Mpay24>
|
12 |
</modules>
|
13 |
</config>
|
7 |
<depends>
|
8 |
<Mage_Payment />
|
9 |
</depends>
|
10 |
+
<version>1.4.4</version>
|
11 |
</Mpay24_Mpay24>
|
12 |
</modules>
|
13 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>mPAY24</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
@@ -34,9 +34,9 @@ Weitere Informationen unter www.mPAY24.com</description>
|
|
34 |

|
35 |
3. There are specified IPs which are allowed for the confirmation requests. In case the request is coming not from one of these IPs a TRANSACTIONSTATUS request is executed.</notes>
|
36 |
<authors><author><name>Filipp Akinfiev</name><user>auto-converted</user><email>firedrago.magento@gmail.com</email></author></authors>
|
37 |
-
<date>2013-05-
|
38 |
-
<time>
|
39 |
-
<contents><target name="magelocale"><dir name="de_AT"><file name="Mpay24_Mpay24.csv" hash="e55fbe56741682943f5565fec1b47442"/></dir><dir name="de_DE"><file name="Mpay24_Mpay24.csv" hash="e55fbe56741682943f5565fec1b47442"/></dir><dir name="de_CH"><file name="Mpay24_Mpay24.csv" hash="e55fbe56741682943f5565fec1b47442"/></dir><dir name="en_US"><file name="Mpay24_Mpay24.csv" hash="1cfa1bb474c632817c46f68b80669662"/></dir></target><target name="mageetc"><dir name="modules"><file name="Mpay24_Mpay24.xml" hash="
|
40 |
<compatible/>
|
41 |
<dependencies/>
|
42 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>mPAY24</name>
|
4 |
+
<version>1.4.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
34 |

|
35 |
3. There are specified IPs which are allowed for the confirmation requests. In case the request is coming not from one of these IPs a TRANSACTIONSTATUS request is executed.</notes>
|
36 |
<authors><author><name>Filipp Akinfiev</name><user>auto-converted</user><email>firedrago.magento@gmail.com</email></author></authors>
|
37 |
+
<date>2013-05-14</date>
|
38 |
+
<time>14:14:47</time>
|
39 |
+
<contents><target name="magelocale"><dir name="de_AT"><file name="Mpay24_Mpay24.csv" hash="e55fbe56741682943f5565fec1b47442"/></dir><dir name="de_DE"><file name="Mpay24_Mpay24.csv" hash="e55fbe56741682943f5565fec1b47442"/></dir><dir name="de_CH"><file name="Mpay24_Mpay24.csv" hash="e55fbe56741682943f5565fec1b47442"/></dir><dir name="en_US"><file name="Mpay24_Mpay24.csv" hash="1cfa1bb474c632817c46f68b80669662"/></dir></target><target name="mageetc"><dir name="modules"><file name="Mpay24_Mpay24.xml" hash="1e4ac5a32b5638dee58029e0ae45c47e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="form"><file name="area.phtml" hash="8ac18b34ffddee061be1b07e68235f5f"/><file name="dropDown.phtml" hash="67e4d39102fd4dcfedda7d0562663576"/></dir><dir name="info"><file name="selectpayment.phtml" hash="96db95cc6bc384dad08716aa395c1d0a"/></dir></dir></dir><dir name="layout"><file name="mpay24.xml" hash="ce01cb3fe366d831d16d8bf7d4dee7e1"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="info"><file name="selectpayment.phtml" hash="85176bc9ae3ec8ebbad2669c6114150a"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mpay24"><dir name="Mpay24"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Fieldset.php" hash="62fd9d141a1d3c6aa42c34010d720aac"/></dir></dir></dir></dir><dir name="Form"><file name="Selectpayment.php" hash="372168b0b9545c790802af8ab111d284"/></dir><dir name="Info"><file name="Selectpayment.php" hash="1229dd9c525a9b6a2333d8cfcc947f41"/></dir><file name="Form.php" hash="4b2fce3add8a810041a6c5ab790329a5"/><file name="Mpay24.php" hash="f5a913fd2668759188e0eaf33491884b"/><file name="ParentRedirect.php" hash="b12291838895b40bcee7af52fbc2967f"/></dir><dir name="Helper"><file name="Data.php" hash="69a156b89e684bf4dee01e2a39fa66f4"/></dir><dir name="Model"><dir name="Api"><dir name="logs"><file name="curllog.log" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="mPAY24log.log" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="xmls"><file name="Example_MDXI.xml" hash="df8358d868eec37ab27802edc02bc932"/></dir><file name="MDXI.xsd" hash="2d029fdb0e21e7fd47df247af2cdbc64"/><file name="MPay24Api.php" hash="84ac62b08a01b568550fd47ae40fb806"/><file name="MPay24MagentoShop.php" hash="45dd5ce4da031d896fffe787b9362bf5"/><file name="MPay24Shop.php" hash="94f589ff9531e97cf4a1f518c6a5e5c1"/><file name="cacert.pem" hash="4e0c8fcca8148533e6723f94463a3c73"/><file name="orderXML.php" hash="f067d286e1a6282bb0d67483dd1d0d98"/></dir><dir name="Entity"><file name="Setup.php" hash="8dc9baf209d88d7b054d763066f601fb"/></dir><dir name="Method"><file name="Abstract.php" hash="fdbb5a39e0427876160fd2756d4ec2f9"/><file name="Selectpayment.php" hash="4f204e97ef936c00460ed204ac65a190"/></dir><dir name="Mpay24"><file name="Debug.php" hash="9cbf466aa62829ca7aac6246aa550d4a"/></dir><dir name="Mysql4"><dir name="Mpay24"><dir name="Debug"><file name="Collection.php" hash="f5094404eec10cb3eac5c6b6e2209287"/></dir><file name="Debug.php" hash="50291178d8bb20a50fee0d0c1d0d4f12"/></dir><file name="Setup.php" hash="9e19108b10a15d212fd9838b753c2302"/></dir><dir name="Source"><file name="AllowedIPs.php" hash="0da1578960a00676c7a38fcca759f097"/><file name="BillAddr.php" hash="50a1eaf7afb455dbc2a47761560bdc87"/><file name="ClearingAction.php" hash="a8f705c72bad6c174ca61aee4a128008"/><file name="FormTemplate.php" hash="722994ae6dba839b21bd5f45487b55c2"/><file name="PaidOrder.php" hash="12265d4cc317818a11aa2b31d22118b4"/><file name="PaymentsActive.php" hash="ae7b566c2b840457f70ab48ee165ff9f"/><file name="Request.php" hash="8d33fa758355382b0171ec1ea1934bff"/><file name="Result.php" hash="0e6b4aa3f291d20dcdc840fd06c33e90"/><file name="ShoppingCartRowsAction.php" hash="9de2ded97cd6623c88def25477a0ca02"/><file name="System.php" hash="7e40794562cda9a8a4ad61052678d470"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Encrypted.php" hash="489a56ff8bd41e8b436b24dc3eeb5782"/></dir></dir></dir><file name="Config.php" hash="d205f45cd29c893cb50ca1b43957520f"/><file name="Observer.php" hash="53ff5a6a6d0de25a3be0252da28e72a6"/><file name="Selectpayment.php" hash="703821b6cd465d2f6d0dba368d7a6b5e"/><file name="Session.php" hash="52b5b79a5d7662c46360ff3cc4f82c70"/></dir><dir name="controllers"><file name="IndexController.php" hash="b23f8648cf7568f55978bea219c766f6"/><file name="PaymentController.php" hash="6a6e33ca675d578a424c824d9921eb6b"/></dir><dir name="etc"><file name="config.xml" hash="54394ef777505efb45d8db2c01eeb127"/><file name="system.xml" hash="69228cdd79fbaae4f44c221ad6c26bc4"/></dir><dir name="sql"><dir name="mpay24_setup"><file name="mysql4-install-1.4.4.php" hash="97a2db7443b043386bbfb2964659fddf"/><file name="mysql4-upgrade-0.6.2-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.0.0-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.0.4-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.0.6-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.0.7-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.1.1-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.1.7-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.1.8-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.1.9-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.2.0-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.2.1-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.2.2-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.3.0-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.4.0-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.4.1-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.4.2-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/><file name="mysql4-upgrade-1.4.3-1.4.4.php" hash="006ed8882377b8d3d3c8b6e813051d2b"/></dir></dir></dir></dir></target></contents>
|
40 |
<compatible/>
|
41 |
<dependencies/>
|
42 |
</package>
|