Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Go to confirmation_url when charge approval is canceled

Go to confirmation_url when charge approval is canceled

omega3
Shopify Partner
1 0 0

Hello, I am having a problem when a merchant is canceling the payment approval right after the app installation.
When they cancel I am trying to redirect them back to the same confirmation_url which was used during the installation but it's giving me a (refused to connect) error.

 

I tried adding the URL to App Setup -> Allowed redirection URLs but it didn't work.

 

Tried also to redirect to the authorization url below and get the request directly to a new route from the url below. It only worked during installation process.
https://".$shop."/admin/oauth/authorize?client_id=".$api_key."&scope=".$scopes."&redirect_uri=".urle...

 

Also tried to create a new charge with a new confirmation_url but the same happend.

 

Can anyone help me resolve this issue please. I am using laravel for backend.

Thanks.

Replies 0 (0)