PayPal.IPNMessage.IpnValue C# (CSharp) Method

IpnValue() public method

Gets the IPN request parameter value for the given name
public IpnValue ( string ipnName ) : string
ipnName string
return string
        public string IpnValue(string ipnName)
        {
            return this.nvcMap[ipnName];
        }

Usage Example

 public void IPNParameter()
 {
     NameValueCollection nvc = HttpUtility.ParseQueryString(ipnMsg);
     IPNMessage ipn = new IPNMessage(nvc);
     string parameter = ipn.IpnValue("fees_payer");
     Assert.AreEqual("EACHRECEIVER", parameter);
 }