@Devmaurice You could either retrieve the cart based on the user’s ID (as I’m assuming the mobile apps send a token that’s related to a user) or when the cart is created, the client app saves that cart’s unique identifier and then makes any subsequent requests (i.e. adding a product, removing a product) against that ID.
Nov 21, 2017
4
Level 26
Cart Session in a Stateless environment
So i have this app , an api serving mobile backed. I have implemented authentication and all that. Now i want to work on a cart. On my localhost using Postman,it's working very well.
The problem is when tunnel through ngrok for the mobile guys to test. The cart does not persist.
Am aware of the stateless situation i just don't know how i should go about this to create a cart to serve the mobile app.
Should the mobile app maintain the cart?
If it's laravel just a tip how i should go about it?
Please or to participate in this conversation.