Solved

Problem in executing IPN script of paypal

Posted on 2009-07-14
4
384 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

10 Experts available now in Live!

Get 1:1 Help Now