Fix for getCompletedAmount

This commit is contained in:
Hillel Coren 2017-10-22 00:38:51 +03:00
parent 293e07fc4e
commit 42d9282a9e

View File

@ -295,10 +295,6 @@ class Payment extends EntityModel
*/
public function getCompletedAmount()
{
if ($this->isFailed() || $this->isVoided()) {
return 0;
}
return $this->amount - $this->refunded;
}