Solved

Problem in executing IPN script of paypal

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp day pilot 3 23
Checkbox in a dynamic GridVIew is not clickable? 5 38
insert value of checklistbox checked 4 32
hbo knew my windows software 4 62
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 article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

831 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