Looking into this more closely, I find PayPal states:
For PayPal Instant Payment Notification (IPN) and Payment Data Transfer (PDT), make sure your script posts back to PayPal over port 443 (https).........
For example, in PHP, you may be set up to post back IPNs for validation with something like this:
PHP Code:
$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);
To post back over port 443, change this to:
PHP Code:
$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
Now, in osCMax PayPal module we have standard_ipn.php which contains this code:-
PHP Code:
if ( (PHP_VERSION >= 4.3) && ($fp = @fsockopen('ssl://' . $server, 443, $errno, $errstr, 30)) ) {
$fsocket = true;
} elseif (function_exists('curl_exec')) {
$curl = true;
} elseif ($fp = @fsockopen($server, 80, $errno, $errstr, 30)) {
$fsocket = true;
However, I cannot find any place in any of the PHP code in the whole of osCMax where the variable $fp is assigned any value!
Can anybody please cast some light on this because if the variable $fp is assigned the value
PHP Code:
@fsockopen('ssl://' . $server, 443, $errno, $errstr, 30)
then the return from PayPal should be to an SSL address and that would appear to solve my problem.
Any comments and/or advice gratefully appreciated 'cos I'm confused.
Bookmarks