예제 #1
0
        public QIWINumberRespone GetQIWINumber()
        {
            string id = new ParseFinalPage(
                finalStepResponse.ToString()
                )
                        .GetCardId();

            httpRequest.AddXmlHttpRequestHeader();
            Leaf.xNet.HttpResponse qiwiNumberResponse = httpRequest
                                                        .Get(BASE_URL + "/order/ajax?method=showHB&id=" + id + "&value=in-card-number");

            if (Helper.IsBan(qiwiNumberResponse))
            {
                throw new Exception("БАН");
            }

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <QIWINumberRespone>(qiwiNumberResponse.ToString()));
        }