Skip to content

Commit f44fdf1

Browse files
committed
Upstream catchup.
1 parent 8397c83 commit f44fdf1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Omnipay/Common/Message/AbstractRequest.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ public function setCardReference($value)
161161
public function getAmount()
162162
{
163163
$amount = $this->getParameter('amount');
164-
<<<<<<< HEAD
165164
$message = 'Please specify amount as a string or float, '
166165
. 'with decimal places (e.g. \'10.00\' to represent $10.00).';
167166

@@ -196,16 +195,7 @@ public function getAmount()
196195
$decimal_count = strlen(substr(strrchr((string)$amount, '.'), 1));
197196
if ($decimal_count > $this->getCurrencyDecimalPlaces()) {
198197
throw new InvalidRequestException('Amount precision is too high for currency.');
199-
=======
200-
if ($amount !== null) {
201-
if (!is_float($amount) &&
202-
$this->getCurrencyDecimalPlaces() > 0 &&
203-
false === strpos((string) $amount, '.')) {
204-
throw new InvalidRequestException(
205-
'Please specify amount as a string or float, ' .
206-
'with decimal places (e.g. \'10.00\' to represent $10.00).'
207-
);
208-
>>>>>>> 66a1999f3b20f4466855326220b6e42f49426548
198+
209199
}
210200

211201
return $this->formatCurrency($amount);

0 commit comments

Comments
 (0)