Solved

Problem in executing IPN script of paypal

Posted on 2009-07-14
4
389 Views
Last Modified: 2012-05-07
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.Request.Form["payment_status"];
        PaymentType = HttpContext.Current.Request.Form["payment_type"];
        PendingReason = HttpContext.Current.Request.Form["pending_reason"];
        TXN_ID = HttpContext.Current.Request.Form["txn_id"];
        TXN_Type = HttpContext.Current.Request.Form["txn_type"];
        PaymentFee = HttpContext.Current.Request.Form["mc_fee"];
        PaymentGross = HttpContext.Current.Request.Form["mc_gross"];
        NotifyVersion = HttpContext.Current.Request.Form["notify_version"];
        VerifySign = HttpContext.Current.Request.Form["verify_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?
0
Comment
Question by:Muralidharanp
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:Rahul Goel
ID: 24847891
0
 
LVL 5

Author Comment

by:Muralidharanp
ID: 24847970
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?
0
 
LVL 9

Expert Comment

by:Rahul Goel
ID: 24848045
You need to refer to the page when the request has been verified maens paid successfully.
0
 
LVL 5

Accepted Solution

by:
Muralidharanp earned 0 total points
ID: 24848469
i got solution from the following thread :
http://paypal.lithium.com/pdn/board/message?message.uid=138254
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now