From 6cc639b41d07b21f14eee9809a496f0ac3f1d4aa Mon Sep 17 00:00:00 2001 From: Lito Date: Sun, 31 Jan 2016 19:49:53 +0100 Subject: [PATCH] Fixed 32 bits sprintf response. Closes #9 --- src/Redsys/Tpv/Tpv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Redsys/Tpv/Tpv.php b/src/Redsys/Tpv/Tpv.php index d0bd3ca..2e72422 100644 --- a/src/Redsys/Tpv/Tpv.php +++ b/src/Redsys/Tpv/Tpv.php @@ -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);