Redirect merchants to your app after they've completed OAuth and approved charges

Redirect merchants to your app after they've completed OAuth and approved charges

sujit
Shopify Partner
6 0 0

Hello,

 

I have a public app completed and submitted to app review team. The following have been requested to fix in the app.  Any idea what needs to be fix here.

 

Redirect merchants to your app after they've completed OAuth and approved charges. See this screencast for additional details.

 

Is it possible to update the appname in url path Eg: https://store.myshopify.com/admin/apps/appname  ?

 

Please help.

banned
Replies 5 (5)

MeganM
Shopify Staff (Retired)
2 1 2

Hi@sujit 

How you redirect will depend on what your server code looks like, and if you are using App Bridge. You can see a few JS examples here on how to redirect back once OAuth is complete.

Product Review Sample App - using Node and Next.js

Fulfillment App using Node and Express, started from the Shopify CLI

 

To learn more visit the Shopify Help Center or the Community Blog.

sujit
Shopify Partner
6 0 0

Thanks for the response. I am using PHP and its a simple app Eg : https://github.com/haanhduclinh/shopify-php-basic Similar to this. 

banned
sujit
Shopify Partner
6 0 0

Hi,

 

As per the above link i have noticed that API key is appending at the end of the url :

https://${shop}/admin/apps/${process.env.SHOPIFY_API_KEY}

 

Is it safe to append this in header redirect? As API key will be visible to users after getting redirect from the OAuth installation page.

banned
sujit
Shopify Partner
6 0 0

Any input?

banned
CalebV
Shopify Partner
15 0 5

I'm encountering a similar issue. I went through the steps to make the app available for a single merchant and I got a url is not whitelisted error. I just need to know what value to put for the redirect url