Knetik.Cart.Checkout C# (CSharp) Method

Checkout() public method

public Checkout ( Action cb ) : void
cb Action
return void
        public void Checkout(Action<KnetikResult<Cart>> cb)
        {
            Client.CartCheckout((res) => {
                var result = new KnetikResult<Cart> {
                    Response = res
                };
                if (!res.IsSuccess) {
                    cb(result);
                    return;
                }
                result.Value = this;
                cb(result);
            });
        }