Welcome Guest, Not a member yet? Register   Sign In
paypal ipn 403 http forbiden
#1

[eluser]Ngulo[/eluser]
hi all guys

when i try to valide ipn returning from sandbox.paypall.com i see in my log file always:

Code:
Destination host forbidden

[12/08/2010 7:52 PM] - FAIL: IPN Validation Failed.
IPN POST Vars from Paypal:

IPN Response from Paypal Server:
HTTP/1.0 403 Forbidden
Date: Wed, 08 Dec 2010 18:52:14 GMT
Server: Apache
Content-Type: text/plain

i'm using CI Paypall_lib

any idea of my problem which is?

thanks
#2

[eluser]pickupman[/eluser]
Are you using CI 2.0? If you are, do you have csrf enabled? I was having this issue as well, and used a conditional tag to match paypal ip address and disable csfr. (I am using 2.0 now)
#3

[eluser]Ngulo[/eluser]
no i'm on 1.7.2 CI version Sad

is there some way to use paypall library from CI 2.0 on CI 1.7.2?
#4

[eluser]pickupman[/eluser]
There is no difference. I just copied the file over. It appears you may have a error in your .htaccess file. Mind posting yours? Or your host/connection maybe blocking a port paypal needs.
#5

[eluser]Ngulo[/eluser]
yep man sorry my problem was on http connections my provider was blocking them now it works really good all cycle and IPN Wink

just one thing i would like to know .... if you can answer....

did you know how to add custom fields name and retrieve them fron IPN token?

now i'm using standard paypall form input names like

$this->paypal_lib->add_field('business', '[email protected]');
$this->paypal_lib->add_field('return', site_url());
$this->paypal_lib->add_field('cancel_return', site_url());
$this->paypal_lib->add_field('notify_url', site_url('paypal/ipn')); // <-- IPN url
$this->paypal_lib->add_field('custom', '1234567890');

i would like to add my custom fields to form somenthing like :

$this->paypal_lib->add_field('asd', 'asd');

is it possible?
#6

[eluser]pickupman[/eluser]
That should work without a problem. I haven't pulled on the paypal docs, but I think they only take one or two custom fields.




Theme © iAndrew 2016 - Forum software by © MyBB