Jump to content

Please help with paypal url notification php error


php-newbies

Recommended Posts

Hi all,

 

I need help, I am unable to access the url for my paypal. It gives an error when I paste the url on the browser.

 

url is:

 

http://tt.easy2sell.net/components/com_adsman/plugins/payment/pay_paypal.notify.php

 

Wondering if I could try the relative path in the require once notify.php but unsure how? Perhaps problem with joomla installation file.

 

<?php


// no direct access
    header("Status: 200 OK");

require_once(dirname(__FILE__)."/pay_paypal.loadframework.php"); 
  

    $database = & JFactory::getDBO();

    
/*
$logfile=JPATH_ROOT."/a_paypal_ipn.log";
$fp=fopen($logfile,"w+");
fwrite($fp, print_r($_REQUEST,true) . "\n\n");
fwrite($fp, print_r($_SERVER,true) . "\n\n");
fclose($fp);  // close file
*/
    require_once(JPATH_ADMINISTRATOR.'/components/com_adsman/tables/addsman.php');
    require_once(JPATH_ADMINISTRATOR.'/components/com_adsman/tables/adsuser.php');
    require_once(dirname(__FILE__)."/pay_paypal.php");

$payment = new pay_paypal($database);
$payment->ipn($_REQUEST);

?>

 

 

Many thanks in advance

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.