Jump to content

[SOLVED] Verification failure (using cURL). Returned: cURL error:couldn't connect to hostThe PayPal transaction could not be VERIFIED.


Recommended Posts

Ok this has been stumping me for quite a few days now...

Getting this message on all my orders made with PayPal in the Back Office:

Verification failure (using cURL). Returned: cURL error:couldn't connect to hostThe PayPal transaction could not be VERIFIED.

And when a customer is returned to the store after payment is made they see "Payment error" in their orders.

Their orders show all the correct amounts in the Front Office but in the Back Office, under Orders, it gives me an error:
"Warning: £0.00 paid instead of £#.## !"

My setup:
PayPal v1.6 module
Using version: 1.2.5.0
Store is hosted at AwardSpace.
cURL is enabled.
Currently testing using PayPal's sandbox

IPN settings are correct as indicated by the wiki:
http://www.prestashop.com/wiki/PayPal_and_PrestaShop/

(Obviously with correct web address instead of localhost).

I found a post that said that when posting to PayPal from an http:/ website it should be to http:/www.paypal.com and not https://www.paypal.com. So I went through all the files in the PayPal module and replaced all the https: to http:
This made no difference and so reverted the files back.

For info here is the original post:
http://paypaldev.org/yaf_postst7443_ipn-script-problem.aspx

I then tried using the PayPalAPI v1.0 which produced this error after confirming the order in my store:

AUTHORISATION TO PAYPAL FAILED

Please refer to logs:
Making new connection to 'api-3t.sandbox.paypal.com/nvp'
Connect with CURL method sucessfull
Sending this params:
METHOD=SetExpressCheckout&VERSION=53.0&PWD;=*********&USER=seller_1262279194_biz_api1.hotmail.com&SIGNATURE;=*********&Amt=8.94&PAYMENTACTION=Sale&ReturnUrl=http://toolingshed.com/modules/paypalapi/payment/submit.php?fromPayPal=1&CANCELURL=http://toolingshed.com/order.php&CURRENCYCODE=GBP&NOSHIPPING=1
Send with CURL method failed ! Error: couldn't connect to host
Connect failed with fsockopen method
PayPal response:
0 ->
->
PayPal returned error



So it looks to me like AwardSpace is blocking cURL connections to paypal? Why would they do that and why doesn't anyone else appear to be having the same issue?

I've seen reference to a beta PayPal module. But seeing as it's beta and as they suggest on their site it's not a good idea to use it live I'd rather not.

If anyone could shed some light and help point me to where I'm going wrong it would be very much appreciated!

Thanks.

Link to comment
Share on other sites

Interestingly I've just noticed that on the order confirmation sent to the merchant it has the correct amount. But everywhere else in Prestashop's back office says £0.00 has been payed.

What's going on?

Hi,

You've a new order from Name on Tooling Shed.

Order: 000011
Placed on : 2010-01-02
Carrier : {shipper}
Payment: PayPal
Discounts: £0.00
Shipping: £3.95
Products: £4.99
Gift-wrapping: £0.00
Total paid: £8.94

Delivery address:


Name
Address
United Kingdom {delivery state}


Billing address:


Name
Address
United Kingdom {invoice state}


Customer message:

Verification failure (using cURL). Returned: cURL error:couldn't connect to hostThe PayPal transaction could not be VERIFIED.

Link to comment
Share on other sites

  • 2 years later...

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...