Closed henry-js closed 2 years ago
If you call the "add to cart" endpoint without a cart ID, it will create a new cart and give you the ID. You then reuse that ID when adding more things and to check out.
Pretty sure it's working as intended now, but calling the endpoint with no guid causes a null reference exception, so perhaps the get cart api endpoint isn't implemented fully yet?
calling the endpoint with no guid causes a null reference exception
What endpoint are you calling? GetCart
doesn't generate a new cart, AddToCart
does :)
Please clone this repo and make branches off of that in the future, forking makes it a little hard to check out and review your changes
Will close this and start again
Mostly boilerplate atm. Not sure where I should be getting the cart Guid from