I'm creating a module for Prestashop to manage products and carts from an app and all the requests to manage them are made with REST requests. I'm quite blocked because I'm not sure how to proceed with the checkout process. I guess that it could be easy to make a ModuleFrontController to show a page to select the delivery and payment methods, but I don't know how can i pass the information needed to identify the cart and the customer with security.
Could anyone help me to know how can I generate a cookie like the web page uses to pass the information to this controller?
Or, Is there any guide about can I send this kind of fields to a Front controller without creating security risks ?