Skip to content

Commit

Permalink
Payu Laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
atomjoy authored Nov 19, 2022
1 parent d2deaf4 commit 7902383
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Gateways/PayuPaymentGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,7 @@ function toCents(float $decimal): int
throw new Exception("Invalid decimal value", 422);
}

return ($decimal * 100);
// return number_format($decimal, 2, '.', '') * 100;
return number_format($decimal * 100, 2, '.', '');
}

function log($code, $desc, $oid = 'NONE')
Expand Down

0 comments on commit 7902383

Please sign in to comment.