Fix for client balance when voiding Braintree payment
This commit is contained in:
parent
f9afbf44bc
commit
c0558de528
1 changed files with 2 additions and 2 deletions
|
|
@ -238,12 +238,12 @@ class Payment extends EntityModel
|
|||
return false;
|
||||
}
|
||||
|
||||
Event::fire(new PaymentWasVoided($this));
|
||||
|
||||
$this->refunded = $this->amount;
|
||||
$this->payment_status_id = PAYMENT_STATUS_VOIDED;
|
||||
$this->save();
|
||||
|
||||
Event::fire(new PaymentWasVoided($this));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue