Skip to content

Commit 7b8cf79

Browse files
author
Alima Grine
committed
Merge branch 'support/1.x/hotfix/1.11.2' into support/1.x/master
2 parents 40c4d57 + 57f44ec commit 7b8cf79

File tree

184 files changed

+355
-872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+355
-872
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
1.11.2, 2020-08-19:
2+
- [embedded] Bug fix: Do not cancel orders in status "Fraud suspected" when new IPN calls are made.
3+
- [embedded] Bug fix: Error due to strongAuthenticationState field renaming in REST token creation.
4+
- [embedded] Bug fix: Compatibility of payment with embedded fields with Internet Explorer 11.
5+
- [embedded] Bug fix: Error 500 due to riskControl modified format in REST response.
6+
- [oney] Bug fix: Fix Oney3x4x options requirement.
7+
- [oney] Make phone number mandatory for Oney 3x/4x payments.
8+
- Update payment means logos.
9+
110
1.11.1, 2020-04-29:
211
- [embedded] Bugfix: Payment fields error relative to new JavaScript client library.
312
- [embedded] Disable 1-Click payment buttons when using payment with embedded fields.

app/code/community/Lyranetwork/Payzen/Block/Adminhtml/System/Config/Field/CategoryMapping.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public function __construct()
4343
}
4444

4545
/**
46-
* Obtain existing data from form element
46+
* Obtain existing data from form element.
4747
*
48-
* Each row will be instance of Varien_Object
48+
* Each row will be instance of Varien_Object.
4949
*
5050
* @return array
5151
*/

app/code/community/Lyranetwork/Payzen/Block/Adminhtml/System/Config/Field/Choozeo/CustgroupOptions.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

app/code/community/Lyranetwork/Payzen/Block/Adminhtml/System/Config/Field/Choozeo/PaymentOptions.php

Lines changed: 0 additions & 93 deletions
This file was deleted.

app/code/community/Lyranetwork/Payzen/Block/Adminhtml/System/Config/Field/Other/PaymentMeans.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ public function __construct()
2424
)
2525
);
2626

27-
$options = array('options' => Lyranetwork_Payzen_Model_Api_Api::getSupportedCardTypes());
27+
$cards = Lyranetwork_Payzen_Model_Api_Api::getSupportedCardTypes();
28+
29+
foreach ($cards as $code => $label) {
30+
$cards[$code] = $code . " - " . $label;
31+
}
32+
33+
$options = array('options' => $cards);
34+
2835
$this->addColumn(
2936
'means',
3037
array(

app/code/community/Lyranetwork/Payzen/Block/Choozeo.php

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/code/community/Lyranetwork/Payzen/Block/Redirect.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
class Lyranetwork_Payzen_Block_Redirect extends Mage_Core_Block_Template
1212
{
13-
1413
/**
15-
* Get checkout session namespace
14+
* Get checkout session namespace.
1615
*
1716
* @return Mage_Checkout_Model_Session
1817
*/
@@ -32,7 +31,7 @@ protected function _getMethodInstance()
3231
}
3332

3433
/**
35-
* Return order instance with loaded information by increment id
34+
* Return order instance with loaded information by increment id.
3635
*
3736
* @return Mage_Sales_Model_Order
3837
*/
@@ -50,7 +49,7 @@ protected function _getOrder()
5049
}
5150

5251
/**
53-
* Get Form data by using ops payment api
52+
* Get Form data by using ops payment api.
5453
*
5554
* @return array
5655
*/
@@ -60,7 +59,7 @@ public function getFormFields()
6059
}
6160

6261
/**
63-
* Getting gateway url
62+
* Getting gateway url.
6463
*
6564
* @return string
6665
*/

app/code/community/Lyranetwork/Payzen/Helper/Data.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
class Lyranetwork_Payzen_Helper_Data extends Mage_Core_Helper_Abstract
1212
{
13-
1413
/**
1514
*
1615
* @var array a global var to easily enable/disable features
@@ -31,7 +30,6 @@ class Lyranetwork_Payzen_Helper_Data extends Mage_Core_Helper_Abstract
3130
'postfinance' => true,
3231
'giropay' => true,
3332
'ideal' => true,
34-
'choozeo' => false,
3533
'fullcb' => true,
3634
'sepa' => true
3735
);

app/code/community/Lyranetwork/Payzen/Helper/Payment.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,14 @@ public function doPaymentRestCheck($controller)
552552
return;
553553
}
554554

555+
// Case of failure when retries are enabled, do nothing before last attempt.
556+
if (! $response->isAcceptedPayment() && ($answer['orderCycle'] !== 'CLOSED')) {
557+
$this->_getHelper()->log("Payment is not accepted but buyer can try to re-order. Do not create order at this time. Quote ID: #{$quoteId},
558+
reserved order ID: #{$quote->getReservedOrderId()}.");
559+
$controller->getResponse()->setBody($response->getOutputForPlatform('payment_ko_bis'));
560+
return;
561+
}
562+
555563
// Clear quote data.
556564
$quote->getPayment()->unsAdditionalInformation(self::TOKEN_DATA);
557565
$quote->getPayment()->unsAdditionalInformation(self::TOKEN);
@@ -904,7 +912,7 @@ public function updatePaymentInfo(Mage_Sales_Model_Order $order, $response)
904912
' '
905913
);
906914

907-
$amountDetail = $effectiveAmount. ' ' . $effectiveCurrency->getAlpha3() . ' (' . $amountDetail . ')';
915+
$amountDetail = $effectiveAmount . ' ' . $effectiveCurrency->getAlpha3() . ' (' . $amountDetail . ')';
908916
}
909917

910918
$additionalInfo = array(

app/code/community/Lyranetwork/Payzen/Helper/Payment/Data.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
class Lyranetwork_Payzen_Helper_Payment_Data extends Mage_Payment_Helper_Data
1212
{
13-
1413
/**
15-
* Retrieve method model object
14+
* Retrieve method model object.
1615
*
1716
* @param string $code
1817
* @return Mage_Payment_Model_Method_Abstract|false
@@ -23,7 +22,7 @@ public function getMethodInstance($code)
2322
$code = 'payzen_other';
2423
}
2524

26-
$key = self::XML_PATH_PAYMENT_METHODS.'/'.$code.'/model';
25+
$key = self::XML_PATH_PAYMENT_METHODS . '/' . $code . '/model';
2726
$class = Mage::getStoreConfig($key);
2827
return Mage::getModel($class);
2928
}

0 commit comments

Comments
 (0)