Redirection issue before app installation is completed

Tourist
38 0 1

Hello there,

We are developing an app. While installing app, firstly it will ask for grant permissions, billing( approve charges ) and then will redirect to our app page.

During installation, even if we cancel the charges at step 2, in Apps section we can see the app listed and on clicking it we are expecting it to redirect to billing page but its refusing to redirect and we can see the calls to oauth and billing in Network tab.

If we open those urls in browser, its coming correctly.

Why its refusing to redirect to oauth/billing once we click the app in Apps section.

 

Any help would be appreciated.

0 Likes
Shopify Staff
Shopify Staff
216 36 37

Hey @user072319 ,

 

Are you still seeing this issue?
 
If you are, can you open the Chrome Developer Tool on your embedded app and look at the “Console” tab when you are expecting the app to redirect to the billing page? Can you confirm if the error of "Refused to display 'THE_URL' in a frame because it set 'X-Frame-Options' to 'deny’.” is present in your console? If so you can try turning off the option of “X-Frame-Options DENY” in your web server - as per these instructions: https://help.shopify.com/en/api/embedded-apps/embedded-app-sdk/getting-started#x-frame-options-heade...
 
The other thing to try is if your app is built using the Ruby shopify_app gem, using the function of “fullpage_redirect_to” to redirect your app to the charge confirmation page instead of just using “redirect_to”. You can read more about it here: https://github.com/Shopify/shopify_app/issues/387
 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes