getCart

Method Signature Cart getCart(String cartId);
Description Fetches the cart associated with the specific cartId.
Parameters String cartId – The cartId associated with the cart. This should come from the result of a createCart call that was stored in a cookie and then read back from the client.
Result Cart – The cart associated with the cartId. This can be null if the cart has expired and been purged. You should be prepared to check for this condition and make a new call to createCart to setup a new cart.