Skip to content

Commit

Permalink
Fixed 32 bits sprintf response. Closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
eusonlito committed Jan 31, 2016
1 parent 3799440 commit 6cc639b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Redsys/Tpv/Tpv.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private function setValue(array $options, $option)
public function getOrder($order)
{
if (preg_match('/^[0-9]+$/', $order)) {
$order = sprintf('%012d', $order);
$order = sprintf('%012s', $order);
}

$len = strlen($order);
Expand Down

0 comments on commit 6cc639b

Please sign in to comment.