public async static Task <HttpResponse> CreateOrder(Demo.Models.Order order, bool debug = false)
        {
            var request = new OrdersCreateRequest();

            request.Headers.Add("prefer", "return=representation");
            request.RequestBody(BuildRequestBody(ConvertOrderToItems(order)));
            var response = await PayPalClient.client().Execute(request);

            return(response);
        }
        public async static Task <HttpResponse> CaptureOrder(string OrderId, bool debug = false)
        {
            var request = new OrdersCaptureRequest(OrderId);

            request.Prefer("return=representation");
            request.RequestBody(new OrderActionRequest());
            var response = await PayPalClient.client().Execute(request);

            return(response);
        }