[eluser]dhananjay[/eluser]
i have changed one thing in his paypal library
// open the connection to paypal
$fp = fsockopen('ssl://'.$url_parsed[host],"443",$err_num,$err_str,30);
//$fp = fsockopen($url_parsed[host],"80",$err_num,$err_str,30);
the commented portion is previous one to which i have replaced with new code
second thing i was making mistake that in function i was handling i was not passing this value
if($results->type=='sandbox'){
$this->paypal_class->paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; // testing paypal url
}
else{
$this->paypal_class->paypal_url = 'https://www.paypal.com/cgi-bin/webscr'; // paypal url
}
in his class he has used live ones url by defult and becuase i was not changing
$this->paypal_class->paypal_url
it was always sending validation to live one
but after making these two changes its working all fine