Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function authenticate() |
||
13 | { |
||
14 | $this->validateAndLoadConfig(); |
||
15 | |||
16 | $this->client = BitpayClient::create()->withData( |
||
|
|||
17 | 'testnet' == $this->config['network'] ? Env::Test : Env::Prod, |
||
18 | $this->config['private_key'], |
||
19 | new Tokens( |
||
20 | $this->config['token'] //merchant |
||
21 | ), |
||
22 | $this->config['key_storage_password'] //used to decrypt your private key, if encrypted |
||
23 | ); |
||
49 |