Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaoka committed Aug 6, 2024
1 parent 96fe7b6 commit 24d291b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@ class Client extends \PayPay\OpenPaymentAPI\Client
*/
private ?array $fakeResponse;

private array $options;

/**
* @param array{API_KEY: string, API_SECRET: string, MERCHANT_ID: string} $auth
* @param bool $productionmode
* @param GuzzleHttpClient|false $requestHandler
* @param array $options
*
* @throws ClientException
*/
public function __construct($auth = null, $productionmode = false, $requestHandler = false, $options = [])
{
public function __construct(
array $auth,
bool $productionmode = false,
GuzzleHttpClient|false $requestHandler = false,
private readonly array $options = []
) {
$this->fakeResponse = null;
$this->options = $options;

parent::__construct($auth, $productionmode, $requestHandler);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/PayPayServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function register(): void
'API_KEY' => $config['api_key'],
'API_SECRET' => $config['api_secret'],
'MERCHANT_ID' => $config['merchant_id'],
], $config['production_mode'], $config['options']);
], $config['production_mode'], false, $config['options']);
});

$this->app->alias('PayPay', Client::class);
Expand Down

0 comments on commit 24d291b

Please sign in to comment.