sunil
sunil

Reputation: 1

Shopify app developement redirection URL callback

I am working on the Shopify app development. Right now I am working on my local system and try to connect this with the localhost.

Shopify auth is working fine but I have faced problems in redirection URL callback function. It always returns with an https request. I have mentioned redirect URL with http://localhost/appname/callback.

Does Shopify app only work on https?

Please let me know if anyone has knowledge of the Shopify app.

Upvotes: 0

Views: 1815

Answers (4)

shababhsiddique
shababhsiddique

Reputation: 911

use shopify cli, it is super helpful for this. It includes ngrok helpers that will auto generate the new https url and update the URL on run in your shopify app detail when in dev mode.

Upvotes: 0

Kishor Namdeo
Kishor Namdeo

Reputation: 111

  1. localhost not supporting. you should use ngrok for test app.
  2. use HTTP link instead of HTTP.

after this your issue will be fixed

Upvotes: 1

Bhargav Kaklotara
Bhargav Kaklotara

Reputation: 1458

Yes Shopify app works only on HTTPS. while installing you can manually replace htpps with http or you can setup SSL in your localhost.

Below post might help.

How do I allow HTTPS for Apache on localhost?

But This is not going to work for web-hooks.to make it working for webhooks, you need to create public url that expose your local web server.

you can do this using ngrok

Below post Can help you to setup ngrok

https://support.chargebee.com/support/discussions/topics/26214

Upvotes: 1

Przemek Mroczek
Przemek Mroczek

Reputation: 357

Nope, if you are not checking webhooks you can run it on localhost.

I just think callback address is wrong. Check on which port you are running, for me running rails application that would be http://localhost:3000/appname/callback

Upvotes: 1

Related Questions