diff --git a/app/Http/Controllers/WebpayController.php b/app/Http/Controllers/WebpayController.php index a968736..cd1a79d 100644 --- a/app/Http/Controllers/WebpayController.php +++ b/app/Http/Controllers/WebpayController.php @@ -25,7 +25,7 @@ public function create() $createTx = [ 'buyOrder' => "O-" . rand(1, 10000), - "sessionId" => "S-" . (string)(rand(1, 10000)), + "sessionId" => "S-" . rand(1, 10000), 'returnUrl' => url('/') . '/webpay-plus/commit', 'amount' => rand(1000, 2000) ]; diff --git a/app/Http/Controllers/WebpayPlusDeferredController.php b/app/Http/Controllers/WebpayPlusDeferredController.php index 62ca70d..8586d60 100644 --- a/app/Http/Controllers/WebpayPlusDeferredController.php +++ b/app/Http/Controllers/WebpayPlusDeferredController.php @@ -23,7 +23,7 @@ public function create() $createTx = [ 'buyOrder' => "O-" . rand(1, 10000), - "sessionId" => "S-" . (string)(rand(1, 10000)), + "sessionId" => "S-" . rand(1, 10000), 'returnUrl' => url('/') . '/webpay-plus-diferido/commit', 'amount' => rand(1000, 2000) ]; diff --git a/app/Http/Controllers/WebpayPlusMallController.php b/app/Http/Controllers/WebpayPlusMallController.php index 9256f34..4234d20 100644 --- a/app/Http/Controllers/WebpayPlusMallController.php +++ b/app/Http/Controllers/WebpayPlusMallController.php @@ -22,7 +22,7 @@ public function create() $createTx = [ "buy_order" => "O-" . rand(1, 10000), - "session_id" => "S-" . (string)(rand(1, 10000)), + "session_id" => "S-" . rand(1, 10000), "return_url" => url("/") . "/webpay-mall/commit", "details" => [ [ diff --git a/app/Http/Controllers/WebpayPlusMallDeferredController.php b/app/Http/Controllers/WebpayPlusMallDeferredController.php index ce5f71a..931d160 100644 --- a/app/Http/Controllers/WebpayPlusMallDeferredController.php +++ b/app/Http/Controllers/WebpayPlusMallDeferredController.php @@ -22,7 +22,7 @@ public function create() $createTx = [ 'buy_order' => "O-" . rand(1, 10000), - "session_id" => "S-" . (string)(rand(1, 10000)), + "session_id" => "S-" . rand(1, 10000), 'return_url' => url('/') . '/webpay-mall-diferido/commit', 'details' => [ [