I was getting the error "HTTP/1.0 302 Found" when trying to configure some old PayPal IPN code that I had in PHP.
So I found on this forum that what I needed to do was open my paypal.inc.php file and change the following line:
$fp= @ fsockopen($this->paypalurl,80,$errno,$errstr,30);
to this one:
$fp = fsockopen('ssl://'.$this->paypalurl,"443",$err_num,$err_str,30);
Looks like the PayPal IPN is not taking non SSL connections anymore?
Programming solutions, source code, solutions to tech problems and other tech related stuff.
Showing posts with label paypal. Show all posts
Showing posts with label paypal. Show all posts
Monday, November 28, 2011
Monday, March 14, 2011
PayPal IPN not working in sandbox
So I was testing the IPN with the PayPal Sandbox and it was just refusing to trigger the IPN at all.
In the end, after some hardcore Googling, I realized that it was because the test account I created in the Sandbox was not 'Verified.'
So I tried verifying the email by looking at the sandbox emails under the link 'Test Email.' However, that didn't accept my password.
I had to take another step, which was to 'automatically' verify the US account by adding a bank account to the account.
To do this:
1. I logged on to the sandbox by using the test account
2. Clicked on 'profile->add bank account' (a set of fake bank account numbers should be autofilled).
3. Verified the account by entering two random digits into the verification screen. (I entered 0.01 and 0.01).
4. Then I was able to test my transaction and the IPN worked from the sandbox. Great stuff.
In the end, after some hardcore Googling, I realized that it was because the test account I created in the Sandbox was not 'Verified.'
So I tried verifying the email by looking at the sandbox emails under the link 'Test Email.' However, that didn't accept my password.
I had to take another step, which was to 'automatically' verify the US account by adding a bank account to the account.
To do this:
1. I logged on to the sandbox by using the test account
2. Clicked on 'profile->add bank account' (a set of fake bank account numbers should be autofilled).
3. Verified the account by entering two random digits into the verification screen. (I entered 0.01 and 0.01).
4. Then I was able to test my transaction and the IPN worked from the sandbox. Great stuff.
Subscribe to:
Posts (Atom)