Fix for getCompletedAmount
This commit is contained in:
parent
855576018b
commit
9a482f80f6
1 changed files with 0 additions and 4 deletions
|
|
@ -295,10 +295,6 @@ class Payment extends EntityModel
|
|||
*/
|
||||
public function getCompletedAmount()
|
||||
{
|
||||
if ($this->isFailed() || $this->isVoided()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return $this->amount - $this->refunded;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue