File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1260,7 +1260,7 @@ public function getAuthorizationTransaction()
1260
1260
*/
1261
1261
public function isCaptureFinal ($ amountToCapture )
1262
1262
{
1263
- $ total = $ this ->getOrder ()->getTotalDue ();
1263
+ $ total = $ this ->getOrder ()->getBaseTotalDue ();
1264
1264
return $ this ->formatAmount ($ total , true ) == $ this ->formatAmount ($ amountToCapture , true );
1265
1265
}
1266
1266
Original file line number Diff line number Diff line change @@ -1521,7 +1521,7 @@ public function testIsCaptureFinal()
1521
1521
$ partialAmount = 12.00 ;
1522
1522
1523
1523
$ this ->orderMock ->expects (static ::exactly (2 ))
1524
- ->method ('getTotalDue ' )
1524
+ ->method ('getBaseTotalDue ' )
1525
1525
->willReturn ($ amount );
1526
1526
1527
1527
static ::assertFalse ($ this ->payment ->isCaptureFinal ($ partialAmount ));
You can’t perform that action at this time.
0 commit comments