App credentials
Credentials are retrieved by config/esc_shopify.php
. By default they come from your .env
. Add the following:
SHOPIFY_API_KEY={App API key}
SHOPIFY_API_SECRET={App API secret / 'Shared Secret'}
SHOPIFY_SHOP_DOMAIN={Only for private apps - the .myshopify.com domain}
SHOPIFY_ACCESS_TOKEN={Only for private apps - the 'API Password'}
Ignore the SHOPIFY_SHOP_DOMAIN
and SHOPIFY_ACCESS_TOKEN
variables if you're making a public app.
Example .env
with included variables:
APP_ENV=local
APP_DEBUG=true
APP_KEY=111111111111111111111111111111111111111
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
SHOPIFY_API_KEY=222222222222222222222222222
SHOPIFY_API_SECRET=33333333333333333333333333333
SHOPIFY_SHOP_DOMAIN=myshop.myshopify.com
SHOPIFY_ACCESS_TOKEN=4444444444444444444444444444