diff --git a/src/Traits/Request.php b/src/Traits/Request.php index d156eb3..5908bbd 100644 --- a/src/Traits/Request.php +++ b/src/Traits/Request.php @@ -334,7 +334,7 @@ protected function convertPayloadAmountsToInteger($payload) { if (isset($payload['amount'])) { $payload['amount'] = match ($amountType = config('paymongo.amount_type', 'float')) { - 'float' => (int) number_format(($payload['amount'] * 100), 0, '', ''), + 'float' => (int) number_format($payload['amount'] * 100, 0, '', ''), 'int' => (int) $payload['amount'], default => throw new AmountTypeNotSupportedException("The amount_type [$amountType] used is not supported."), };