Skip to content

Commit 8583f10

Browse files
committed
MAGETWO-90764: [2.3.0] Cannot cancel orders with an expired authorization for Braintree
1 parent 7a3d351 commit 8583f10

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/code/Magento/Braintree/Gateway/Validator/CancelResponseValidator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
use Magento\Braintree\Gateway\SubjectReader;
1616

1717
/**
18+
* Decorates the general response validator to handle specific cases.
19+
*
1820
* This validator decorates the general response validator to handle specific cases like
1921
* an expired or already voided on Braintree side authorization transaction.
2022
*/

app/code/Magento/Braintree/Test/Unit/Gateway/SubjectReaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function testReadTransaction(): void
126126
* @expectedException \InvalidArgumentException
127127
* @return void
128128
*/
129-
public function testReadTransactionWithInvalidResponse(array $response, string $expectedMessage):void
129+
public function testReadTransactionWithInvalidResponse(array $response, string $expectedMessage): void
130130
{
131131
$this->expectExceptionMessage($expectedMessage);
132132
$this->subjectReader->readTransaction($response);

app/code/Magento/Braintree/Test/Unit/Gateway/Validator/CancelResponseValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testValidateExpiredTransaction(): void
101101
[
102102
'code' => 91504,
103103
'message' => 'Transaction can only be voided if status is authorized.',
104-
]
104+
],
105105
],
106106
];
107107
$buildSubject = [

0 commit comments

Comments
 (0)