Solved

Paypal Sandbox IPN

Posted on 2013-11-15
6
380 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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 Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 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