phpish / shopify_app-skeleton

Skeleton Shopify App project using phpish/shopify
94 stars 41 forks source link

Error install App The redirect_uri is missing #36

Open dmarkKd opened 7 years ago

dmarkKd commented 7 years ago

Hello , Am stuck in installation process when using the SDK http://prntscr.com/g6bfpk Here my App details and Redirect link http://prntscr.com/g6bgbz

myjanky commented 7 years ago

Looks like you need SSL so https is called instead.

dmarkKd commented 7 years ago

i have but again same problem http://prntscr.com/g6n6bx

if am run this https://110.225.200.110/dmShipping/install.php directly i got an error "Query parameter "shop" missing."

myjanky commented 7 years ago

try https://110.225.200.110/dmShipping/install.php?shop=YOUR.MYSHOPIFY.URL.com Also, this lib has not been updated in awhile so try ohShopify Php lib.

dmarkKd commented 7 years ago

thanks for your reply i will successfully install my app but when am try to get "shop data" like "get_shop.php" i got a error line number 15.

"shopifyphpish\shopify\CurlException: [6] Could not resolve host: SHOPIFY_SHOP"

myjanky commented 7 years ago

can you post the contents of get_shop.php?

dmarkKd commented 7 years ago

phpish\shopify\CurlException: [6] Could not resolve host: in /home/admin/web/dmserver.example.com/public_html/dmShipping/get_shop.php on line 14Array ( [method] => GET [uri] => https://b7578934bf19aa4c0f763b16b3964a58:5702c4b245785628d22a3822a2995970@/admin/shop.json [query] => [headers] => Array ( [content-type] => application/json; charset=utf-8 ) [payload] => ) Array ( )

myjanky commented 7 years ago

The URI is incorrect. Are you trying to use a private app?

dmarkKd commented 7 years ago

No am working with public app there ismy app url "https://apps.shopify.com/dm-shipment" but till am not publish this .

myjanky commented 7 years ago

What I am saying is that the URI from the curl request above is showing a private app url. Look at private_app = true. and look at the function private_app_base_url() Your app must be passing the private app parameter.

raviravikant commented 7 years ago

I have successfully installed the app but when i tried to open the from shopify's admin it will redirect me on my frontend url oauth.php , can you please help me.

myjanky commented 6 years ago

On line 31 of the oauth.php you can set a header(location:)