I'm working on Payment Gateway for large e-Commerce site which is based on ASP.NET MVC3(C#).
I've have PG Server IP address that they provide me for validation.
but I'm concern about Response.
I'm requesting to PG by below code.
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
myHttpWebResponse.Close();
So, How can I validate IP address when I get response ? or Is there any technique to validate?