Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shopify App Reject oAuth Issue #62

Open
muazzamazaz opened this issue Dec 10, 2024 · 0 comments
Open

Shopify App Reject oAuth Issue #62

muazzamazaz opened this issue Dec 10, 2024 · 0 comments

Comments

@muazzamazaz
Copy link

muazzamazaz commented Dec 10, 2024

I am building a shopify app using Laravel signifly pacakge

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant