Skip to content

Commit 8f36bee

Browse files
committed
fix: config naming
1 parent 6ed040f commit 8f36bee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/shopify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/*
88
* The API access token from the private app.
99
*/
10-
'api_access_token' => env('SHOPIFY_API_ACCESS_TOKEN', ''),
10+
'access_token' => env('SHOPIFY_ACCESS_TOKEN', ''),
1111

1212
/*
1313
* The shopify domain for your shop.

src/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Factory
77
public static function fromConfig(): Shopify
88
{
99
return new Shopify(
10-
config('shopify.credentials.api_access_token'),
10+
config('shopify.credentials.access_token'),
1111
config('shopify.credentials.domain'),
1212
config('shopify.credentials.api_version'),
1313
);
@@ -16,7 +16,7 @@ public static function fromConfig(): Shopify
1616
public static function fromArray(array $data): Shopify
1717
{
1818
return new Shopify(
19-
$data['api_access_token'],
19+
$data['access_token'],
2020
$data['domain'],
2121
$data['api_version']
2222
);

0 commit comments

Comments
 (0)