You are here: Re: PHP paypal integration « All PHP « IT news, forums, messages
Re: PHP paypal integration

Posted by Norman Peelman on 07/13/06 23:23

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@gmail.com> wrote in message
news:1152785644.226744.187530@75g2000cwc.googlegroups.com...
> 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@gmail.com 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.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация