Skip to content

Commit 113b90f

Browse files
irenelagnoRomaKis
authored andcommitted
MAGETWO-60327: [GITHUB] Orders always get a status of Suspected Fraud in multi-currency store configurations #4263
(cherry picked from commit e04fc7f)
1 parent 4ac2029 commit 113b90f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Sales/Model/Order/Payment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ public function getAuthorizationTransaction()
12601260
*/
12611261
public function isCaptureFinal($amountToCapture)
12621262
{
1263-
$total = $this->getOrder()->getTotalDue();
1263+
$total = $this->getOrder()->getBaseTotalDue();
12641264
return $this->formatAmount($total, true) == $this->formatAmount($amountToCapture, true);
12651265
}
12661266

app/code/Magento/Sales/Test/Unit/Model/Order/PaymentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ public function testIsCaptureFinal()
15211521
$partialAmount = 12.00;
15221522

15231523
$this->orderMock->expects(static::exactly(2))
1524-
->method('getTotalDue')
1524+
->method('getBaseTotalDue')
15251525
->willReturn($amount);
15261526

15271527
static::assertFalse($this->payment->isCaptureFinal($partialAmount));

0 commit comments

Comments
 (0)