Skip to content

Commit c6fa6ff

Browse files
committed
MC-19114: Authorize.net "Qty to Refund" not editable
1 parent 9846138 commit c6fa6ff

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/code/Magento/AuthorizenetAcceptjs/Gateway/Command/RefundTransactionStrategyCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ private function canVoid(array $details, array $commandSubject) :bool
9090
{
9191
if ($details['transaction']['transactionStatus'] === 'capturedPendingSettlement') {
9292
if ((float) $details['transaction']['authAmount'] !== (float) $commandSubject['amount']) {
93-
throw new CommandException(__('Transaction has not been settled yet, partial void is not available.'));
93+
throw new CommandException(
94+
__('The transaction has not been settled, a partial refund is not yet available.')
95+
);
9496
}
9597

9698
return true;

app/code/Magento/AuthorizenetAcceptjs/Test/Unit/Gateway/Command/RefundTransactionStrategyCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testCommandWillVoidWhenTransactionIsPendingSettlement()
100100

101101
/**
102102
* @expectedException \Magento\Payment\Gateway\Command\CommandException
103-
* @expectedExceptionMessage Transaction has not been settled yet, partial void is not available.
103+
* @expectedExceptionMessage The transaction has not been settled, a partial refund is not yet available.
104104
*/
105105
public function testCommandWillThrowExceptionWhenVoidTransactionIsPartial()
106106
{

app/code/Magento/AuthorizenetAcceptjs/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ Authorize.net,Authorize.net
1919
"ccLast4","Last 4 Digits of Card"
2020
"There was an error while trying to process the refund.","There was an error while trying to process the refund."
2121
"This transaction cannot be refunded with its current status.","This transaction cannot be refunded with its current status."
22-
"Transaction has not been settled yet, partial void is not available.","Transaction has not been settled yet, partial void is not available."
22+
"The transaction has not been settled, a partial refund is not yet available.","The transaction has not been settled, a partial refund is not yet available."

0 commit comments

Comments
 (0)