Пример #1
0
        private void UpdateLineItemFromCheckout(Checkout checkout)
        {
            if (checkout == null)
            {
                return;
            }

            // sometimes we may not query line items for instance when polling is being performed
            try {
                List <CheckoutLineItem> lineItems = (List <CheckoutLineItem>)checkout.lineItems();

                LineItems.UpdateLineItemsFromCheckoutLineItems(lineItems);
#pragma warning disable 0168
            } catch (NoQueryException exception) { }
#pragma warning restore 0168
        }