Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Purchases less than $1 cannot be refunded #8

Open
mikkoasis opened this issue Aug 6, 2018 · 1 comment · May be fixed by #29
Open

Purchases less than $1 cannot be refunded #8

mikkoasis opened this issue Aug 6, 2018 · 1 comment · May be fixed by #29

Comments

@mikkoasis
Copy link

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

@chrisaligent
Copy link

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.

@mikkoasis mikkoasis linked a pull request Jan 28, 2022 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants