Welcome Guest, Not a member yet? Register   Sign In
using a paypal library but ipn validation is not working in codeigniter
#5

[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





Messages In This Thread
using a paypal library but ipn validation is not working in codeigniter - by El Forum - 07-22-2012, 02:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB