Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Anderson committed Oct 2, 2023
1 parent c742e42 commit fcc0c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct()
$this->client = new PayPalClient();
$this->client->setApiCredentials(config('paypal'));

if (array_keys($this->cacheAccessToken()['access_token'])) {
if (array_key_exists('access_token', $this->cacheAccessToken())) {
$this->client->setAccessToken($this->cacheAccessToken());
}

Expand Down

0 comments on commit fcc0c71

Please sign in to comment.