Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

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)