Not Getting match information from the draft order payment request

Not Getting match information from the draft order payment request

Shopify Partner
5 0 2

We have created a payment gateway into Shopify using the Hosted Payment Gateway SDK. 

What is the issue here: 
Step1: Merchant will create a draft order from Shopify Back-end
Step2: Merchant will send an invoice to the customer to pay the order and the customer will receive a Shopify link to pay order: 
Step3: Customer will complete the order 
Step4: Once they click on complete order, it will redirect to the Hosted Payment Page and Shopify is sending this information to that page: 
Step5: Issue is here, Shopify does not send a draft order ID or checkout ID there so we are unable to get the current cart information over there. If we get a draft order id or checkout id there then only we can fetch the cart information using the Shopify draft order or checkout API. For our payment gateway, we require cart information to proceed with the payment. 

With the regular checkout from the Shopify storefront, Shopify sending a checkout id into the x_reference parameter, and using that we are making an API call to get the checkout information. 

I hope, will have a solution to it. 

Reply 1 (1)

Shopify Staff
200 27 55

@digital11 ,

Happy to help you out with this. 

Looking at our logs I am seeing failed responses this past week, and the checkout id's appear associated with draft orders. However, I'm noticing that in the response your correctly echoing back the x_reference id which is associated to a checkout record tied to a draft order. What API are you using to get the checkout details?

Would you mind running a new test, attempting to complete a draft order with your payment provider and providing the date and time in UTC of that request. It will help me and our payment team in our troubleshooting efforts.



John C | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog