Skip to content

Commit 9e196d8

Browse files
authored
Update MallPayClient.php
1 parent 7e6b6f3 commit 9e196d8

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/MallPayClient.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MallPayClient
3030
* @param string $apiUrl
3131
* @param \Psr\Log\LoggerInterface $logger
3232
*/
33-
public function __construct($apiUsername, $apiPassword, $apiUrl, $logger)
33+
public function __construct($apiUsername, $apiPassword, $apiUrl, $logger = null)
3434
{
3535
$this->apiUsername = $apiUsername;
3636
$this->apiPassword = $apiPassword;
@@ -45,7 +45,13 @@ public function __construct($apiUsername, $apiPassword, $apiUrl, $logger)
4545
)
4646
);
4747
}
48-
$this->client = new Client(['base_uri'=>$apiUrl, 'handler' => $stack,/*, 'verify' => false*/ /*, 'proxy' => 'tcp://localhost:8888'*/]);
48+
$this->client = new Client([
49+
'base_uri' => $apiUrl,
50+
'handler' => $stack,
51+
'timeout' => 30
52+
/*, 'verify' => false*/
53+
/*, 'proxy' => 'tcp://localhost:8888'*/
54+
]);
4955
}
5056

5157
/**

0 commit comments

Comments
 (0)