Как получить запрос и ответ сразу в C#
Моя просьба такова :
<pre> string FormName = "frmTransaction"; string Method = "post"; string V3URL = "https://api.secure.ebs.in/api/1_0"; Response.Clear(); Response.Write("<html><head>"); Response.Write(string.Format("</head><body onload=\"document.{0}.submit()\">", FormName)); Response.Write(string.Format("<form name=\"{0}\" method=\"{1}\" action=\"{2}\" >", FormName, Method, V3URL)); Response.Write("<input type=\"hidden\" name=\"TransactionID\" value=" + Request.QueryString["TransId"] + " />"); Response.Write("<input type=\"hidden\" name=\"SecretKey\" value=" + ApplicationConfig.EbsSecretKey + " />"); Response.Write("<input type=\"hidden\" name=\"AccountID\" value=" + ApplicationConfig.EbsAccountId + " />"); Response.Write("<input type=\"hidden\" name=\"PaymentID\" value=" + Request.QueryString["PayMId"] + " />"); Response.Write("<input type=\"hidden\" name=\"Action\" value=\"status\" />"); Response.Write("</form>"); Response.Write("</body></html>"); Response.End();
Мой вывод описан ниже:
<output accountId="test" amount="500.00" billingAddress="India " billingCity="Namakkal" billingCountry="IND" billingEmail="admin@gmail.com" billingName="Avail" billingPhone="xxxx" billingPostalCode="600001" billingState="Tnadu" dateCreated="2018-05-16 11:58:22" deliveryAddress="" deliveryCity="" deliveryCountry="INR" deliveryName="" deliveryPhone="xxxxxxxxx" deliveryPostalCode="" deliveryState="" description="" gwAuthId="0000" gwReciptNo="0000" isFlagged="NO" mode="TEST" paymentId="102591103" paymentMethod="1001" paymentMode="Credit Card" processed="Yes" referenceNo="17181" status="Captured" transactionId="302443643"/>
Что я уже пробовал:
Мне нужно проверить статус транзакции с этой страницы, как я могу это проверить. Пожалуйста, Предоставьте Пример Кода. не могли бы вы пожалуйста помочь получить выход сразу спасибо