Hi finally i have only one problem.
while redirecting from Paypal to my site after paymeny.
When i implement these code to my project it showing some error on the key word:-
Key Word: "PDTHolder pdt = PDTHolder.Parse(strResponse);"
Error :"The type or namespace name PHTHolder couldnt be found(are u missing a directive or an assembly reffernces)"
The complete code is.....
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
string authToken, txToken, query, strResponse;
authToken = WebConfigurationManager.AppSettings["PDTToken"];
txToken = Request.QueryString.Get("tx");
query = string.Format("cmd=_notify-synch&tx={0}&at={1}",
txToken, authToken);
string url = WebConfigurationManager.AppSettings["PayPalSubmitUrl"];
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
req.ContentLength = query.Length;
StreamWriter stOut = new StreamWriter(req.GetRequestStream(),
System.Text.Encoding.ASCII);
stOut.Write(query);
stOut.Close();
StreamReader stIn = new StreamReader(req.GetResponse().GetResponseStream());
strResponse = stIn.ReadToEnd();
stIn.Close();
lblMsg.Text = strResponse;
if (strResponse.StartsWith("SUCCESS"))
{
PDTHolder pdt = PDTHolder.Parse(strResponse);
lblMsg.Text =
string.Format("Thank you {0} {1} [{2}] for your payment of {3} {4}!",
pdt.PayerFirstName, pdt.PayerLastName,
pdt.PayerEmail, pdt.GrossTotal, pdt.Currency);
}
else
{
lblMsg.Text = "Oooops, something went wrong...";
}
}
}
pls pls help me......