forked from LiveCarta/PayPal-PHP-SDK
Updated FormatConverter to Format Price based on Currency (if provided)
- Fixes #176 Issue - Renamed formatToTwoDecimalPlaces to formatToNumber
This commit is contained in:
@@ -55,7 +55,7 @@ class Amount extends PPModel
|
||||
public function setTotal($total)
|
||||
{
|
||||
NumericValidator::validate($total, "Total");
|
||||
$total = FormatConverter::formatToTwoDecimalPlaces($total);
|
||||
$total = FormatConverter::formatToPrice($total, $this->getCurrency());
|
||||
$this->total = $total;
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user