X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   X-Payments orders failing, CURL error reported (https://forum.x-cart.com/showthread.php?t=63533)

bullfrog 05-03-2012 10:33 PM

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?

qualiteam 05-03-2012 11:32 PM

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.

bullfrog 05-04-2012 11:32 AM

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 05-10-2012 10:11 AM

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

Duramax 6.6L 05-10-2012 02:10 PM

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

bullfrog 05-10-2012 05:44 PM

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.

espresso 05-14-2012 01:31 PM

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.

ambal 05-21-2012 03:28 AM

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.

bullfrog 05-28-2012 01:27 AM

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?

ambal 05-28-2012 01:56 AM

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.


All times are GMT -8. The time now is 03:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.