Пример #1
0
        protected void Query_OnClick(object sender, EventArgs e)
        {
            QueryRequestBuilder queryBuilder = QueryRequest.GetBuilder();
            QueryRequest        queryRequest =
                queryBuilder.SetMerchantId(Config.MERCHANT_ID)
                .SetMerchantKeyId(merchant_key_id.Value)
                .SetMerchantTransactionId(merchant_transaction_id.Value)
                .SetPayzippyTransactionId(payzippy_transaction_id.Value)
                .SetHashMethod(hash_method.Value)
                .Build(Config.SECRET_KEY);

            string jsonResponse = WebClient.DoQuery(queryRequest.GetRequestParams(), Config.API_QUERY);

            this.Context.Items.Add("query_response", jsonResponse);
            this.Server.Transfer("QueryResp.aspx");
        }