Advertisement

12.09.2007 at 02:35PM PST, ID: 23011956
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

I am not getting IPN response from sandbox paypal

Tags: paypal, ipn, sandbox
Hello
I created a test account and i enabled the IPN and also specified the link where the notification should be sent.
And in my transaction I specified the notify_url also, which is my local system url, I am not getting the notification.
I tried this on production system also but no response.
What could be the problem, Its urgent I have to deliver the site in 3 days.
Thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
<input type="hidden" name="cmd" value="_cart">
        <input type="hidden" name="business" value="jawada_1196344506_biz@gmail.com">
        
        <input type="hidden" name="upload" value="1">
        
        <input type="hidden" name="amount" value="143.09">
 
        <input type="hidden" name="no_shipping" value="1">
        <input type="hidden" name="return" value="http://localhost:49166/client/paymentsuccess.aspx">
        <input type="hidden" name="rm" value="2">
        <input type="hidden" name="notify_url" value="http://localhost:49166/client/IPNHandler.aspx">
        <input type="hidden" name="cancel_return" value="http://localhost:49166/client/default.aspx">
        <input type="hidden" name="invoice" value="15">
        
        <input type="hidden" name="currency_code" value="USD">
        <input type="hidden" name="custom" value="22">
       
        <input type="hidden" name="item_name_1" value="Honda Rent">
 
	<input type="hidden" name="item_number_1" value="2">
	<input type="hidden" name="amount_1" value="20.99">
	<input type="hidden" name="quantity_1" value="1">
	<input type="hidden" name="tax_1" value="0">
	<input type="hidden" name="item_name_2" value="Delivery Services">
	<input type="hidden" name="item_number_2" value="4">
	<input type="hidden" name="amount_2" value="111.00">
	<input type="hidden" name="quantity_2" value="1">
	<input type="hidden" name="tax_2" value="11.10">
Start your free trial to view this solution
Question Stats
Zone: Web Development
Question Asked By: jawadashraf78
Solution Provided By: freymish
Participating Experts: 1
Solution Grade: A
Views: 56
Translate:
Loading Advertisement...
12.09.2007 at 03:01PM PST, ID: 20438521

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.09.2007 at 06:14PM PST, ID: 20439128

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.09.2007 at 07:43PM PST, ID: 20439419

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 12:33AM PST, ID: 20440151

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 06:02AM PST, ID: 20441330

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 07:56AM PST, ID: 20442494

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 09:58AM PST, ID: 20443609

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 10:01AM PST, ID: 20443639

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 10:29AM PST, ID: 20443856

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 10:31AM PST, ID: 20443877

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 07:57PM PST, ID: 20447214

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 08:00PM PST, ID: 20447219

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 08:05PM PST, ID: 20447232

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 08:25PM PST, ID: 20447291

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 08:27PM PST, ID: 20447299

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 08:54PM PST, ID: 20447372

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 09:05PM PST, ID: 20447399

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 09:10PM PST, ID: 20447414

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 09:13PM PST, ID: 20447428

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.10.2007 at 09:56PM PST, ID: 20447567

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.11.2007 at 08:20AM PST, ID: 20450313

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.12.2007 at 11:27AM PST, ID: 20459416

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
12.09.2007 at 03:01PM PST, ID: 20438521
What does you IPNhandler application do?  What I am getting at is how do you know it's not responding?
 
12.09.2007 at 06:14PM PST, ID: 20439128
On page load event I am writing to a file that "Page is being accessed" and then I am performing database entries.
 
12.09.2007 at 07:43PM PST, ID: 20439419
     

Is this the actual address you are sending to PayPal?  localhost?
 
12.10.2007 at 12:33AM PST, ID: 20440151
yes, this is the address and i tried on other address too
http://d2002537.u351.kensoft.net/Client/IPNHandler.aspx, this the hosted site address and its for testing purpose
 
12.10.2007 at 06:02AM PST, ID: 20441330
Well the localhost thing would never work as localhost refers to the local machine's identity... whichever machine that happens to be.  In this cae you are telling the PayPal sandbox server to post to itself, which won't work.  When I hit the above, live link I see a uername and password prompt.  Is this for show or is this required to access the IPNhandler code?  If yes, how are you passing authentication info to it... I don't see anything in the code that would indicate that you are.
When I did this for a site in the past I wrote a randonly generated string to a table and sent that to PayPal and had them include it in their response to avoid anyone hacking my IPNhandler.  
Accepted Solution
 
12.10.2007 at 07:56AM PST, ID: 20442494
Thanks
http://d2002537.u351.kensoft.net/Client/IPNHandler.aspx
it is only to process information collected from paypal,
the issue can be the authentication.
How can I pass authentication info to paypal, so that in return i can log them in to the page.

One thing regarding localhost, when i passed return_url (not notify_url) it was
localhost:49165 , and it worked, i mean after payment being made the button appears to get back to the return url, and that button redirected to local system, What u said is that it wont work but it worked.
What could it be.
 
12.10.2007 at 09:58AM PST, ID: 20443609
There are two test for legitmacy.  The first is a shared secret that I set up with PayPal, and the second is a custom variable that comtains a timestamp+ipaddress of the person making the payment.  With these two things in place I can be pretty certain that no one will spoof any transactions.  

So First I create an entry in a table with the integcheck field populated with my timestamp+ipaddress info.  Then I post that info to PayPal and they post it back with their response to the payment attempt.  The code below tests the shared secret first and then updates the PayPal table with the payment information.  After that I notify the payor that the transaction has succeded.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
	Mailer.FromName   = "From Mail"
	Mailer.FromAddress = "return address"
	Mailer.RemoteHost = "localhost"
	Mailer.AddRecipient "me", "Me@mydomain.com"
	Mailer.subject = "IPN Post"
if request("secret") = "randomlygenerated or hard coded secret" then
		set cnn = server.CreateObject("adodb.connection")
		cnn.open "dsn=dsnname"
		Set rs = server.CreateObject("adodb.recordset")
		rs.ActiveConnection = cnn
		sql = "update paypal set payment_date ='" & date & "', payment_status='" & request("payment_status") & "', first_name='" & request("first_name") & "', last_name='" & request("last_name") & "', payer_email='" & request("payer_email") & "', payment_type='" & request("payment_type") & "', payment_gross='" & request("payment_gross") & "', payer_status='" & request("payer_status") & "', pending_reason='" & request("pending_reason") & "' where integcheck='" & request("custom") & "'"
		cnn.execute(sql)
		Mailer.BodyText = sql
		Mailer.SendMail
Else
	Mailer.Subject = "bad secret"
	Mailer.SendMail
end if
%>
Open in New Window
 
12.10.2007 at 10:01AM PST, ID: 20443639
..."After that I notify the payor that the transaction has succeded."

Actually, it notifies me, not the payor. My mistake..
 
12.10.2007 at 10:29AM PST, ID: 20443856
thanks
first let me tell u that when u told me about localhost problem, i checked it with and without port and it worked in both cases , i tried this for return_url, after setting auto return is on.
And it redirected successfully and the url which i specified was in password needed area but it didnt ask for any password and page was displayed with success message. the link was localhost/ebilling/client/paymentsuccess.aspx.
Another thing to check
I am developing this site on Vista, it has different folder rights issue, and wwwroot folder has tighter security, so i thought it may be the problem so i used localhost:41975 which is outside wwwroot, but still no response.
Is there any setting problem on paypal, i have already turned on IPN on paypal and also specified the url
, is there any thing else needed to configure

Thanks
 
12.10.2007 at 10:31AM PST, ID: 20443877
And i also specified url in non password area, but still no response
localhost/ebilling/ipnhandler.aspx, its a non password area.
 
12.10.2007 at 07:57PM PST, ID: 20447214
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
	<a>Annual Membership</a>
	<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
	<input type="hidden" name="cmd" value="_xclick">
	<input type="hidden" name="business" value="PaypalAccount@mydomain.com">
	<input type="hidden" name="item_name" value="Donation">
	<input type="hidden" name="amount" value="35.00">
	<input type="hidden" name="page_style" value="PayPal">
<input type="hidden" name="no_shipping" value="1">
					<input type="hidden" name="no_note" value="1">
					<input type="hidden" name="currency_code" value="USD">
					<input type="hidden" name="tax" value="0">
					<% response.write("<input type='hidden' name='custom' value='" & session("identifier") & "'>") %>
					<input type="hidden" name="lc" value="US">
					<input type="hidden" name="bn" value="PP-DonationsBF">
					<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
				</form>
Open in New Window
 
12.10.2007 at 08:00PM PST, ID: 20447219
Oops!  A slip of the hand there, but that's the payment button code I am using. I told the PayPal server which shared secret and IPN page to use in my profile info so they check my e-mail address and act according to those parameters.

It's been a while since I did this so I am glad to refresh myself on it too;)
 
12.10.2007 at 08:05PM PST, ID: 20447232
I didnt get that what you want to tell me in the last comment.
I am sending data to sandbox.paypal, and i am sending a cart data.
Is vista an issue?
 
12.10.2007 at 08:25PM PST, ID: 20447291
I honestly don't know if Vista would be the issue.  It seems unlikely as I can hit the IPN page from here.

As for the pervious comment...  I created this code while using the Sandbox and then converted it over to their live site.  I created a group of predefined buttons to send the payments.  The important part of this is that I specified the URL of my IPN handler page in my profile on PayPal so it knows what page to post its responses to.  Does that help?
 
12.10.2007 at 08:27PM PST, ID: 20447299
As you said earlier , i tried to put ipnhandler page in a non password area, but didnt work,
any idea what could it be
 
12.10.2007 at 08:54PM PST, ID: 20447372
How about putting a simple page in the non-pasword area for starters and see what happens?  Something that just says "hello world" or the like.  From there perhaps we can begin to figure out where the IPN process is breaking.
 
12.10.2007 at 09:05PM PST, ID: 20447399
I did this i just wrote a line and ended the load event function
just writing a line to a log file and then "exit sub"
 
12.10.2007 at 09:10PM PST, ID: 20447414
OK
It seems to be happening
I moved my page on the hosting site, and did the  same removed my page from non password area and its been accessed,
now i will execute the  complete code, let me try.
Please tell me that how can i stop someone from directly accessing ipn page, u talked about secret share, how to implement it, and i will close the question then
thanks for ur time.
 
12.10.2007 at 09:13PM PST, ID: 20447428
sorry "removed my page from non password area "
I meant to say
"removed my page from password area "
 
12.10.2007 at 09:56PM PST, ID: 20447567
i tried again and the page is not accessed this time in the same time, did u try to access the page at
10:05 am, coz my log showing that the page was accessed at 10:05 am
 
12.11.2007 at 08:20AM PST, ID: 20450313
Yes, I am pretty sure that was me hitting your page.

If you go to your PayPal account and into the profile section there is a place where you can edit your IPN settings.  What I did to prevent people from hitting my page at random was tell PayPal to post to the IPN page with a variable attached, like this:
http://www.mydomain.com/IPNpost.asp?secret=098450893nb0vndufhna0uchq0t78ycnqor

In the code of your IPN page pull the contents of the "secret" variable and match it to the variable you created.  That's how I have done it.
 
12.12.2007 at 11:27AM PST, ID: 20459416
Thanks
Your overall conversation made me to think to change the page fron password area to non password area, and it worked on remote hosting machine.
Thanks my issue is solved and thanks for the secret also
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628