Checks if the amount fits the format: A float with only two decimals, not lower than 0.01, not greater than 999,999,999.99.
Signature
private function checkAmountFormat(mixed
$amount )
Parameters
$amount
—
mixed
float or string with or without thousand separator (use , or .). You can use '.' or ',' as decimal point, but not one sign as thousand separator and decimal point. So 1234.56; 1,234.56; 1.234,56; 1234,56 ar valid inputs.