Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/2.3-develop' into MC-5777
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan He committed Jul 17, 2019
2 parents e108835 + c4b69aa commit 1dda0aa
Show file tree
Hide file tree
Showing 234 changed files with 1,183 additions and 1,351 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
?>
<button class="scalable" type="button" id="<?= $block->getHtmlId() ?>" data-mage-init='{"testConnection":{
"url": "<?= $block->escapeUrl($block->getAjaxUrl()) ?>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile

/**
* @var \Magento\AdvancedSearch\Block\SearchData $block
*/
?>
<?php
/** @var \Magento\Search\Model\QueryResult[] $data */
$data = $block->getItems();
if (count($data)):?>
if (count($data)) : ?>
<dl class="block">
<dt class="title"><?= $block->escapeHtml(__($block->getTitle())) ?></dt>
<?php foreach ($data as $additionalInfo) : ?>
<dd class="item">
<a href="<?= $block->escapeUrl($block->getLink($additionalInfo->getQueryText())) ?>"
><?= $block->escapeHtml($additionalInfo->getQueryText()) ?></a>
<?php if ($block->isShowResultsCount()): ?>
<?php if ($block->isShowResultsCount()) : ?>
<span class="count"><?= /* @noEscape */ (int)$additionalInfo->getResultsCount() ?></span>
<?php endif; ?>
</dd>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
?>

<section class="dashboard-advanced-reports" data-index="dashboard-advanced-reports">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

/**
* @var $block \Magento\Authorizenet\Block\Transparent\Iframe
*/
Expand All @@ -15,15 +13,15 @@ $helper = $block->getHelper('adminhtml');
<html>
<head>
<script>
<?php if (isset($params['redirect'])): ?>
<?php if (isset($params['redirect'])) : ?>
window.location="<?= $block->escapeUrl($params['redirect']) ?>";
<?php endif; ?>
<?php if (isset($params['redirect_parent'])): ?>
<?php if (isset($params['redirect_parent'])) : ?>
window.top.location="<?= $block->escapeUrl($params['redirect_parent']) ?>";
<?php endif; ?>
<?php if (isset($params['error_msg'])): ?>
<?php if (isset($params['error_msg'])) : ?>
window.top.directPostModel.showError(<?= /* @noEscape */ json_encode((array)$params['error_msg']) ?>);
<?php if (isset($params['x_invoice_num'])): ?>
<?php if (isset($params['x_invoice_num'])) : ?>
window.top.directPostModel.successUrl="<?= $block->escapeUrl($helper->getSuccessOrderUrl($params)) ?>";
<?php endif; ?>
<?php endif; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile
/**
* @var \Magento\Authorizenet\Block\Transparent\Iframe $block
* @see \Magento\Authorizenet\Block\Transparent\Iframe
*/
$code = $block->escapeHtml($block->getMethodCode());
$method = $block->getMethod();
$controller = $block->escapeHtml($block->getRequest()->getControllerName());
$orderUrl = $block->escapeUrl($this->helper('Magento\Authorizenet\Helper\Backend\Data')->getPlaceOrderAdminUrl());
$orderUrl = $block->escapeUrl($block->getHelper('adminhtml')->getPlaceOrderAdminUrl());
$ccType = $block->getInfoData('cc_type');
$ccExpMonth = $block->getInfoData('cc_exp_month');
$ccExpYear = $block->getInfoData('cc_exp_year');
Expand Down Expand Up @@ -41,9 +40,9 @@ $ccExpYear = $block->getInfoData('cc_exp_year');
'validate-cc-type-select':'#<?= /* @noEscape */ $code ?>_cc_number'
}">
<option value=""><?= $block->escapeHtml(__('Please Select')) ?></option>
<?php foreach ($block->getCcAvailableTypes() as $typeCode => $typeName): ?>
<?php foreach ($block->getCcAvailableTypes() as $typeCode => $typeName) : ?>
<option value="<?= $block->escapeHtml($typeCode) ?>"
<?php if ($typeCode == $ccType): ?>selected="selected"<?php endif; ?>>
<?php if ($typeCode == $ccType) : ?>selected="selected"<?php endif; ?>>
<?= $block->escapeHtml($typeName) ?>
</option>
<?php endforeach; ?>
Expand Down Expand Up @@ -81,9 +80,9 @@ $ccExpYear = $block->getInfoData('cc_exp_year');
'required':true,
'validate-cc-exp':'#<?= /* @noEscape */ $code ?>_expiration_yr'
}">
<?php foreach ($block->getCcMonths() as $k => $v): ?>
<?php foreach ($block->getCcMonths() as $k => $v) : ?>
<option value="<?= $block->escapeHtml($k) ?>"
<?php if ($k == $ccExpMonth): ?>selected="selected"<?php endif; ?>>
<?php if ($k == $ccExpMonth) : ?>selected="selected"<?php endif; ?>>
<?= $block->escapeHtml($v) ?>
</option>
<?php endforeach; ?>
Expand All @@ -93,17 +92,17 @@ $ccExpYear = $block->getInfoData('cc_exp_year');
class="admin__control-select admin__control-select-year"
data-container="<?= /* @noEscape */ $code ?>-cc-year"
data-validate="{required:true}">
<?php foreach ($block->getCcYears() as $k => $v): ?>
<?php foreach ($block->getCcYears() as $k => $v) : ?>
<option value="<?= /* @noEscape */ $k ? $block->escapeHtml($k) : '' ?>"
<?php if ($k == $ccExpYear): ?>selected="selected"<?php endif; ?>>
<?php if ($k == $ccExpYear) : ?>selected="selected"<?php endif; ?>>
<?= $block->escapeHtml($v) ?>
</option>
<?php endforeach; ?>
</select>
</div>
</div>

<?php if ($block->hasVerification()): ?>
<?php if ($block->hasVerification()) : ?>
<div class="admin__field _required field-cvv">
<label class="admin__field-label"
for="<?= /* @noEscape */ $code ?>_cc_cid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,48 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile
/**
* @var \Magento\Authorizenet\Block\Adminhtml\Order\View\Info\FraudDetails $block
*/
$payment = $block->getPayment();
$fraudDetails = $payment->getAdditionalInformation('fraud_details');
?>

<?php if (!empty($fraudDetails)): ?>
<?php if (!empty($fraudDetails)) : ?>
<div class="admin__page-section-item-title">
<span class="title"><?= $block->escapeHtml(__('Fraud Detection ')) ?></span>
</div>

<div class="admin__page-section-item-content">
<div class="order-payment-additional">
<?php if(!empty($fraudDetails['fds_filter_action'])): ?>
<?php if (!empty($fraudDetails['fds_filter_action'])) : ?>
<?= $block->escapeHtml(__('FDS Filter Action')) ?>:
<?= $block->escapeHtml($fraudDetails['fds_filter_action']) ?>
</br>
<?php endif; ?>

<?php if(!empty($fraudDetails['avs_response'])): ?>
<?php if (!empty($fraudDetails['avs_response'])) : ?>
<?= $block->escapeHtml(__('AVS Response')) ?>:
<?= $block->escapeHtml($fraudDetails['avs_response']) ?>
</br>
<?php endif; ?>

<?php if(!empty($fraudDetails['card_code_response'])): ?>
<?php if (!empty($fraudDetails['card_code_response'])) : ?>
<?= $block->escapeHtml(__('Card Code Response')) ?>:
<?= $block->escapeHtml($fraudDetails['card_code_response']) ?>
</br>
<?php endif; ?>

<?php if(!empty($fraudDetails['cavv_response']) || ($fraudDetails['cavv_response'] === 0)): ?>
<?php if (!empty($fraudDetails['cavv_response']) || ($fraudDetails['cavv_response'] === 0)) : ?>
<?= $block->escapeHtml(__('CAVV Response')) ?>:
<?= $block->escapeHtml($fraudDetails['cavv_response']) ?>
</br>
<?php endif; ?>

<?php if(!empty($fraudDetails['fraud_filters'])): ?>
<?php if (!empty($fraudDetails['fraud_filters'])) : ?>
<strong><?= $block->escapeHtml(__('Fraud Filters')) ?>:
</strong></br>
<?php foreach($fraudDetails['fraud_filters'] as $filter): ?>
<?php foreach ($fraudDetails['fraud_filters'] as $filter) : ?>
<?= $block->escapeHtml($filter['name']) ?>:
<?= $block->escapeHtml($filter['action']) ?>
</br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@ class CloseTransactionHandler implements HandlerInterface
*/
private $subjectReader;

/**
* @var bool
*/
private $closeTransaction;

/**
* @param SubjectReader $subjectReader
* @param bool $closeTransaction
*/
public function __construct(SubjectReader $subjectReader)
public function __construct(SubjectReader $subjectReader, bool $closeTransaction = true)
{
$this->subjectReader = $subjectReader;
$this->closeTransaction = $closeTransaction;
}

/**
Expand All @@ -39,7 +46,7 @@ public function handle(array $handlingSubject, array $response): void
$payment = $paymentDO->getPayment();

if ($payment instanceof Payment) {
$payment->setIsTransactionClosed(true);
$payment->setIsTransactionClosed($this->closeTransaction);
$payment->setShouldCloseParentTransaction(true);
}
}
Expand Down
7 changes: 6 additions & 1 deletion app/code/Magento/AuthorizenetAcceptjs/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,15 @@
</argument>
</arguments>
</virtualType>
<virtualType name="CloseCaptureTransactionHandler" type="Magento\AuthorizenetAcceptjs\Gateway\Response\CloseTransactionHandler">
<arguments>
<argument name="closeTransaction" xsi:type="boolean">false</argument>
</arguments>
</virtualType>
<virtualType name="AuthorizenetAcceptjsCaptureTransactionHandler" type="Magento\Payment\Gateway\Response\HandlerChain">
<arguments>
<argument name="handlers" xsi:type="array">
<item name="close_parent_transaction" xsi:type="string">Magento\AuthorizenetAcceptjs\Gateway\Response\CloseParentTransactionHandler</item>
<item name="close_transaction" xsi:type="string">CloseCaptureTransactionHandler</item>
</argument>
</arguments>
</virtualType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile
/**
* @var Magento\AuthorizenetAcceptjs\Block\Form $block
*/
Expand All @@ -23,8 +22,8 @@ $ccExpYear = $block->getInfoData('cc_exp_year');
<select id="<?= /* @noEscape */ $code ?>_cc_type" name="payment[cc_type]"
class="required-entry validate-cc-type-select admin__control-select">
<option value=""></option>
<?php foreach ($block->getCcAvailableTypes() as $typeCode => $typeName): ?>
<option value="<?= $block->escapeHtml($typeCode) ?>" <?php if ($typeCode == $ccType): ?>selected="selected"<?php endif ?>>
<?php foreach ($block->getCcAvailableTypes() as $typeCode => $typeName) : ?>
<option value="<?= $block->escapeHtml($typeCode) ?>" <?php if ($typeCode == $ccType) : ?>selected="selected"<?php endif ?>>
<?= $block->escapeHtml($typeName) ?>
</option>
<?php endforeach ?>
Expand All @@ -48,26 +47,26 @@ $ccExpYear = $block->getInfoData('cc_exp_year');
<div class="admin__field-control">
<select id="<?= /* @noEscape */ $code ?>_cc_exp_month" name="payment[cc_exp_month]"
class="admin__control-select admin__control-select-month validate-cc-exp required-entry">
<?php foreach ($block->getCcMonths() as $k => $v): ?>
<?php foreach ($block->getCcMonths() as $k => $v) : ?>
<option value="<?= $block->escapeHtml($k) ?>"
<?php if ($k == $ccExpMonth): ?>selected="selected"<?php endif ?>>
<?php if ($k == $ccExpMonth) : ?>selected="selected"<?php endif ?>>
<?= $block->escapeHtml($v) ?>
</option>
<?php endforeach; ?>
</select>
<select id="<?= /* @noEscape */ $code ?>_cc_exp_year" name="payment[cc_exp_year]"
class="admin__control-select admin__control-select-year required-entry">
<?php foreach ($block->getCcYears() as $k => $v): ?>
<?php foreach ($block->getCcYears() as $k => $v) : ?>
<option value="<?= /* @noEscape */ $k ? $block->escapeHtml($k) : '' ?>"
<?php if ($k == $ccExpYear): ?>selected="selected"<?php endif ?>>
<?php if ($k == $ccExpYear) : ?>selected="selected"<?php endif ?>>
<?= $block->escapeHtml($v) ?>
</option>
<?php endforeach ?>
</select>
</div>
</div>

<?php if ($block->isCvvEnabled()): ?>
<?php if ($block->isCvvEnabled()) : ?>
<div class="field-number required admin__field _required">
<label class="admin__field-label" for="<?= /* @noEscape */ $code ?>_cc_cid">
<span><?= $block->escapeHtml(__('Card Verification Number')) ?></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</arguments>
<!-- Navigate to admin System Account Page-->
<amOnPage url="{{AdminSystemAccountPage.url}}" stepKey="openAdminSystemAccountPage" />
<waitForElementVisible selector="{{AdminSystemAccountSection.interfaceLocale}}" stepKey="waitForInterfaceLocale"/>
<!-- Change Admin locale to Français (France) / French (France) -->
<selectOption userInput="{{InterfaceLocaleByValue}}" selector="{{AdminSystemAccountSection.interfaceLocale}}" stepKey="setInterfaceLocate"/>
<fillField selector="{{AdminSystemAccountSection.currentPassword}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}" stepKey="fillPassword"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
<section name="AdminSystemAccountSection">
<element name="interfaceLocale" type="text" selector="#interface_locale"/>
<element name="interfaceLocale" type="select" selector="#interface_locale"/>
<element name="currentPassword" type="text" selector="#current_password"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

?>
<?= $block->getChildHtml('grid') ?>
<?= $block->getGridHtml() ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

/** @var Magento\Braintree\Block\Form $block */

$code = $block->escapeHtml($block->getMethodCode());
Expand All @@ -22,9 +20,9 @@ $ccType = $block->getInfoData('cc_type');
<div class="admin__field-control control">
<select id="<?= /* @noEscape */ $code ?>_cc_type" name="payment[cc_type]"
class="required-entry select admin__control-select validate-cc-type-select">
<?php foreach ($block->getCcAvailableTypes() as $typeCode => $typeName): ?>
<?php foreach ($block->getCcAvailableTypes() as $typeCode => $typeName) : ?>
<option value="<?= $block->escapeHtml($typeCode) ?>"
<?php if($typeCode == $ccType): ?> selected="selected"<?php endif; ?>>
<?php if ($typeCode == $ccType) : ?> selected="selected"<?php endif; ?>>
<?= $block->escapeHtml($typeName) ?>
</option>
<?php endforeach; ?>
Expand Down Expand Up @@ -61,7 +59,7 @@ $ccType = $block->getInfoData('cc_type');
</div>
</div>
</div>
<?php if($block->hasVerification()): ?>
<?php if ($block->hasVerification()) : ?>
<div class="admin__field _required">
<label class="label admin__field-label">
<span><?= $block->escapeHtml(__('Card Verification Number')) ?></span>
Expand All @@ -77,7 +75,7 @@ $ccType = $block->getInfoData('cc_type');
</div>
<?php endif; ?>

<?php if($block->isVaultEnabled()): ?>
<?php if ($block->isVaultEnabled()) : ?>
<div class="field-tooltip-content">
<input type="checkbox"
id="<?= /* @noEscape */ $code ?>_vault"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
use Magento\Vault\Model\Ui\TokenUiComponentProviderInterface;
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile

use Magento\Vault\Model\Ui\TokenUiComponentProviderInterface;

/** @var \Magento\Framework\View\Element\Template $block */
$details = $block->getData(TokenUiComponentProviderInterface::COMPONENT_DETAILS);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
use Magento\Vault\Model\Ui\TokenUiComponentProviderInterface;
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile

use Magento\Vault\Model\Ui\TokenUiComponentProviderInterface;

/** @var \Magento\Framework\View\Element\Template $block */
$details = $block->getData(TokenUiComponentProviderInterface::COMPONENT_DETAILS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

/** @var \Magento\Captcha\Block\Captcha\DefaultCaptcha $block */

/** @var \Magento\Captcha\Model\DefaultModel $captcha */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

/** @var \Magento\Captcha\Block\Captcha\DefaultCaptcha $block */

/** @var \Magento\Captcha\Model\DefaultModel $captcha */
Expand Down
Loading

0 comments on commit 1dda0aa

Please sign in to comment.