diff --git a/src/Message/AbstractRequest.php b/src/Message/AbstractRequest.php index 0b0e3038..f10f7182 100644 --- a/src/Message/AbstractRequest.php +++ b/src/Message/AbstractRequest.php @@ -324,7 +324,7 @@ public function getMoney($parameterName = 'amount') throw new InvalidRequestException('Amount precision is too high for currency.'); } - $money = $moneyParser->parse((string) $number, $currency->getCode()); + $money = $moneyParser->parse((string) $number, $currency); // Check for a negative amount. if (!$this->negativeAmountAllowed && $money->isNegative()) {