Skip to content Skip to sidebar Skip to footer

Capture Shopify Payment Response

I recently started implementing shopify for one of my client. Since it's a website built in spring, I have only option to use their Javascript SDK. Everything is working fine I'm a

Solution 1:

It is possible making some changes in your client's website and in the checkout section of the admin shopify store.

  1. Add a custom javascript redirect in the store checkout page that redirects to the client's website and pass to it the ID of the order, you could do this by adding some js code in: Settings -> Checkout -> Additional scripts of store admin. Something like this:

    window.location =" http://YOURURLHERE.COM?orderid=xxx ";

Where xxx is the order ID.

  1. Once you are able to get the orderid in client side (javascript), you can call to the shopify API to get the order info (https://help.shopify.com/api/reference/order) by plain javascript.

Hope this help

Post a Comment for "Capture Shopify Payment Response"