All,I have a stand-alone ePayment service which is implemented with an asp.net web service for my order management system , and I am using the CyberSource as the payment service, The responsiblity of the web service is the interface to intergate the CyberSource with the order management system, But I have really poor knowledge in the security of payment service. And I really wasn't aware of what is the important issue I should care about .So far, I already did some work on it .below is the code looks like, please review it and comments.
//sOMSIp is the IP of my order management system.
string sOMSIp = "xx.xx.xx.xx";
//get the client IP
string sIP=HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
//make sure the request is from the order management system. otherwise it is invalid.
if (sIP.Equals(sOMSIp))
{
//process the payment request
}
else
{
//return the fail message.
}
But I am not sure if there is any possibility to forge the IP of client. And It is well appreciated if someone can give me some idea or solution to build security of ePayment . thanks.