We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7af692 commit 4cee98eCopy full SHA for 4cee98e
src/Omnipay/Common/Message/AbstractRequest.php
@@ -164,7 +164,7 @@ public function getAmount()
164
$message = 'Please specify amount as a string or float, '
165
. 'with decimal places (e.g. \'10.00\' to represent $10.00).';
166
167
- if (isset($amount)) {
+ if ($amount !== null) {
168
// Don't allow integers for currencies that support decimals.
169
// This is for legacy reasons - upgrades from v0.9
170
if (is_int($amount) && $this->getCurrencyDecimalPlaces() > 0) {
0 commit comments