paypal ipn 403 http forbiden |
[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 i'm using CI Paypall_lib any idea of my problem which is? thanks
[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)
[eluser]Ngulo[/eluser]
no i'm on 1.7.2 CI version ![]() is there some way to use paypall library from CI 2.0 on CI 1.7.2?
[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.
[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 ![]() 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?
[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. |
Welcome Guest, Not a member yet? Register Sign In |