Jump to content

Paypal module, not able to process the payment


kolega

Recommended Posts

I have met this information during payment process, has anyone met this?
 

Return to merchant and try a different payment method
We are not able to process your payment using your PayPal account at this time. Please return to the merchant's website and try using a different payment method (if available).
Link to comment
Share on other sites

  • 2 weeks later...

hi, i am using ps 1.5.6.2, 

when i try to use paypal to checkout

error occur like this:

Notice: Undefined variable: tmp in /home/lubsscom/public_html/modules/paypal/api/paypal_connect.php on line 130

 

can anyone help?

thx

Link to comment
Share on other sites

a few things

 

1) This is a warning message because you likely have debug mode enabled.  Besides receiving this warning, is the module working properly?  Or are you having an actual issue?

 

2) the paypal module is attempting to connect to the paypal server using fsock.  This means that your server does not support the CURL extension.  If you are having an issue, I would first install/enable the curl extension.  If you do not know what this means, then contact your hosting provider and request them to enable this

 

3) if you are having a problem and your host will not enable CURL, then you are stuck with fsock and I am not sure what else you can do here.  additional troubleshooting would be required to determine why the fsock connection is failing.

Link to comment
Share on other sites

there is really not much I can do from my end with that type of blank response from Paypal.  In order to properly assist, I would need access to your store and just troubleshoot the issue, however for that type of support I do charge for my services.

 

If that is something you are interested in, feel free to contact me via my website contact form, or to send me a PM with your back office and FTP information.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Dear Bellini,

 

thank you for your help~~

 

when the error occur, 

 

the error reporting, 

Notice: Undefined variable: tmp in /home/lubsscom/public_html/modules/paypal/api/paypal_connect.php on line 130

 

and here is my code on line 130

 

return $tmp ? $tmp : false;

Link to comment
Share on other sites

  • 2 months later...

Hi, 

I'm having the exact same problem:

 

Getting this error displayed in the checkout page:

Notice: Undefined variable: tmp in /prestashop/modules/paypal/api/paypal_connect.php on line 130

 

and an empty response from paypal:

Please try to contact the merchant:

  1. <b>PayPal response:</b>
  2. ->

prestashop 1.6.0.9 hosted on dreamhost shared hosting, paypal v.3.7.2 by prestashop.

CURL is enabled.

Paypal account is a sandbox account and the module is set to test mode.

When switching to live mode I do get the paypal payment page.

Switched prestashop to dev mode but logs are empty.

 

Thanks for any help.

 

 

 

 

I modified paypal/api/paypal_connect.php to print errors and found this error (I still don't know why prestashop isn't logging):

SSL routines:SSL3_GET_RECORD:wrong version number

with this solution:

http://stackoverflow.com/questions/26378351/error1408f10bssl-routinesssl3-get-recordwrong-version-number-paypal-maybe

 

I modified line 88 to version 1 instead of 3:

@curl_setopt($ch, CURLOPT_SSLVERSION, 1);

 

now test mode works however I still don't know the impact on live mode and why there is a difference here. I'll probably go back to version 3 before going live.

Edited by sydsyd (see edit history)
  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...
After I print the variables of the function giving the error:

 

at paypal/api/paypal_connect.php file:

 

private function _connectByFSOCK($host, $script, $body)

{

 echo $host; 

 echo $script;

 echo $body;

 


 

echo $host; 

echo "</br>  ";

echo $errno;

echo "</br>  ";

echo $errstr;

 

 

$host = api-3t.paypal.com

$script= /nvp

$body contains the credentials and the data transfered to Paypal

$errno = 0

$errstr = php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known

 

 

this is the fault I am getting

 

 

The problem is some days is working and some not and this is since last month so I can assume this is a Paypal error
Link to comment
Share on other sites

this was the answer from PayPal:

---------------

I've run a test on your site but I didn't come across any issues. Please see the attached screenshot.

Details you provided (= php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known) indicates an issue with your cart not getting the PayPal re-direction URL at all or not getting it properly. I would suggest contacting Prestashop for more information.

---------------

the problem still there.

Prestashop team could you please help with this issue?

 

thank you

Link to comment
Share on other sites

I have fixed the problem...sorry for my english :-)

 

This issue is caused by recent update PayPal (10/16/2014) for fixed SSL3 vulnerability https://www.paypal-community.com/t5/PayPal-Forward/PayPal-Response-to-SSL-3-0-Vulnerability-aka-POODLE/ba-p/891829

 

This problem affects both the test and live site, and you can fix this problem by changing the module paypal.

 

- go to /modules/paypal/api/

- open paypal_connect.php

- around line 88 you can see @curl_setopt($ch, CURLOPT_SSLVERSION, 3);

-replace with :

 
// @curl_setopt($ch, CURLOPT_SSLVERSION, 3);
//fix by FabioS
@curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
@curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'SSLv3');
//endfix
 
- save and that's it.
 
Best regards!
  • Like 6
Link to comment
Share on other sites

Hi Fabio,

thanks for the proposed solution.

Indeed the problem has started appearing during that date.

 

anyway I check your solution and it doesn't solve the problem for my case.

 

I think it is 100% paypal since is a problem is comming and going,

One day redirection to paypal is working and the next is not.

I receiving that follow error 

ERRNO 0
ERRSTR php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known

 

 

Best Regards

Gerasimos

Link to comment
Share on other sites

 

I have fixed the problem...sorry for my english :-)

 

This issue is caused by recent update PayPal (10/16/2014) for fixed SSL3 vulnerability https://www.paypal-community.com/t5/PayPal-Forward/PayPal-Response-to-SSL-3-0-Vulnerability-aka-POODLE/ba-p/891829

 

This problem affects both the test and live site, and you can fix this problem by changing the module paypal.

 

- go to /modules/paypal/api/

- open paypal_connect.php

- around line 88 you can see @curl_setopt($ch, CURLOPT_SSLVERSION, 3);

-replace with :

 
// @curl_setopt($ch, CURLOPT_SSLVERSION, 3);
//fix by FabioS
@curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
@curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'SSLv3');
//endfix
 
- save and that's it.
 
Best regards!

 

Hi, I had the same problem with Paypal test accounts and your solution works like charm. Thanks:))

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

I was able to fix by just removing the setting:

 

@curl_setopt($ch, CURLOPT_SSLVERSION, 3);

 

CURL MANUAL:

 

CURL_SSLVERSION_TLSv1 (1),

CURL_SSLVERSION_SSLv2 (2),

CURL_SSLVERSION_SSLv3 (3),

CURL_SSLVERSION_TLSv1_0 (4),

CURL_SSLVERSION_TLSv1_1 (5)

CURL_SSLVERSION_TLSv1_2 (6).

 

Note:

Your best bet is to not set this and let it use the default. Setting it to 2 or 3 is very dangerous given the known vulnerabilities in SSLv2 and SSLv3.

 

Edited by mohrt (see edit history)
Link to comment
Share on other sites

  • 2 months later...

Just found this exact same problem and it seems to be fixed after removing @curl_setopt($ch, CURLOPT_SSLVERSION, 3); from paypal_connect.php.

You haven't received numerous emails from Paypal over the past few months telling you to do this?  Or did you just ignore them?

Link to comment
Share on other sites

  • 1 month later...

FabioS, on 06 Nov 2014 - 02:03 AM, said:

snapback.png

 

 

 

 

 

 

I have fixed the problem...sorry for my english :-)

 

This issue is caused by recent update PayPal (10/16/2014) for fixed SSL3 vulnerability https://www.paypal-c...DLE/ba-p/891829

 

This problem affects both the test and live site, and you can fix this problem by changing the module paypal.

 

- go to /modules/paypal/api/

- open paypal_connect.php

- around line 88 you can see @curl_setopt($ch, CURLOPT_SSLVERSION, 3);

-replace with :

 
// @curl_setopt($ch, CURLOPT_SSLVERSION, 3);
//fix by FabioS
@curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
@curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'SSLv3');
//endfix
 
- save and that's it.
 
Best regards!
 
 
 
 
 
Thank you so much for posting this quick fix... it solved the problem.... thank you!!!!!
Edited by Anthea (see edit history)
Link to comment
Share on other sites

Hi,

 

I have been fighting with that Paypal module for 2 weeks now. It worked well and one day started to return an error or even disappear from the payment modes...

I tried reinstalling the module several times, regenerate Paypal API details, double checked them, no way to get it back working correctly. The solution just before is no more up to date because my code is ok in paypal_connect.php.

I have last verified version of both PS and Paypal module installed (1.6.0.14 and 3.8.2).

Can someone please have an idea to share to help ?

 

See below the error I get for every payment try :

<h2> </h2>

Veuillez contacter le marchant:

  1. <b>PayPal response:</b>
  2. TIMESTAMP -> 2015-03-10T13:58:14Z
  3. L_ERRORCODE0 -> 10004
  4. L_SHORTMESSAGE0 -> Internal Error
  5. L_LONGMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details.
  6. L_SEVERITYCODE0 -> Error
  7.  
Link to comment
Share on other sites

  • 1 month later...

 

I have fixed the problem...sorry for my english :-)

 

This issue is caused by recent update PayPal (10/16/2014) for fixed SSL3 vulnerability https://www.paypal-community.com/t5/PayPal-Forward/PayPal-Response-to-SSL-3-0-Vulnerability-aka-POODLE/ba-p/891829

 

This problem affects both the test and live site, and you can fix this problem by changing the module paypal.

 

- go to /modules/paypal/api/

- open paypal_connect.php

- around line 88 you can see @curl_setopt($ch, CURLOPT_SSLVERSION, 3);

-replace with :

 
// @curl_setopt($ch, CURLOPT_SSLVERSION, 3);
//fix by FabioS
@curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
@curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'SSLv3');
//endfix
 
- save and that's it.
 
Best regards!

 

 

yesss! Many thanks FabioS :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...