Skip to content

Commit

Permalink
Fixes config name
Browse files Browse the repository at this point in the history
  • Loading branch information
Moinuddin S. Khaja committed Nov 27, 2021
1 parent 06ed371 commit 767c69f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/WazirxAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class WazirxAPI
*/
public function __construct($api_key = null, $api_secret = null, $api_url = null, $timing = 10000)
{
$this->api_key = (! empty($api_key)) ? $api_key : config('wazirx.auth.key');
$this->api_secret = (! empty($api_secret)) ? $api_secret : config('wazirx.auth.secret');
$this->api_url = (! empty($api_url)) ? $api_url : config('wazirx.urls.sapi');
$this->recvWindow = (! empty($timing)) ? $timing : config('wazirx.settings.timing');
$this->api_key = (! empty($api_key)) ? $api_key : config('wazirx-api.auth.key');
$this->api_secret = (! empty($api_secret)) ? $api_secret : config('wazirx-api.auth.secret');
$this->api_url = (! empty($api_url)) ? $api_url : config('wazirx-api.urls.sapi');
$this->recvWindow = (! empty($timing)) ? $timing : config('wazirx-api.settings.timing');
}

/**
Expand Down

0 comments on commit 767c69f

Please sign in to comment.