Check if referral payments have been refunded

This commit is contained in:
Hillel Coren 2017-09-14 11:39:44 +03:00
parent 10fd839c78
commit ec5f8ceb46

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;
}