Muralidharanp
asked on
Problem in executing IPN script of paypal
i am using PPFrame.html as the paypal page
<form method="post" action= "https://www.sandbox.paypal.com/cgi-bin/webscr" target="_top">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="pay@mysite.com" />
<input type="hidden" name="item_name" value="itemname" />
<input type="hidden" name="item_number" value="1" />
<input type="hidden" name="amount" value="0.10" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="custom" value="3" />
<input type="hidden" name="return" value="http://www.mysite.com/Success.aspx" />
<input type="submit" value="Buy This" align="middle" />
</form>
my IPNProcess.aspx holds the DataBase manipulation code like altering a feild date_of_payment in 'list' table.
protected void Page_Load(object sender, EventArgs e)
{
string id = Request.Form["custom"];
// here i am using the SQL to alter my table
PaymentStatus = HttpContext.Current.Reques t.Form["pa yment_stat us"];
PaymentType = HttpContext.Current.Reques t.Form["pa yment_type "];
PendingReason = HttpContext.Current.Reques t.Form["pe nding_reas on"];
TXN_ID = HttpContext.Current.Reques t.Form["tx n_id"];
TXN_Type = HttpContext.Current.Reques t.Form["tx n_type"];
PaymentFee = HttpContext.Current.Reques t.Form["mc _fee"];
PaymentGross = HttpContext.Current.Reques t.Form["mc _gross"];
NotifyVersion = HttpContext.Current.Reques t.Form["no tify_versi on"];
VerifySign = HttpContext.Current.Reques t.Form["ve rify_sign" ];
//sending mail to buyer
}
my Success.aspx page contains only a link to back to HomePage.
i dont know whether i am right or wrong?. or do i need to do some settings in my sandbox paypal account?
<form method="post" action= "https://www.sandbox.paypal.com/cgi-bin/webscr" target="_top">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="pay@mysite.com" />
<input type="hidden" name="item_name" value="itemname" />
<input type="hidden" name="item_number" value="1" />
<input type="hidden" name="amount" value="0.10" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="custom" value="3" />
<input type="hidden" name="return" value="http://www.mysite.com/Success.aspx" />
<input type="submit" value="Buy This" align="middle" />
</form>
my IPNProcess.aspx holds the DataBase manipulation code like altering a feild date_of_payment in 'list' table.
protected void Page_Load(object sender, EventArgs e)
{
string id = Request.Form["custom"];
// here i am using the SQL to alter my table
PaymentStatus = HttpContext.Current.Reques
PaymentType = HttpContext.Current.Reques
PendingReason = HttpContext.Current.Reques
TXN_ID = HttpContext.Current.Reques
TXN_Type = HttpContext.Current.Reques
PaymentFee = HttpContext.Current.Reques
PaymentGross = HttpContext.Current.Reques
NotifyVersion = HttpContext.Current.Reques
VerifySign = HttpContext.Current.Reques
//sending mail to buyer
}
my Success.aspx page contains only a link to back to HomePage.
i dont know whether i am right or wrong?. or do i need to do some settings in my sandbox paypal account?
ASKER
hi Rahu Ketu patal,
i had already implemented IPN Scripts on my code. i am not asking the code for IPN Script.
i am asking about where should i give refer my Success.aspx page and IPNProcess.aspx?
i had already implemented IPN Scripts on my code. i am not asking the code for IPN Script.
i am asking about where should i give refer my Success.aspx page and IPNProcess.aspx?
You need to refer to the page when the request has been verified maens paid successfully.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://forums.asp.net/t/92
http://www.ggg-3.com/PayPa