I am building headless store using shopify. All things are completed and setup only issue is how I can manage checkout on my domain. I don’t want to perform checkout on shopify hosted checkout page. Can anyone please suggest how I can implement it?
I tried to use this mutation “checkoutCompleteWithCreditCardV2” but in this mutation I require vaultId and without payment how can I get it? Please suggest is this a right way to implement it and please don’t give shopify official documentation link. I have read all of them but still facing issues. I want crisp and clear answer.
Hello @lokeshgarg
It is mandatory to use the Shopify checkout, even if you are on Shopify Plus and using the headless system. The best way is to add a subdomain to your Shopify account, such as checkout.{yourdomain}.com, and use the main domain for the headless store. I have implemented this solution for one of my clients, olivela.com.
Alternatively, you can develop your own payment gateway and checkout page, but only after obtaining permission from Shopify. Once you receive payment, you can mark the order as paid using Shopify Graphql or Admin REST API. Let me know if you need further assistance.