Re: PHP paypal integration
- From: "Norman Peelman" <npeelman@xxxxxxxxxx>
- Date: Thu, 13 Jul 2006 23:23:31 GMT
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 Mikeserver
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
changehas register_globals set on. The website software provider suggests
the problem is related to having globals on but we are unable to
suggestthis as we are on a shared hosting platform. Please can anyone
a work around for the paypal notification so our payment process works
smoothly.
.
- Follow-Ups:
- Re: PHP paypal integration
- From: timhammo@xxxxxxxxx
- Re: PHP paypal integration
- References:
- PHP paypal integration
- From: timhammo
- Re: PHP paypal integration
- From: Mike
- Re: PHP paypal integration
- From: timhammo@xxxxxxxxx
- PHP paypal integration
- Prev by Date: Re: uploading a document and moving to a subfolder
- Next by Date: Re: Challenge: MySql result to drop down box
- Previous by thread: Re: PHP paypal integration
- Next by thread: Re: PHP paypal integration
- Index(es):