Skip to content

Commit 867fc39

Browse files
MAGETWO-91526: Authorize.net Direct Post does not show credit card information
- Fix static test
1 parent 7019d6f commit 867fc39

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

app/code/Magento/Authorizenet/Model/Directpost.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ public function void(\Magento\Payment\Model\InfoInterface $payment)
371371
}
372372

373373
/**
374-
* Refund the amount
375-
* Need to decode last 4 digits for request.
374+
* Refund the amount need to decode last 4 digits for request.
376375
*
377376
* @param \Magento\Framework\DataObject|\Magento\Payment\Model\InfoInterface $payment
378377
* @param float $amount
@@ -630,7 +629,7 @@ protected function fillPaymentByResponse(\Magento\Framework\DataObject $payment)
630629
$additionalInformationKeys = explode(',', $this->getValue('paymentInfoKeys'));
631630
foreach ($additionalInformationKeys as $paymentInfoKey) {
632631
$paymentInfoValue = $response->getDataByKey($paymentInfoKey);
633-
if($paymentInfoValue !== null) {
632+
if ($paymentInfoValue !== null) {
634633
$payment->setAdditionalInformation($paymentInfoKey, $paymentInfoValue);
635634
}
636635
}
@@ -690,6 +689,7 @@ protected function matchAmount($amount)
690689

691690
/**
692691
* Operate with order using information from Authorize.net.
692+
*
693693
* Authorize order or authorize and capture it.
694694
*
695695
* @param \Magento\Sales\Model\Order $order
@@ -866,7 +866,7 @@ public function getConfigInterface()
866866
* Getter for specified value according to set payment method code
867867
*
868868
* @param mixed $key
869-
* @param null $storeId
869+
* @param int|string|null|\Magento\Store\Model\Store $storeId
870870
* @return mixed
871871
*/
872872
public function getValue($key, $storeId = null)
@@ -930,6 +930,8 @@ public function fetchTransactionInfo(\Magento\Payment\Model\InfoInterface $payme
930930
}
931931

932932
/**
933+
* Add statuc comment on update.
934+
*
933935
* @param \Magento\Sales\Model\Order\Payment $payment
934936
* @param \Magento\Framework\DataObject $response
935937
* @param string $transactionId
@@ -1004,8 +1006,9 @@ protected function getTransactionResponse($transactionId)
10041006
}
10051007

10061008
/**
1007-
* @return \Psr\Log\LoggerInterface
1009+
* Get psr logger.
10081010
*
1011+
* @return \Psr\Log\LoggerInterface
10091012
* @deprecated 100.1.0
10101013
*/
10111014
private function getPsrLogger()
@@ -1046,7 +1049,9 @@ private function getOrderIncrementId(): string
10461049
}
10471050

10481051
/**
1049-
* Checks if filter action is Report Only. Transactions that trigger this filter are processed as normal,
1052+
* Checks if filter action is Report Only.
1053+
*
1054+
* Transactions that trigger this filter are processed as normal,
10501055
* but are also reported in the Merchant Interface as triggering this filter.
10511056
*
10521057
* @param string $fdsFilterAction

0 commit comments

Comments
 (0)