Re: PHP paypal integration



Thanks,

We do have some logging in place which is recording empty post
variables so it does seem that the data is not actually reaching our
server.

thanks
Tim
Norman Peelman wrote:
Not to ask a stupid question but you are sure that paypal is talking to your
server via the IPN callback? Insert some logging info in your processing
script to see what is happening along the way. I know that actually finding
the place to set this all up on paypal is a nightmare, but that's another
story... I wrote a very simple logging function that you might want to try:

define('LOGFILE',true); // set to false to turn off logging.
function logfile($txt)
{
if (LOGFILE)
{
$txt = date("G:i:s - ").$txt.chr(13); // insert return to end of line
$lf = 'drive:\\path\\to\\your\\logfile_'.date('D M j - Y').'.lft'; //
set logfile
$fp = fopen($lf,'a'); // open in append mode - create if needed
fwrite($fp,$txt,1024); // write the text
fclose($fp); // close file
}
}

insert somewhere (top) in your process script (set the exstension .lft to
something that will show the output correctly, I use WORDPAD since i'm on
windows) or just modify to suit your needs.

and use it to output variables, messages, etc. Like:

logfile('Start of PayPal IPN Process');
logfile(print_r($_POST)); // show the variable received from paypal
.
.
.
logfile('Payment VERIFIED');

etc.

or you could post the code with top secret info removed...

Norm
--
FREE Avatar hosting at www.easyavatar.com
<timhammo@xxxxxxxxx> wrote in message
news:1152785644.226744.187530@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Mike
thanks - I am looking at those forums but the problem does seem to be
in the way the PHP script is handling what paypal sends it.

If anyone else can help I would appreciate it.
thanks
Tim


Mike wrote:
Hi,

You could try..

http://www.paypaldev.org

This is a specialist site for all things paypay.

Or...

http://paypaltech.com

I found both these site VERY useful. Much more useful that paypals own
help!

Mike

timhammo@xxxxxxxxx wrote:
We have a 3rd party php website running on a Linux server. Customers
subscribe to the site via Paypal but we are unable to receive the
paypal notification back to our server to process it. Our Linux
server
has register_globals set on. The website software provider suggests
the problem is related to having globals on but we are unable to
change
this as we are on a shared hosting platform. Please can anyone
suggest
a work around for the paypal notification so our payment process works
smoothly.


.



Relevant Pages

  • Re: PHP paypal integration
    ... We do have some logging in place which is recording empty post ... variables so it does seem that the data is not actually reaching our ... server. ...
    (alt.php)
  • Re: RDP Sessions not "disconnecting"
    ... You can logon to the Console as Admin and Disconnect instead of logging off and this will leave Admin logged on to Synch Act and will leave 2 more Remote slots open. ... The other choice is to disconnect from a normal session as Admin instead of Logging off and when you connect again you will resume your session. ... server based apps - she also hits it from remote. ...
    (microsoft.public.windows.server.sbs)
  • Re: NDR delivery delayed errors keep coming, any advice?
    ... I have turned on the logging as you requested, and when I get a DNR 4.4.7, I ... The sending server tried to ... Delivery status notifications in Exchange Server and in Small Business ... The SMTP logging files are located in ...
    (microsoft.public.windows.server.sbs)
  • Re: Login Errors Seem to indicate we are being hacked?
    ... As an example, my Sonicwall keeps a log that I can read from the regular UI, as well as having the ability to report to a syslog server or e-mail out the log info. ... thing on the box using that authentication package. ... The SMTP or IIS logs should answer everything. ... I'm not familiar with that particular router or its logging capabilities, ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange 2007 distribution group creation
    ... I checked this and they all have level 1 diagnostic logging. ... your DCs that your Exchange server talks to. ... universal distribution group in exchange management console. ...
    (microsoft.public.exchange.admin)