fatzebra/PHP-Library

Purchases less than $1 cannot be refunded

Opened this issue · 1 comments

if(intval($amount) < 1) throw new \InvalidArgumentException("Amount is invalid - must be a positive value");

Confirmed, even in the latest version of this package the conversion from dollars to cents (floatToInt()) takes place after the check, so $amount is still in dollars.