So here are the guides for someone still uses Joomla 2.5
1. Get this zip file, unzip it, you will see a folder called paypal
2. Upload that folder to components/com_osmembership/plugins folder on your site
3. Open the file components/com_osmembership/plugins/os_paypal.php, you will see a function called validate, replace the code of that function with this code:
Code:
protected function validate()
{
JLoader::register('PaypalIPN', JPATH_ROOT . '/components/com_osmembership/plugins/paypal/PayPalIPN.php');
$ipn = new PaypalIPN;
// Use sandbox URL if test mode is configured
if (!$this->mode)
{
$ipn->useSandbox();
}
// Disable use custom certs
$ipn->usePHPCerts();
$this->notificationData = $_POST;
try
{
$valid = $ipn->verifyIPN();
$this->logGatewayData($ipn->getResponse());
if (!$this->mode || $valid)
{
return true;
}
return false;
}
catch (Exception $e)
{
$this->logGatewayData($e->getMessage());
return false;
}
}
4. Contact your hosting provider, ask them to make sure your server supports TLS 1.2
5. Run a test, check and make sure it is working as expected
If the patch works for you, then it's good. If not, you will need to purchase latest version of Membership Pro to have it works out of the box. You should not running on a very old version of the extension on your site
Tuan