Welcome, Guest
Username: Password: Secret Key Remember me

TOPIC: PPD 2.5.9 stopped working

PPD 2.5.9 stopped working 25 Nov 2015 22:14 #3261

  • Ilya
  • Ilya's Avatar
  • Offline
  • New Member
  • Posts: 2
Verifying the payments list as you've requested, I've found that there is a difference for PayPal test and production modes.

There is a record for a payment I've previously made via PayPal sandbox, but there are not records made in production mode.

Moreover, when in production mode, PPD puts the following record in #__payperdownloadplus_debug table:
response from validate : <HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>

You don't have permission to access "..." on this server.

A little research lead me to the workaround for this issue (I cannot put the link here because of the spam-protection).

I've patched the models/payresource.php from PPD installation as follows:
function validatePayment($req, $test, $paymentInfo)
	{
...	
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
		curl_setopt($ch, CURLOPT_URL, $paypal);
		curl_setopt($ch, CURLOPT_POST, 1);
		curl_setopt($ch, CURLOPT_POSTFIELDS, $req);
// #############################################################################
// ## DW Added by Factory.DocWriter.Ru
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: Close', 'User-Agent: PayPerDownload'));
// #
// #############################################################################
...
	}

With this workaround, everything works just fine.
The administrator has disabled public write access.

PPD 2.5.9 stopped working 26 Nov 2015 15:24 #3262

  • Ratmil
  • Ratmil's Avatar
  • Offline
  • Administrator
  • Posts: 1487
  • Thank you received: 25
Hi.
It´s good to hear you have found a solution. Thanks.
I will check that.
If I don't provide the answers you are looking for, I may provide the questions you need to find the answers yourself.
The administrator has disabled public write access.
Time to create page: 0.208 seconds
Powered by Kunena Forum