diff --git a/src/CanBeBought.php b/src/CanBeBought.php index a5cbd44..cb529d0 100644 --- a/src/CanBeBought.php +++ b/src/CanBeBought.php @@ -37,8 +37,8 @@ trait CanBeBought */ public function getBuyablePrice(): Money { - if (($price = $this->getAttribute('price'))) { - return new Money($price); + if (($price = $this->getAttribute('price')) && ($currency = $this->getAttribute('currency'))) { + return new Money($price, $currency); } }