Version Notes
-Fixed bug status complete
-Fixed bug payment product sended to TPP in Recurring or oneclick
Download this release
Release Info
Developer | Kassim_Profileo |
Extension | Allopass_Hipay |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.3
- app/code/community/Allopass/Hipay/.DS_Store +0 -0
- app/code/community/Allopass/Hipay/Helper/Data.php +6 -3
- app/code/community/Allopass/Hipay/Model/Method/Abstract.php +63 -31
- app/code/community/Allopass/Hipay/Model/Method/Cc.php +1 -1
- app/code/community/Allopass/Hipay/Model/Method/Hosted.php +1 -1
- app/code/community/Allopass/Hipay/Model/Source/Order/Status.php +2 -2
- app/code/community/Allopass/Hipay/Model/Source/Order/Status/Accepted.php +24 -1
- app/code/community/Allopass/Hipay/Model/Source/Order/Status/Refused.php +1 -1
- app/code/community/Allopass/Hipay/etc/config.xml +1 -1
- app/design/frontend/default/default/template/hipay/form/hosted.phtml +1 -5
- app/locale/it_IT/Allopass_Hipay.csv +85 -0
- package.xml +8 -7
app/code/community/Allopass/Hipay/.DS_Store
DELETED
Binary file
|
app/code/community/Allopass/Hipay/Helper/Data.php
CHANGED
@@ -24,7 +24,7 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
24 |
unset($parameters['hash']);
|
25 |
ksort($parameters);
|
26 |
foreach ($parameters as $name => $value) {
|
27 |
-
if (
|
28 |
$string2compute .= $name . $value . $passphrase;
|
29 |
}
|
30 |
}
|
@@ -67,11 +67,13 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
67 |
*
|
68 |
* @param Mage_Customer_Model_Customer $customer
|
69 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $response
|
|
|
70 |
*/
|
71 |
public function responseToCustomer($customer,$response,$isRecurring = false)
|
72 |
{
|
73 |
|
74 |
$paymentMethod = $response->getPaymentMethod();
|
|
|
75 |
$token = isset($paymentMethod['token']) ? $paymentMethod['token'] : $response->getData('cardtoken');
|
76 |
|
77 |
if($isRecurring)
|
@@ -83,9 +85,10 @@ class Allopass_Hipay_Helper_Data extends Mage_Core_Helper_Abstract
|
|
83 |
$customer->setHipayCcExpDate($paymentMethod['card_expiry_month'] . "-" . $paymentMethod['card_expiry_year'] );
|
84 |
else
|
85 |
$customer->setHipayCcExpDate(substr($response->getData('cardexpiry'), 4,2) . "-" . substr($response->getData('cardexpiry'), 0,4) );
|
|
|
86 |
$customer->setHipayCcNumberEnc(isset($paymentMethod['pan']) ? $paymentMethod['pan'] : $response->getData('cardpan'));
|
87 |
-
|
88 |
-
|
89 |
|
90 |
$customer->getResource()->saveAttribute($customer, 'hipay_alias_oneclick');
|
91 |
$customer->getResource()->saveAttribute($customer, 'hipay_cc_exp_date');
|
24 |
unset($parameters['hash']);
|
25 |
ksort($parameters);
|
26 |
foreach ($parameters as $name => $value) {
|
27 |
+
if (strlen($value) > 0) {
|
28 |
$string2compute .= $name . $value . $passphrase;
|
29 |
}
|
30 |
}
|
67 |
*
|
68 |
* @param Mage_Customer_Model_Customer $customer
|
69 |
* @param Allopass_Hipay_Model_Api_Response_Gateway $response
|
70 |
+
* @param boolean $isRecurring
|
71 |
*/
|
72 |
public function responseToCustomer($customer,$response,$isRecurring = false)
|
73 |
{
|
74 |
|
75 |
$paymentMethod = $response->getPaymentMethod();
|
76 |
+
$paymentProduct = $response->getPaymentProduct();
|
77 |
$token = isset($paymentMethod['token']) ? $paymentMethod['token'] : $response->getData('cardtoken');
|
78 |
|
79 |
if($isRecurring)
|
85 |
$customer->setHipayCcExpDate($paymentMethod['card_expiry_month'] . "-" . $paymentMethod['card_expiry_year'] );
|
86 |
else
|
87 |
$customer->setHipayCcExpDate(substr($response->getData('cardexpiry'), 4,2) . "-" . substr($response->getData('cardexpiry'), 0,4) );
|
88 |
+
|
89 |
$customer->setHipayCcNumberEnc(isset($paymentMethod['pan']) ? $paymentMethod['pan'] : $response->getData('cardpan'));
|
90 |
+
//$customer->setHipayCcType(isset($paymentMethod['brand']) ? strtolower($paymentMethod['brand']) : strtolower($response->getData('cardbrand')));
|
91 |
+
$customer->setHipayCcType($paymentProduct);
|
92 |
|
93 |
$customer->getResource()->saveAttribute($customer, 'hipay_alias_oneclick');
|
94 |
$customer->getResource()->saveAttribute($customer, 'hipay_cc_exp_date');
|
app/code/community/Allopass/Hipay/Model/Method/Abstract.php
CHANGED
@@ -215,6 +215,9 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
215 |
break;
|
216 |
case 117: //Capture Requested
|
217 |
|
|
|
|
|
|
|
218 |
$this->addTransaction(
|
219 |
$payment,
|
220 |
$gatewayResponse->getTransactionReference(),
|
@@ -232,46 +235,27 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
232 |
Mage_Sales_Model_Order::STATE_PROCESSING, 'capture_requested', $message, null, false
|
233 |
);
|
234 |
|
235 |
-
if(((int)$this->getConfigData('hipay_status_validate_order') == 117) === false )
|
236 |
break;
|
237 |
-
else {
|
238 |
$order->save();
|
239 |
-
}
|
240 |
|
241 |
case 118: //Capture
|
242 |
|
243 |
-
if
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
if (!$status = $this->getConfigData('order_status_payment_accepted')) {
|
249 |
-
$status = $order->getStatus();
|
250 |
}
|
251 |
|
252 |
-
|
253 |
-
|
254 |
-
if ($status == Mage_Sales_Model_Order::STATE_PROCESSING) {
|
255 |
-
$order->setState(
|
256 |
-
Mage_Sales_Model_Order::STATE_PROCESSING, $status, $message
|
257 |
-
);
|
258 |
-
} else if ($status == Mage_Sales_Model_Order::STATE_COMPLETE) {
|
259 |
-
$order->setState(
|
260 |
-
Mage_Sales_Model_Order::STATE_COMPLETE, $status, $message, null, false
|
261 |
-
);
|
262 |
-
} else {
|
263 |
-
$order->addStatusToHistory($status, $message, true);
|
264 |
}
|
265 |
|
266 |
-
|
267 |
-
|
268 |
// Create invoice
|
269 |
if ($this->getConfigData('invoice_create',$order->getStoreId()) && !$order->hasInvoices()) {
|
270 |
|
271 |
-
$invoice = $order->
|
272 |
-
$invoice->setTransactionId($gatewayResponse->getTransactionReference());
|
273 |
-
$invoice->register()->capture();
|
274 |
-
$invoice->setIsPaid(1);
|
275 |
Mage::getModel('core/resource_transaction')
|
276 |
->addObject($invoice)->addObject($invoice->getOrder())
|
277 |
->save();
|
@@ -292,6 +276,32 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
292 |
}
|
293 |
}
|
294 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
if (!$order->getEmailSent()) {
|
296 |
$order->sendNewOrderEmail();
|
297 |
}
|
@@ -448,6 +458,27 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
448 |
|
449 |
}
|
450 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
|
452 |
/**
|
453 |
*
|
@@ -596,7 +627,7 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
596 |
$params['shipping'] = $payment->getOrder()->getShippingAmount();
|
597 |
$params['tax'] = $payment->getOrder()->getTaxAmount();
|
598 |
$params['cid'] = $payment->getOrder()->getCustomerId();//CUSTOMER ID
|
599 |
-
$params['ipaddr'] = $payment->getOrder()->getRemoteIp();
|
600 |
|
601 |
$params['http_accept'] = "*/*";
|
602 |
$params['http_user_agent'] = Mage::helper('core/http')->getHttpUserAgent();
|
@@ -722,11 +753,12 @@ abstract class Allopass_Hipay_Model_Method_Abstract extends Mage_Payment_Model_M
|
|
722 |
* @param Mage_Sales_Model_Order_Payment $payment
|
723 |
* @return bool
|
724 |
*/
|
725 |
-
|
726 |
{
|
727 |
$lastTransaction = $payment->getTransaction($payment->getLastTransId());
|
728 |
if (!$lastTransaction
|
729 |
-
|| $lastTransaction->getTxnType()
|
|
|
730 |
) {
|
731 |
return false;
|
732 |
}
|
215 |
break;
|
216 |
case 117: //Capture Requested
|
217 |
|
218 |
+
if($order->getStatus() == 'capture' || $order->getStatus() == 'processing' )// for logic process
|
219 |
+
break;
|
220 |
+
|
221 |
$this->addTransaction(
|
222 |
$payment,
|
223 |
$gatewayResponse->getTransactionReference(),
|
235 |
Mage_Sales_Model_Order::STATE_PROCESSING, 'capture_requested', $message, null, false
|
236 |
);
|
237 |
|
238 |
+
if(((int)$this->getConfigData('hipay_status_validate_order') == 117) === false /*&& $payment->getCcType() != 'AE'*/ )
|
239 |
break;
|
240 |
+
/*else {
|
241 |
$order->save();
|
242 |
+
}*/
|
243 |
|
244 |
case 118: //Capture
|
245 |
|
246 |
+
if($order->getStatus() == $this->getConfigData('order_status_payment_accepted') )
|
247 |
+
{
|
248 |
+
break;
|
|
|
|
|
|
|
|
|
249 |
}
|
250 |
|
251 |
+
if ($order->getState() == Mage_Sales_Model_Order::STATE_HOLDED) {
|
252 |
+
$order->unhold();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
}
|
254 |
|
|
|
|
|
255 |
// Create invoice
|
256 |
if ($this->getConfigData('invoice_create',$order->getStoreId()) && !$order->hasInvoices()) {
|
257 |
|
258 |
+
$invoice = $this->create_invoice($order, $gatewayResponse->getTransactionReference());
|
|
|
|
|
|
|
259 |
Mage::getModel('core/resource_transaction')
|
260 |
->addObject($invoice)->addObject($invoice->getOrder())
|
261 |
->save();
|
276 |
}
|
277 |
}
|
278 |
|
279 |
+
|
280 |
+
if (!$status = $this->getConfigData('order_status_payment_accepted')) {
|
281 |
+
$status = $order->getStatus();
|
282 |
+
}
|
283 |
+
|
284 |
+
$message = Mage::helper("hipay")->__('Payment accepted by Hipay.');
|
285 |
+
|
286 |
+
if ($status == Mage_Sales_Model_Order::STATE_PROCESSING) {
|
287 |
+
$order->setState(
|
288 |
+
Mage_Sales_Model_Order::STATE_PROCESSING, $status, $message
|
289 |
+
);
|
290 |
+
} else if ($status == Mage_Sales_Model_Order::STATE_COMPLETE) {
|
291 |
+
$order->setData('state',Mage_Sales_Model_Order::STATE_COMPLETE);
|
292 |
+
$order->addStatusToHistory($status, $message, true);
|
293 |
+
/*$order->setState(
|
294 |
+
Mage_Sales_Model_Order::STATE_COMPLETE, $status, $message, null, false
|
295 |
+
);*/
|
296 |
+
} else {
|
297 |
+
$order->addStatusToHistory($status, $message, true);
|
298 |
+
}
|
299 |
+
|
300 |
+
|
301 |
+
|
302 |
+
|
303 |
+
|
304 |
+
|
305 |
if (!$order->getEmailSent()) {
|
306 |
$order->sendNewOrderEmail();
|
307 |
}
|
458 |
|
459 |
}
|
460 |
}
|
461 |
+
|
462 |
+
/**
|
463 |
+
* Create object invoice
|
464 |
+
* @param Mage_Sales_Model_Order $order
|
465 |
+
* @param string $transactionReference
|
466 |
+
* @param boolean $capture
|
467 |
+
* @param boolean $paid
|
468 |
+
* @return Mage_Sales_Model_Order_Invoice $invoice
|
469 |
+
*/
|
470 |
+
protected function create_invoice($order,$transactionReference,$capture = true,$paid = true)
|
471 |
+
{
|
472 |
+
$invoice = $order->prepareInvoice();
|
473 |
+
$invoice->setTransactionId($transactionReference);
|
474 |
+
if($capture)
|
475 |
+
$invoice->register()->capture();
|
476 |
+
|
477 |
+
if($paid)
|
478 |
+
$invoice->setIsPaid(1);
|
479 |
+
|
480 |
+
return $invoice;
|
481 |
+
}
|
482 |
|
483 |
/**
|
484 |
*
|
627 |
$params['shipping'] = $payment->getOrder()->getShippingAmount();
|
628 |
$params['tax'] = $payment->getOrder()->getTaxAmount();
|
629 |
$params['cid'] = $payment->getOrder()->getCustomerId();//CUSTOMER ID
|
630 |
+
$params['ipaddr'] = !is_null($payment->getOrder()->getXForwardedFor()) ? $payment->getOrder()->getXForwardedFor() : $payment->getOrder()->getRemoteIp();
|
631 |
|
632 |
$params['http_accept'] = "*/*";
|
633 |
$params['http_user_agent'] = Mage::helper('core/http')->getHttpUserAgent();
|
753 |
* @param Mage_Sales_Model_Order_Payment $payment
|
754 |
* @return bool
|
755 |
*/
|
756 |
+
protected function isPreauthorizeCapture($payment)
|
757 |
{
|
758 |
$lastTransaction = $payment->getTransaction($payment->getLastTransId());
|
759 |
if (!$lastTransaction
|
760 |
+
|| (($this->getOperation() == self::OPERATION_SALE) && ($lastTransaction->getTxnType() == Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH ) )
|
761 |
+
|| $lastTransaction->getTxnType() != Mage_Sales_Model_Order_Payment_Transaction::TYPE_AUTH
|
762 |
) {
|
763 |
return false;
|
764 |
}
|
app/code/community/Allopass/Hipay/Model/Method/Cc.php
CHANGED
@@ -130,7 +130,7 @@ class Allopass_Hipay_Model_Method_Cc extends Allopass_Hipay_Model_Method_Abstrac
|
|
130 |
{
|
131 |
parent::capture($payment, $amount);
|
132 |
|
133 |
-
if (
|
134 |
$this->_preauthorizeCapture($payment, $amount);
|
135 |
|
136 |
$payment->setSkipTransactionCreation(true);
|
130 |
{
|
131 |
parent::capture($payment, $amount);
|
132 |
|
133 |
+
if ($this->isPreauthorizeCapture($payment))
|
134 |
$this->_preauthorizeCapture($payment, $amount);
|
135 |
|
136 |
$payment->setSkipTransactionCreation(true);
|
app/code/community/Allopass/Hipay/Model/Method/Hosted.php
CHANGED
@@ -43,7 +43,7 @@ class Allopass_Hipay_Model_Method_Hosted extends Allopass_Hipay_Model_Method_Abs
|
|
43 |
{
|
44 |
parent::capture($payment, $amount);
|
45 |
|
46 |
-
if (
|
47 |
$this->_preauthorizeCapture($payment, $amount);
|
48 |
|
49 |
$payment->setSkipTransactionCreation(true);
|
43 |
{
|
44 |
parent::capture($payment, $amount);
|
45 |
|
46 |
+
if ($this->isPreauthorizeCapture($payment))
|
47 |
$this->_preauthorizeCapture($payment, $amount);
|
48 |
|
49 |
$payment->setSkipTransactionCreation(true);
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status.php
CHANGED
@@ -12,10 +12,10 @@ class Allopass_Hipay_Model_Source_Order_Status {
|
|
12 |
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
13 |
}
|
14 |
$options = array();
|
15 |
-
|
16 |
'value' => '',
|
17 |
'label' => Mage::helper('adminhtml')->__('-- Please Select --')
|
18 |
-
)
|
19 |
foreach ($statuses as $code => $label) {
|
20 |
$options[] = array(
|
21 |
'value' => $code,
|
12 |
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
13 |
}
|
14 |
$options = array();
|
15 |
+
/*$options[] = array(
|
16 |
'value' => '',
|
17 |
'label' => Mage::helper('adminhtml')->__('-- Please Select --')
|
18 |
+
);*/
|
19 |
foreach ($statuses as $code => $label) {
|
20 |
$options[] = array(
|
21 |
'value' => $code,
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status/Accepted.php
CHANGED
@@ -4,9 +4,32 @@ class Allopass_Hipay_Model_Source_Order_Status_Accepted extends Allopass_Hipay_M
|
|
4 |
|
5 |
// set null to enable all possible
|
6 |
protected $_stateStatuses = array(
|
7 |
-
|
8 |
Mage_Sales_Model_Order::STATE_PROCESSING,
|
9 |
Mage_Sales_Model_Order::STATE_COMPLETE
|
10 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
}
|
4 |
|
5 |
// set null to enable all possible
|
6 |
protected $_stateStatuses = array(
|
7 |
+
// Mage_Sales_Model_Order::STATE_NEW,
|
8 |
Mage_Sales_Model_Order::STATE_PROCESSING,
|
9 |
Mage_Sales_Model_Order::STATE_COMPLETE
|
10 |
);
|
11 |
+
|
12 |
+
public function toOptionArray() {
|
13 |
+
if ($this->_stateStatuses) {
|
14 |
+
$statuses = Mage::getSingleton('sales/order_config')->getStateStatuses($this->_stateStatuses);
|
15 |
+
} else {
|
16 |
+
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
17 |
+
}
|
18 |
+
$options = array();
|
19 |
+
/*$options[] = array(
|
20 |
+
'value' => '',
|
21 |
+
'label' => Mage::helper('adminhtml')->__('-- Please Select --')
|
22 |
+
);*/
|
23 |
+
foreach ($statuses as $code => $label) {
|
24 |
+
if($code != Mage_Sales_Model_Order::STATE_PROCESSING && $code != Mage_Sales_Model_Order::STATE_COMPLETE)
|
25 |
+
continue;
|
26 |
+
|
27 |
+
$options[] = array(
|
28 |
+
'value' => $code,
|
29 |
+
'label' => $label
|
30 |
+
);
|
31 |
+
}
|
32 |
+
return $options;
|
33 |
+
}
|
34 |
|
35 |
}
|
app/code/community/Allopass/Hipay/Model/Source/Order/Status/Refused.php
CHANGED
@@ -6,7 +6,7 @@ class Allopass_Hipay_Model_Source_Order_Status_Refused extends Allopass_Hipay_Mo
|
|
6 |
protected $_stateStatuses = array(
|
7 |
Mage_Sales_Model_Order::STATE_HOLDED,
|
8 |
Mage_Sales_Model_Order::STATE_CANCELED,
|
9 |
-
Mage_Sales_Model_Order::STATE_CLOSED
|
10 |
);
|
11 |
|
12 |
}
|
6 |
protected $_stateStatuses = array(
|
7 |
Mage_Sales_Model_Order::STATE_HOLDED,
|
8 |
Mage_Sales_Model_Order::STATE_CANCELED,
|
9 |
+
//Mage_Sales_Model_Order::STATE_CLOSED
|
10 |
);
|
11 |
|
12 |
}
|
app/code/community/Allopass/Hipay/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Allopass_Hipay>
|
5 |
-
<version>1.0.
|
6 |
</Allopass_Hipay>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Allopass_Hipay>
|
5 |
+
<version>1.0.3</version>
|
6 |
</Allopass_Hipay>
|
7 |
</modules>
|
8 |
<global>
|
app/design/frontend/default/default/template/hipay/form/hosted.phtml
CHANGED
@@ -37,7 +37,6 @@
|
|
37 |
</ul>
|
38 |
<?php endif; ?>
|
39 |
<?php echo $this->__('You will be redirect to payment page after submit order.')?>
|
40 |
-
<?php $iframe = $this->getIframeConfig()?>
|
41 |
<script type="text/javascript">
|
42 |
//<![CDATA[
|
43 |
|
@@ -54,10 +53,7 @@
|
|
54 |
}
|
55 |
|
56 |
// generate Iframe
|
57 |
-
|
58 |
-
if (strlen($iframe['iframe_height']) > 1) $iframe_height = $iframe['iframe_height']; else $iframe_height = 670;
|
59 |
-
if (strlen($iframe['iframe_style']) > 1) $iframe_style = $iframe['iframe_style']; else $iframe_style = 'border:1px solid #CCC;border-radius:15px;padding:10px;max-width:500px;'; ?>
|
60 |
-
hipayIframeWrapper.appendChild(new Element('iframe', {frameBorder: 0, width: '<?php echo $iframe_width; ?>', height: '<?php echo $iframe_height; ?>', src: url, style: '<?php echo $iframe_style; ?>'}));
|
61 |
//var button = new Element('button', {'class': 'button', type: 'button'}).update('<span><span>Cancel</span></span>');
|
62 |
//Event.observe(button, 'click', this.cancel.bind(this));
|
63 |
//hipayIframeWrapper.appendChild(button);
|
37 |
</ul>
|
38 |
<?php endif; ?>
|
39 |
<?php echo $this->__('You will be redirect to payment page after submit order.')?>
|
|
|
40 |
<script type="text/javascript">
|
41 |
//<![CDATA[
|
42 |
|
53 |
}
|
54 |
|
55 |
// generate Iframe
|
56 |
+
hipayIframeWrapper.appendChild(new Element('iframe', {frameBorder: 0, width: '485px', height: '450px', src: url, style: 'margin: 10px 0; border: 1px solid #BEBCB7;'}));
|
|
|
|
|
|
|
57 |
//var button = new Element('button', {'class': 'button', type: 'button'}).update('<span><span>Cancel</span></span>');
|
58 |
//Event.observe(button, 'click', this.cancel.bind(this));
|
59 |
//hipayIframeWrapper.appendChild(button);
|
app/locale/it_IT/Allopass_Hipay.csv
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"HiPay API configuration","Configurazione Api HiPay"
|
2 |
+
"Api username","Username Api"
|
3 |
+
"Api password","Password Api"
|
4 |
+
"Api username test","Prova username Api"
|
5 |
+
"Api password test","Prova password Api"
|
6 |
+
"Hipay Credit Card","Carta di credito Hipay"
|
7 |
+
"Enabled","Abilitata"
|
8 |
+
"Title","Qualifica"
|
9 |
+
"Payment Action","Attività di pagamento"
|
10 |
+
"Notification from Hipay:","Notifica di Hipay:"
|
11 |
+
"status","stato"
|
12 |
+
"Order %s by %s","Ordine %s di %s"
|
13 |
+
"amount: %s","ammontare: %s"
|
14 |
+
"failed","transazione non eseguita"
|
15 |
+
"successful","transazione eseguita"
|
16 |
+
"Credit Card: xxxx-%s","Carta di credito: xxxx-%s"
|
17 |
+
"Hipay Transaction ID %s","Identificativo transazione Hipay %s"
|
18 |
+
"Payment authorization error.","Errore di autorizzazione del pagamento."
|
19 |
+
"Payment capturing error.","Errore di acquisizione del pagamento."
|
20 |
+
"Payment accepted by Hipay.","Pagamento accettato da Hipay."
|
21 |
+
"Waiting for capture transaction ID '%s' of amount %s","In attesa dell'acquisizione dell'identificativo della transazione '%s' per una cifra di %s"
|
22 |
+
"Reason","Causale"
|
23 |
+
"Code Credit Card Type Hipay not found!","Codice carta di credito tipo Hipay non trovato!"
|
24 |
+
"Authorization","Autorizzazione"
|
25 |
+
"Sale","Vendita"
|
26 |
+
"basic","basilare"
|
27 |
+
"basic2","basilare2"
|
28 |
+
"Order canceled automatically by cron because order is pending since %d minutes","Ordine cancellato automaticamente da cron perché è in sospeso da %d minuti"
|
29 |
+
"--Please Select--","--Si prega di selezionare--"
|
30 |
+
"Credit Card Number","Numero di carta di credito"
|
31 |
+
"Credit Card Type","Tipo di carta di credito"
|
32 |
+
"Credit Card Types","Tipi di carta di credito"
|
33 |
+
"Expiration Date","Data di scadenza"
|
34 |
+
"Card Verification Number","Codice di verifica della carta"
|
35 |
+
"Record your card data for a next buy.","Registra la tua carta per il tuo prossimo acquisto."
|
36 |
+
"Use my recorded card","Usa la mia carta registrata"
|
37 |
+
"Record new card data","Registra i dati di una nuova carta"
|
38 |
+
"Not use record card data","Non usare i dati della carta registrata"
|
39 |
+
"You will be redirect to payment page after submit order.","Sarai reindirizzato alla pagina dei pagamenti dopo aver presentato l'ordine."
|
40 |
+
"Hipay Credit Card","Carta di credito Hipay"
|
41 |
+
"Enabled","Abilitata"
|
42 |
+
"Title","Qualifica"
|
43 |
+
"Order status when payment accepted","Stato dell'ordine quando il pagamento viene accettato"
|
44 |
+
"Order status when payment refused","Stato dell'ordine quando il pagamento viene rifiutato"
|
45 |
+
"Order status when payment canceled by customer","Stato dell'ordine quando il pagamento viene annullato dal cliente"
|
46 |
+
"Payment Action","Attività di pagamento"
|
47 |
+
"Credit Card Types","Tipi di carta di credito"
|
48 |
+
"Credit Card Verification","Verifica della carta di credito"
|
49 |
+
"Use 3D Secure","Usa 3D Secure"
|
50 |
+
"Use Oneclick","Usa Oneclick"
|
51 |
+
"Use recurring profile","Usa profilo ricorrente"
|
52 |
+
"Create invoice when payment accepted","Crea fattura quando il pagamento è accettato"
|
53 |
+
"Add product to cart","Aggiungi prodotto al carrello"
|
54 |
+
"Fill cart when payment canceled or refused","Riempi il carrello quando il pagamento viene annullato o rifiutato"
|
55 |
+
"Cancel pending order","Annulla ordine in sospeso"
|
56 |
+
"Cancel orders stayed in pending because customer not validated payment","Annulla ordini rimasti in sospeso perché il cliente non ha validato il pagamento"
|
57 |
+
"Payment from applicable countries","Pagamento da paesi pertinenti"
|
58 |
+
"Payment from Specific countries","Pagamento da paesi specifici"
|
59 |
+
"Minimum Order Total,"Totale minimo ordine"
|
60 |
+
"Maximum Order Total","Totale massimo ordine"
|
61 |
+
"Sort order","Organizza ordine"
|
62 |
+
"Enable debug log","Consenti i log per il debug"
|
63 |
+
"Enable test mode","Consenti la modalità test"
|
64 |
+
"Css Url","Url Css"
|
65 |
+
"Important, HTTPS protocol is required","Importante, è necessario il protocollo HTTPS"
|
66 |
+
"Page payment template","Modello pagina dei pagamenti"
|
67 |
+
"Display card selector","Mostra selettore di carta"
|
68 |
+
"What is this?","Cos'è?"
|
69 |
+
"Hipay Hosted","Hipay supportato"
|
70 |
+
"You will be debit of amount %s only after submit order.","Ti sarà addebitata la somma di %s solo dopo la presentazione dell'ordine."
|
71 |
+
"Pending Capture","In attesa dell'acquisizione"
|
72 |
+
"Capture Requested","Richiesta acquisizione"
|
73 |
+
"Refund Requested","Rimborso richiesto"
|
74 |
+
"Capture Requested by Hipay.","Acquisizione richiesta da Hipay."
|
75 |
+
"Payment accepted by Hipay.","Pagamento accettato da Hipay."
|
76 |
+
"Refund Requested by Hipay.","Rimborso richiesto da Hipay."
|
77 |
+
"Refund accepted by Hipay.","Rimborso accettato da Hipay."
|
78 |
+
"Your payment is in pending.","Il tuo pagamento è in attesa."
|
79 |
+
"Order #","Num. ordine"
|
80 |
+
"Pending page","Pagina di attesa"
|
81 |
+
"Success page","Pagina transazione eseguita"
|
82 |
+
"Failure page","Pagina transazione non eseguita"
|
83 |
+
"Redirect page pending status","Reindirizzamento alla pagina di attesa"
|
84 |
+
"Page to redirect when transaction is in pending status","Pagina cui reindirizzare quando la transazione è in attesa"
|
85 |
+
"Record your card data for recurring.","Registra i dati della tua carta per operazioni ricorrenti."
|
package.xml
CHANGED
@@ -1,18 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Allopass_Hipay</name>
|
4 |
-
<version>1.0.
|
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>
|
10 |
-
<description>
|
11 |
-
<notes>-
|
|
|
12 |
<authors><author><name>Kassim_Profileo</name><user>Kassim_Profileo</user><email>kassim@profileo.com</email></author></authors>
|
13 |
-
<date>2014-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Allopass"><dir name="Hipay"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="3dsRule.php" hash="b2e3f5307617948a1c74262ce55419eb"/></dir></dir></dir></dir></dir><dir name="Checkout"><file name="Pending.php" hash="48112f7e2fdcc79ee9431cf5350e223f"/></dir><dir name="Form"><file name="Abstract.php" hash="3a93bc3c0ee9162617437875a86bd36a"/><file name="Cc.php" hash="8be2f51b1ce2274e8afbc9666ed4c9ba"/><file name="Hosted.php" hash="1cbc3fe21de97bba192cd5e651dfaeae"/></dir><dir name="Info"><file name="Cc.php" hash="2f477423660d446c8956b5353b349172"/><file name="Hosted.php" hash="09bc0d102e35da8aad2c81f27cd8ba82"/></dir></dir><dir name="Controller"><file name="Payment.php" hash="b23dffe0f85a48dea1562626e2ab2598"/></dir><dir name="Helper"><file name="Data.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Allopass_Hipay</name>
|
4 |
+
<version>1.0.3</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>-Fixed bug status complete
|
12 |
+
-Fixed bug payment product sended to TPP in Recurring or oneclick</notes>
|
13 |
<authors><author><name>Kassim_Profileo</name><user>Kassim_Profileo</user><email>kassim@profileo.com</email></author></authors>
|
14 |
+
<date>2014-09-22</date>
|
15 |
+
<time>13:01:11</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Allopass"><dir name="Hipay"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="3dsRule.php" hash="b2e3f5307617948a1c74262ce55419eb"/></dir></dir></dir></dir></dir><dir name="Checkout"><file name="Pending.php" hash="48112f7e2fdcc79ee9431cf5350e223f"/></dir><dir name="Form"><file name="Abstract.php" hash="3a93bc3c0ee9162617437875a86bd36a"/><file name="Cc.php" hash="8be2f51b1ce2274e8afbc9666ed4c9ba"/><file name="Hosted.php" hash="1cbc3fe21de97bba192cd5e651dfaeae"/></dir><dir name="Info"><file name="Cc.php" hash="2f477423660d446c8956b5353b349172"/><file name="Hosted.php" hash="09bc0d102e35da8aad2c81f27cd8ba82"/></dir></dir><dir name="Controller"><file name="Payment.php" hash="b23dffe0f85a48dea1562626e2ab2598"/></dir><dir name="Helper"><file name="Data.php" hash="c7c28e6a329abf688dae1ed491e86e55"/></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="c73ab07965010a9d5da8a6f988f257e0"/><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="Config.php" hash="7b2b6b8d4568d5ce33decc529e45b60b"/><dir name="Log"><file name="Adapter.php" hash="9d5533d5d3622c72cbc84abfd4e3116c"/></dir><dir name="Method"><file name="Abstract.php" hash="c0bd152b527d47ca336b3be35b1e181c"/><file name="Cbc.php" hash="49d1b0e2ad320c1a78043bb7231de930"/><file name="Cc.php" hash="de29423365d21539b4b2b14dc26fbd32"/><file name="Dexia.php" hash="32d47390b7d48e19e4e5cf2b2abfa0cd"/><file name="Giropay.php" hash="ad5965ae76b9b2b9061f351e9f5fac74"/><file name="Hosted.php" hash="02a38174cb99e4af588060f4468cbb88"/><file name="Ideal.php" hash="2a29b8ae0df1e3ae4e1f27fba31af70b"/><file name="Ing.php" hash="9a8f0a6e4a193c2c234987e4d68d6184"/><file name="Kbc.php" hash="7c3e32222e86261b55b0a64c382d8df9"/><file name="Przelewy24.php" hash="00b695e7b34b69f36d593587a9b5dcdd"/><file name="Przelewy24Api.php" hash="7d594585e929de59d5295bfeeff6b219"/><file name="Qiwi.php" hash="be4c74c534076b8cebd6ca1f74fe3b3b"/><file name="Sisal.php" hash="94565498ace1b5e29ae80e84951d655e"/><file name="SisalApi.php" hash="e0f93a847f833509255e36086faedaa6"/><file name="Sofort.php" hash="fa6cb68aff431c2dc91e7b3c62a29aaa"/><file name="SofortApi.php" hash="7f889f5f0986fc6dce71d847a854f1ab"/><file name="Webmoney.php" hash="33e86795573edcea55546c78ae9267f6"/><file name="WebmoneyApi.php" hash="ce8bc5c4c7ab75907b1ca63fd0ebedee"/><file name="Yandex.php" hash="ad5c8a351029b0f2f2df9806fb3cbb9b"/><file name="YandexApi.php" hash="ef4e7f17fa81f5ed63988054dee12c97"/></dir><file name="Observer.php" hash="a8a071ebc588374f71f8386f430011af"/><dir name="Resource"><dir name="Rule"><file name="Collection.php" hash="b4dd0d851cda670c6aafad0cf588b106"/></dir><file name="Rule.php" hash="115bccaa9e4d37ed03e179147ab3788d"/></dir><dir name="Rule"><dir name="Condition"><file name="Address.php" hash="a3cce578d61204adbc4a3e6c4791d055"/><file name="Combine.php" hash="e57da0bfd13c85721ef06d9f5c1d5a45"/><file name="Customer.php" hash="71117a9fe5f0cba3828da17c316a95a5"/><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="7ae56d141ffa1da19faa2d26831f1c7d"/></dir><file name="Rule.php" hash="f4f865fc7e0e2204fd5b804b0a000ddb"/><dir name="Source"><file name="3ds.php" hash="26e27c20dd31babe710cb9470491fc40"/><file name="CcType.php" hash="1f53fb6d8b95c5457e0e59ab910681ca"/><file name="CcTypeHosted.php" hash="7ba8a5fe85f5a0fd93a8a99064ea5487"/><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="Pendingredirect.php" hash="f0c3125415535637c159c97fc2627740"/><file name="Template.php" hash="47d84783ef5e3041bbbe9c5622e7e65f"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="RuleController.php" hash="5fcf2a0b9807d0f8089b3f0cdfe30a24"/></dir><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="00a9240f4d73645ada386477c6643eb1"/><file name="Przelewy24Controller.php" hash="d6923f98e8a53d8b8becd1d5ef99e0d0"/><file name="Przelewy24apiController.php" hash="bc488ef00a5a063d05aa12c545d8e8fe"/><file name="QiwiController.php" hash="6b3e05b2910dae0b919c50cb06363c57"/><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="576c11d95b633d1dbb6e1979cac78452"/><file name="system.xml" hash="22626c43e9acdf8b67b6d9deb9793b53"/></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"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="hipay.xml" hash="3b054d16830742a04ff9fc49038ddb61"/></dir><dir name="template"><dir name="hipay"><dir name="checkout"><file name="pending.phtml" hash="34e6bba88ea5fdd6b4ea71595de638d6"/></dir><dir name="form"><file name="cc.phtml" hash="402c6497783c1b1a0449e60777b61b9d"/><file name="hosted.phtml" hash="c5775f3b8d2c10b2aa097159385bcca6"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="hipay.xml" hash="d55ac9fc80fa05741c4f7a1457211a77"/></dir><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></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="3879d574afc3e028875e4f4f846ac104"/></dir><dir name="fr_FR"><file name="Allopass_Hipay.csv" hash="fdc5bb9fe8061f5d0d381d28defa3056"/></dir><dir name="it_IT"><file name="Allopass_Hipay.csv" hash="b00716679b97593a5a7e6a241079993f"/></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>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|