関数
Client::__construct( Aivec\Welcart\SettlementModules\LinePay\LinePay $module, string $endpoint, string $channelid, string $secret )
パラメータ パラメータ
- $module
(LinePay) (必須)
- $endpoint
(文字列) (必須)
- $channelid
(文字列) (必須)
- $secret
(文字列) (必須)
ファイル: src/Api/Client.php
public function __construct(LinePay $module, $endpoint, $channelid, $secret) { $this->module = $module; $this->channelid = $channelid; $this->secret = $secret; $this->guzzle = new GuzzleHttp\Client([ 'base_uri' => $endpoint . Constants::API_VERSION_ROUTE, 'headers' => [ 'Content-Type' => 'application/json', 'X-LINE-ChannelId' => $this->channelid, ], ]); }