Update PaypalProduct.php

This commit is contained in:
1Day 2021-12-02 12:06:02 +01:00
parent bd6cec92ea
commit fcef2c6b7c

View file

@ -70,7 +70,7 @@ class PaypalProduct extends Model
*/ */
public function getTaxValue() public function getTaxValue()
{ {
return $this->price*$this->getTaxPercent()/100; return number_format($this->price*$this->getTaxPercent()/100,2);
} }
/** /**
@ -80,6 +80,6 @@ class PaypalProduct extends Model
*/ */
public function getTotalPrice() public function getTotalPrice()
{ {
return $this->price+($this->getTaxValue()); return number_format($this->price+$this->getTaxValue(),2);
} }
} }