Replace the Google Autocompletion engine on the input form on the checkout page for a custom one.

iska31
Shopify Partner
5 0 1

Hi there,

The title is quiet clear, after discussing it with the Shopify customer support I got an alternative (as the initial idea is not possible), which is to create a new step on the cart to ask the checkout inputs and verify them with my software (an autocompletion feature that uses API REST to check if the email and phone number provided are valide). 

I was wondering what technical endpoints should I use to create a public application that get such inputs and automatically send them to the checkout page (no need to make the visitor logged in), as we could do with the Storefront API.

Here is the docs I found : 
https://shopify.dev/docs/apps/channels/cart-permalinks/cart-permalinks?utm_source=gurucopy&utm_mediu...
https://shopify.dev/docs/custom-storefronts/building-with-the-storefront-api/checkout/create?utm_sou...

Thus my question would be, what are the best practices for such a use case with a Shopify Public App. 
Regards,
isk

Reply 1 (1)

Yeady123
Explorer
61 7 9

To create a public application that retrieves inputs from a checkout page and sends them to the checkout page using the Shopify API, you can use the Checkout API. The Checkout API provides a way to interact with the checkout process and retrieve information about the current checkout. You can use the API to update the shipping address, email, and phone number for the checkout, among other things.

Here are the steps you would need to follow:

You'll need to create a private app in Shopify and obtain an API key and password. You can use the Checkout API to retrieve the ID of the current checkout. This is needed to update the information for the checkout. You can use the Checkout API to update the shipping address, email, and phone number for the checkout. You can also use your autocompletion software to verify the information and make sure it is valid before sending the update request to Shopify. You can use the Checkout API to monitor the status of the checkout and take appropriate action based on the status. For example, you can redirect the customer to the next step in the checkout process if the information has been successfully updated.

- Was my reply helpful? Click "Like" to let me know!
- ----Was your question answered? Mark it as an Accepted Solution
You can get in touch with me via WhatsApp on +88013-13075440
Email: shahinkhan2424ft@gmail.com