Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Fixed oauth and sandbox values were not retained if multiple calls to…
Browse files Browse the repository at this point in the history
… configure were called but missing them on 2nd call onwards.
  • Loading branch information
khairulashraff committed Apr 19, 2019
1 parent 8634eae commit 619e01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public static function configure($options) {
self::$client_secret = $options['client_secret'] ?? self::$client_secret ?? getenv('QUICKBOOKS_CLIENT_SECRET');
self::$webhook_token = $options['webhook_token'] ?? self::$webhook_token ?? getenv('QUICKBOOKS_WEBHOOK_TOKEN');
self::$redirect_uri = $options['redirect_uri'] ?? self::$redirect_uri ?? getenv('QUICKBOOKS_REDIRECT_URI');
self::$sandbox = isset($options['sandbox']) && $options['sandbox'] === true;
self::$oauth = $options['oauth'] ?? $options['oauth'] ?? '';
self::$sandbox = isset($options['sandbox']) && $options['sandbox'] === true || self::$sandbox;
self::$oauth = $options['oauth'] ?? self::$oauth ?? '';
self::$realm_id = $options['realm_id'] ?? self::$realm_id ?? '';
}

Expand Down

0 comments on commit 619e01a

Please sign in to comment.