Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

X-Payments orders failing, CURL error reported

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 05-03-2012, 10:33 PM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default X-Payments orders failing, CURL error reported

I'm testing my new X-Payments installation. I get a connection between the store and X-Payments ok ("Test module" reports success). But every live real card test I make produces the same failed result:
Quote:
Order declined. Review your data or contact the store administrator. Reason: Aborted due to errors during transaction processing
I tried changing every variable I could think of (Fast Lane, One Page, test mode, live, Visa, AMEX, etc.) with no change.

The failed orders are logged in X-Payments.

The error logs look like the problem may be CURL related, but I know nothing of CURL. The error looks similar in both test and live modes.

Quote:
Zone: Core
Code: CURL_EXEC_ERROR (216)
CURL library: error while sending the request to remote server "https://payflowpro.paypal.com:443/transaction". Error: "#7: couldn't connect to host"

Affected systems: Core/Bouncer.php file (180:assert); Core/Bouncer.php file (295:getResponse); Model/PaymentConf.php file (593:sendRequest); Model/Payment.php file (1700:processPayment); Model/Payment.php file (1645:processInit); Controller/Payment/Main.php file (239:process); Controller/Payment/Main.php file (217:doPay); Core/Controller.php file (181:actionPay); Controller/Payment.php file (277:process); Core/Dispatcher.php file (148:process); Application.php file (156:dispatch); /home/xp/public_html/xpayments/payment.php file (26:run)
For this test, the store and X-Payments are on different cPanel servers.

What's my next step?
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
Reply With Quote
  #2  
Old 05-03-2012, 11:32 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: X-Payments orders failing, CURL error reported

It seems payflowpro.paypal.com is down -> http://www.downforeveryoneorjustme.com/payflowpro.paypal.com

If site is up, but the issue persists, you should check the outgoing connections on the hosting server -> https://payflowpro.paypal.com:443/transaction

443 port should be opened on the firewall.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
bullfrog (05-04-2012)
  #3  
Old 05-04-2012, 11:32 AM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default Re: X-Payments orders failing, CURL error reported

Is the 4.4.4 version of Payflow Pro sent to a different server? I just setup that and it charged a live card order successfully. Then I turned back on X-Payments (took only a few minutes) and got the same failure pattern as described in my first post. The settings for both are identical.

I looked at the code in cc_payflow_pro.php and I see no indication of where the order details are sent.

Same if I look in the code of cc_xpc.php

In my old 4.1.9 version of cc_payflow_pro.php, payflowpro.verisign.com is hard coded.

If payflowpro.paypal.com is down, as suggested by the 3rd party checking sites, then where are my transactions from my 4.4.4 Payflow Pro old setup going? It's not down.
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
Reply With Quote
  #4  
Old 05-10-2012, 10:11 AM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default Check my X-Payments settings. Please.

My X-Payments is still not working and it seems unlikely that Paypal has been down for a week. My previous post above drew no response as to why my 4.4.4 built-in Payflow works (finds payflow.paypal.com, I assume), but as soon as I switch to X-Payments payflow.paypal.com goes down. Too weird.

Would some person who has a working X-Payments setup look at my config settings and see if you can spot anything wrong? My servers are standard cPanel-based, so email usernames look like "abc@mysite.com". If there is no proxy server, should the proxy line be "localhost", "", nothing, or just commented out?

PHP is 5.3.x

Quote:
host="localhost"
port=
unix_socket=
dbname="abc_mydatabase"
user="abc_myusername"
password="mypassword"

[mail]
; ---------------------------------
; Mail notifications parameters
; 'from' value is a 'From:' email parameter
; 'host', 'port', 'user', 'password' values is used for SMTP email transfer
; 'auth' value is an SMTP authentication method : LOGIN , CRAM-MD5, DIGEST-MD5
; 'timeout' value is the connection timeout period in seconds.
;
; If you omit 'host' value then the 'mail()' PHP function will be used for email transfer.
;
; ---------------------------------

from="abc@mysite.com"
host="mail.mysite.com"
port="25"
user="abc@mysite.com"
password="mypassword"
auth="LOGIN"
timeout="10"

[location]
; ---------------------------------
; X-Payments web URL.
;
; It MUST use HTTPS protocol.
;
; It should be in the following form:
; web="https://www.example.com/xpayments_dir/"
;
; ---------------------------------

web="https://abc.mysites.net/~abc/xpayments/"

[proxy]
; ---------------------------------
; Proxy parameter:
; * username:password@host:port
; * username:password@host
; * username@host
; * username@host:port
; * host:port
; * host
;
; ---------------------------------

proxy="localhost"

The X-Payments Manual and the config file comments could use some real-life examples in my opinion.

Thanks
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
Reply With Quote
  #5  
Old 05-10-2012, 02:10 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: X-Payments orders failing, CURL error reported

Here is a copy of my working xpayments config file. Xpayments is working fine for me so far.


[mysql]
; ---------------------------------
; MySQL credentials
;
; ---------------------------------
host="127.0.0.1"
port=""
unix_socket=""
dbname="xxxxx_xxxxxxx"
user="xxxxxxx_xxxxxxxx"
password="XXXXXXXXXXXXXXXX"
[mail]
; ---------------------------------
; Mail notifications parameters
; 'from' value is a 'From:' email parameter
; 'host', 'port', 'user', 'password' values is used for SMTP email transfer
; 'auth' value is an SMTP authentication method : LOGIN , CRAM-MD5, DIGEST-MD5
; 'timeout' value is the connection timeout period in seconds.
;
; If you omit 'host' value then the 'mail()' PHP function will be used for email transfer.
;
; ---------------------------------
from=xxxxx@xxxxxxxxxx.xxx
host=""
port=""
user=""
password=""
auth=""
timeout=""
[location]
; ---------------------------------
; X-Payments web URL.
;
; It MUST use HTTPS protocol.
;
; It should be in the following form:
; web="https://www.example.com/xpayments_dir/"
;
; ---------------------------------
web="https://www.xxxxxxxxx.com/xpayments/"

I did not fill any other feilds in except for the ones with the xxxxxx

Also the email feild has to match he store email feild.

Hope this helps.

Frank
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #6  
Old 05-10-2012, 05:44 PM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default Re: X-Payments orders failing, CURL error reported

Thanks, Frank. Your version looks simpler than mine, and you don't even use the "proxy=". I'll try simplifying mine to see if I can get it to work.

EDIT May 29, 2012. Making mine look like yours did not get it to work.
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
Reply With Quote
  #7  
Old 05-14-2012, 01:31 PM
 
espresso espresso is offline
 

eXpert
  
Join Date: Apr 2007
Location: Ontario, Canada
Posts: 227
 

Default Re: X-Payments orders failing, CURL error reported

I have the same problem, but with Beanstream:
I tried the latest x-payments on a 4.5.0 test store.

ERROR [2012-14-05 16:14:30]
User: unknown; IP: xx.xx.xx.xx
Zone: Core
Code: CURL_EXEC_ERROR (216)
CURL library: error while sending the request to remote server "https://www.beanstream.com/scripts/process_transaction.asp". Error: "#7: couldn't connect to host"

I can process orders no problem on a 4.4.5 store without x-payments.

Thanks for any help.
__________________
Rene
End user - merchant
In the upgrade process 4.6.6 to 5.4.x


Mods I miss in 5.4.x:
xCMS, Create-A-Sale, On-Sale AC, Kit Builder AC, Manufacturer-A-Z BCSE, Product-Bundle BCSE, Pre-Order BCSE, Customer Quotes BCSE
Reply With Quote
  #8  
Old 05-21-2012, 03:28 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,119
 

Default Re: X-Payments orders failing, CURL error reported

> CURL library: error while sending the request to remote server "https://
> www.beanstream.com/scripts/p...ransaction.asp". Error: "#7: couldn't
> connect to host"

This is a misconfiguration of CURL library on your host. X-Cart may work without CURL as it supports a couple of other libraries for securing data besides CURL. X-Payments supports CURL only.

It is hard to say what's wrong with CURL on your server without knowing how everything is configured there. You'd better ask your hosting support to fix CURL or you can contact our techs for help.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
  #9  
Old 05-28-2012, 01:27 AM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default Re: X-Payments orders failing, CURL error reported

With a new 4.5.0 store going up, I tried again to get a live transaction thru X-Payments using Payflow Pro, and got the following error message in X-Payments at var/log/payment/2012-05-27/errors.0001.log:

Quote:
ERROR [2012-27-05 23:42:36]
User: unknown; IP: [my home IP]
Zone: Core
Code: CURL_EXEC_ERROR (216)
CURL library: error while sending the request to remote server "https://payflowpro.verisign.com/transaction". Error: "#7: couldn't connect to host"
Affected systems: Core/Bouncer.php file (180:assert); Core/Bouncer.php file (295:getResponse); Model/PaymentConf.php file (856:sendRequest); Model/PaymentConf.php file (822:processSecure3dBuiltIn); Controller/Payment/Main.php file (282:processSecure3d); Controller/Payment/Main.php file (213:doSecure3d); Core/Controller.php file (181:actionPay); Controller/Payment.php file (277:process); Core/Dispatcher.php file (148:process); Application.php file (156:dispatch); /home/xp/public_html/xpayments/payment.php file (26:run)

I sent a trouble ticket to my host (HostGator) to see what they would say about my error message. Here is the reply:

Quote:
Curl is enabled on your server, but the issue appears to be with the site that you are attempting to make a connection to. Your site is attempting to connect to https://payflowpro.verisign.com/transaction but that site loads with an error. The error message that you have provided states that the site you are connecting to is having the issues. You will need to contact either https://payflowpro.verisign.com/transaction or the software developer in order to have this resolved.


CURL library: error while sending the request to remote server "https://payflowpro.verisign.com/transaction". Error: "#7: couldn't connect to host"

root@ore [~]# curl https://payflowpro.verisign.com/transaction
curl: (52) Empty reply from server
root@ore [~]# sudo -u xp curl https://payflowpro.verisign.com/transaction
curl: (52) Empty reply from server
root@ore [~]#

I don't know what to think, except that maybe I need to start looking for another gateway. We've been with Payflow Pro for over 10 years and have a package deal we don't want to give up.

Is anyone using Payflow Pro successfully using X-Payments? Anyone using Hostgator also? Does your config file look similar to mine (post 4 above). I'm using our servers shared secure server. Does that matter?
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
Reply With Quote
  #10  
Old 05-28-2012, 01:56 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,119
 

Default Re: X-Payments orders failing, CURL error reported

Looks like https://payflowpro.verisign.com/transaction is not accessible for some reason. I'll contact our PayPal account manager and get back to you once I have something.
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:09 AM.

   

 
X-Cart forums © 2001-2020