I am building a shopify app using Laravel signifly pacakge
[Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.](https://Laravel Signifly )
and by using that I have write following code to get access token:
https://{$shopDomain}/admin/oauth/authorize?client_id=" . env('SHOPIFY_API_KEY') . "&scope=read_products,write_products&redirect_uri=" . route('shopify.callback'));
}
and callback url returns :
$code = $request->input('code');
// Get access token from Shopify
$response = Http::post("https://{$shop}/admin/oauth/access_token", [
'client_id' => env('SHOPIFY_API_KEY'),
'client_secret' => env('SHOPIFY_API_SECRET'),
'code' => $code,
]);
Its working fine to get required products, orders and customers etc. But shopify need to use oAuth process.
Let me know what is wrong here in my code and need to be updated