Skip to content

Commit

Permalink
fix: config naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Razorsheep committed Nov 11, 2022
1 parent 6ed040f commit 8f36bee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/shopify.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/*
* The API access token from the private app.
*/
'api_access_token' => env('SHOPIFY_API_ACCESS_TOKEN', ''),
'access_token' => env('SHOPIFY_ACCESS_TOKEN', ''),

/*
* The shopify domain for your shop.
Expand Down
4 changes: 2 additions & 2 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Factory
public static function fromConfig(): Shopify
{
return new Shopify(
config('shopify.credentials.api_access_token'),
config('shopify.credentials.access_token'),
config('shopify.credentials.domain'),
config('shopify.credentials.api_version'),
);
Expand All @@ -16,7 +16,7 @@ public static function fromConfig(): Shopify
public static function fromArray(array $data): Shopify
{
return new Shopify(
$data['api_access_token'],
$data['access_token'],
$data['domain'],
$data['api_version']
);
Expand Down

0 comments on commit 8f36bee

Please sign in to comment.