BNMetrics / Laravel-ShopifyAPI

Shopify Laravel API Wrapper ( with Billing support!)
MIT License
53 stars 29 forks source link

Problem with authentication #9

Closed icemanblas closed 6 years ago

icemanblas commented 6 years ago

Hello, as this is not a proper issue, I would need some help here.

I can not authenticate my Laravel application with a development store I have on Shopify. I follow all the steps described in the documentation, but each time I try to access some feature on my store, I get this error:

Client error: POST https://chl-local-test.myshopify.com/admin/oauth/access_token resulted in a 400 Bad Request response: {"error":"invalid_request","error_description":"The authorization code was not found or was already used"}

The 'api_key', the 'secret' and the redirect url are correctly set, the scope array, as well:

'read_products', 'write_products', 'read_customers', 'write_customers', 'read_orders', 'write_orders', 'read_fulfillments', 'write_fulfillments', 'read_shipping', 'write_shipping', 'read_checkouts', 'write_checkouts'

I believe I'm missing something basic.

Thanks in advance, Blashko