File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/Omnipay/Common/Message Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ public function setCardReference($value)
161
161
public function getAmount ()
162
162
{
163
163
$ amount = $ this ->getParameter ('amount ' );
164
- <<<<<<< HEAD
165
164
$ message = 'Please specify amount as a string or float, '
166
165
. 'with decimal places (e.g. \'10.00 \' to represent $10.00). ' ;
167
166
@@ -196,16 +195,7 @@ public function getAmount()
196
195
$ decimal_count = strlen (substr (strrchr ((string )$ amount , '. ' ), 1 ));
197
196
if ($ decimal_count > $ this ->getCurrencyDecimalPlaces ()) {
198
197
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
- >>>>>>> 66 a1999f3b20f4466855326220b6e42f49426548
198
+
209
199
}
210
200
211
201
return $ this ->formatCurrency ($ amount );
You can’t perform that action at this time.
0 commit comments