Hi Taun,
I have done some further debugging and it seem the response is reaching the server fine. The code in os_paypal.php is interpreting it as a fail.
My server is running php 5.3.22 so some php functions like eregi used in your code are DEPRECATED (although I did replace this with preg_match but still received the same result)
I have altered your code in the os_paypal.php file as it was always logging a success if any results was recieved (I have moved the log_ipn_results to be within the if statement (code change below)
Code:
$this->ipn_response = $response ;
//$this->log_ipn_results(true);
if (eregi("VERIFIED", $response))
//if (preg_match("/VERIFIED/i", $response))
{
$this->log_ipn_results(true);
return true;
}
else
{
$this->log_ipn_results(false);
return false;
}
I have turned on your logging and below are the errors logged in your ipn_logs.txt file (2 results received and both failed, but according to the results it was actually a success )
[02/06/2015 1:58 AM] - FAIL:
IPN POST Vars from Paypal:
handling_amount=0.00, payer_id=E3P5WN6X8WYFY, ipn_track_id=b392a3ce7673, shipping=0.00, charset=windows-1252, payment_gross=10.00, verify_sign=A21TYeNA5RHMCCU-lzERY695sthMAcMLY52fVzceHQpYCKPJ4d2c9N4H, item_name=product, test_ipn=1, txn_type=web_accept, receiver_id=RADR48ZHMHCXG, payment_fee=0.54, mc_currency=USD, transaction_subject=2, custom=2, protection_eligibility=Ineligible, payer_status=verified, first_name=Test, mc_gross=10.00, payment_date=13:28:26 Feb 05, 2015 PST, payment_status=Completed, quantity=1, business=xxxxx@adam.com.au, item_number=, last_name=Buyer, txn_id=8CH09607Y1192194G, mc_fee=0.54, resend=true, payment_type=instant, notify_version=3.8, payer_email=buyer@adam.com, receiver_email=xxxxx@adam.com.au, tax=0.00, residence_country=AU,
IPN Response from Paypal Server:
HTTP/1.0 302 Found
Location:
www.sandbox.paypal.com
Server: BigIP
Connection: close
Content-Length: 0
[02/06/2015 1:58 AM] - FAIL:
IPN POST Vars from Paypal:
handling_amount=0.00, payer_id=E3P5WN6X8WYFY, ipn_track_id=5b6c88ae54662, shipping=0.00, charset=windows-1252, payment_gross=10.00, verify_sign=Ax0IH4o.xYtUEXoZSgBhoESr8XVvAcy7cTAW1eifdzqLFURRoTiaIoe8, item_name=product, test_ipn=1, txn_type=web_accept, receiver_id=RADR48ZHMHCXG, payment_fee=0.54, mc_currency=USD, transaction_subject=3, custom=3, protection_eligibility=Ineligible, payer_status=verified, first_name=Test, mc_gross=10.00, payment_date=13:48:25 Feb 05, 2015 PST, payment_status=Completed, quantity=1, business=xxxxx@adam.com.au, item_number=, last_name=Buyer, txn_id=00Y27266GU252982R, mc_fee=0.54, resend=true, payment_type=instant, notify_version=3.8, payer_email=buyer@adam.com, receiver_email=xxxxx@adam.com.au, tax=0.00, residence_country=AU,
IPN Response from Paypal Server:
HTTP/1.0 302 Found
Location:
www.sandbox.paypal.com
Server: BigIP
Connection: close
Content-Length: 0