Solved

Paypal Sandbox IPN

Posted on 2013-11-15
6
377 Views
Last Modified: 2016-03-24
I have finally made connection between the Paypal IPN simulator and my listener. It's being executed and is even accomplishing a database update. But when testing a transaction in the Sandbox, I don't believe any IPN is being sent. What do I need to do to get the Sandbox test to send an IPN?
0
Comment
Question by:slegy
  • 3
  • 2
6 Comments
 
LVL 19

Expert Comment

by:bevhost
ID: 39652199
There is an IPN sender utility in the PayPal Sandbox where you can manually initiate IPNs for testing.
0
 
LVL 19

Expert Comment

by:bevhost
ID: 39652274
0
 

Author Comment

by:slegy
ID: 39652390
Yes, that's what I've been testing with. I was hoping that the IPN could also be tested with Sandbox transactions, as I don't know how to figure out what information will be returned. We submit up to 9 cart items in a single Paypal submission.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 11

Accepted Solution

by:
Andrew Angell earned 500 total points
ID: 39652510
You need to login to your actual sandbox account and setup IPN in the profile the same you would in your live account.  Then when you make sandbox transactions that hit that account it'll trigger the IPN the same way a live transaction would.  

NotifyURL will work with the sandbox, too, so you can include that in API calls or button code (notify_url) to override what you have set in the account profile.
0
 

Author Comment

by:slegy
ID: 39654705
Thank you. I've just this morning figured out how to log in to my business/facilitator account. Here's the weird thing. When I click on "Instant Payment Notification Preferences" I either get the following error message:
Bad Request

Your browser sent a request that this server could not understand.
 Size of a request header field exceeds server limit.

Cookie

/n
or...
I get the page with a button labeled Choose IPN Preferences, and when I click it, I get the same error message??!! What could be going on with Paypal?

Are you saying that I can bypass this and add notify_url to the Paypal call? Here is what the call looks like:
paypalurl = "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_cart&upload=1&business=sherleone-facilitator@msn.com&lc=US&item_name_1="+item1+"&quantity_1="+quant1+"&amount_1="+amt1+"&item_name_2="+item2+"&quantity_2="+quant2+"&amount_2="+amt2+"&item_name_3="+item3+"&quantity_3="+quant3+"&amount_3="+amt3+"&item_name_4="+item4+"&quantity_4="+quant4+"&amount_4="+amt4+"&item_name_5="+item5+"&quantity_5="+quant5+"&amount_5="+amt5+"&item_name_6="+item6+"&quantity_6="+quant6+"&amount_6="+amt6+"&item_name_7="+item7+"&quantity_7="+quant7+"&amount_7="+amt7+"&item_name_8="+item8+"&quantity_8="+quant8+"&amount_8="+amt8+"&item_name_9="+item9+"&quantity_9="+quant9+"&amount_9="+amt9+"&item_name_10="+item10+"&quantity_10="+quant10+"&amount_10="+amt10+"&custom="+memID+"&currency_code=USD&notify_url=http://www.business.org/scripts/paypalVerify.asp&cancel_return=http://www.business.org/membership/joinRenew/membershipThankyou2.asp&target='_self'"
(I just added the notify_url)

Also, I'm frustrated that the sandbox processing does not go to the cancel_return url when the transaction has completed. It does if I cancel. Any ideas why?
0
 

Author Closing Comment

by:slegy
ID: 39654934
Thank you. I believe I have things working. Did some more research and it was suggested that I clear cache and cookies. Then booted system. I was able to log into the sandbox business account and enable IPN.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

18 Experts available now in Live!

Get 1:1 Help Now