Skip to content

Purchases less than $1 cannot be refunded #8

New issue

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

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

Already on GitHub? Sign in to your account

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants