/** * In version v1, at least 1 item (e.g. “credit charge”) and at most 2 items * must be in the cart (e.g. “purchase for my shop” and “shipment costs”). * The limit is caused by the graphic layout of the payment gateway, in another * version the limit will be much higher. * * @param CartItem $cartItem */ public function addCartItem(CartItem $cartItem) { $this->cart[] = $cartItem; $this->totalAmount += $cartItem->getAmount(); }