Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I am using the shopify Storefront API in my webpage. To proceed with checkout, I use the createCheckout mutation. What I want to do is to get a confirmation to my backend that a user of my webpage placed an order, so that I can be able to save that information in the user profile. This is because I need to limit the amount of products to be sent to a customer to one per semester. How can I do this?
I was thinking that I could send the information of the user from my webpage to the checkout, and when the purchase is done, register this in the database to be able to restrict the user if she/he wants to order a product again.
Is something like this possible somehow?