Zen Cart Logo
Forums / PayPal Express Checkout support / Stumped on curl, paypal express invalid transaction error

Stumped on curl, paypal express invalid transaction error

Locked

Views: 4,757

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Oct 2007, 2:49 AM
#1
micamac avatar

micamac

New Zenner

Join Date:
Sep 2007
Posts:
2
Plugin Contributions:
0

Stumped on curl, paypal express invalid transaction error

I continue to get "Return to Merchant This transaction is invalid. Please return to the recipient's website to complete your transaction using their regular checkout flow." ZenCart is an excellent web cart but extremely frustrating using one's own web server, especially for me-with limited programming experience, and a little more system admin experience than that. I would go to a recommended host but require keeping it in-house because of a local archive that the store is used for. Would also use one of the xxamp versions but I have not been weened off of the OSX gui and one of the xxamp versions does not work on the PPC system being used.

The cart and site are running on a Mac OSX Server, ver 10.4.10, PHP 4.4.7, Zen Cart 1.3.7.1, MySQL 4.1.22. The settings on my paypal account to enable Paypal Express was added and is correct, and the account is a business and verified. Port 443 is enabled for both incoming and outgoing traffic on the router.

The curl library was rebuilt from scratch and it installed fine-
(curl 7.16.4 (powerpc-apple-darwin8.10.1) libcurl/7.16.4 OpenSSL/0.9.7l zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IPv6 Largefile NTLM SSL libz)

however when PHP is rebuilt with the 'new' curl library ZenCart admin does not show the library as being ssl-enabled-
(curl
CURL support enabled
CURL Information libcurl/7.16.4 zlib/1.2.3)

The logfile generated from the Paypal Express error displays-

2007-10-08 05:23:16

(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 45
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart - WPP-NVP
[4] => X-VPS-VIT-Integration-Version: 0.1
)

Request Parameters: {SetExpressCheckout}
Array
(
[LOCALECODE] => US
[PAYMENTACTION] => Sale
[REQCONFIRMSHIPPING] => 1
[AMT] => 0.01
[RETURNURL] =>
https://website:443/zccatalog/ipn_main_handler.php?type=ec
[CANCELURL] =>
https://website:443/zccatalog/index.php?main_page=login&ec_cancel=1
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => USD
[USER] => mikeah21_api1.yahoo.com
[PWD] => ****************
[VERSION] => 2.3
[SIGNATURE] =>
****************************************************9.di
)

Response:
Array
(
[] =>
[CURL_ERRORS] => (1) libcurl was built with SSL disabled, https:
not
supported!
)

(1) libcurl was built with SSL disabled, https: not supported!
Array
(
[url] => https://api-3t.paypal.com/nvp
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0
[namelookup_time] => 0
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => 0
[upload_content_length] => 0
[starttransfer_time] => 0
[redirect_time] => 0
)

ipn_mail_handler.php from the website displays

Nothing to process. Please return to home page.
Warning: (null)() [function.mysql-free-result]: 2 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0

ipncheck.php from the website displays

IPNCHECK.PHP - Version 1.0

IPN TESTING - POSTING to PayPal via: ssl://www.paypal.com:443

IPN TESTING - Confirmation/Validation response: RESPONSE RECEIVED - Communications OKAY

Script finished.

I do not believe the problem is with ZenCart. configure and make for PHP have warning messages but that does not stop the build from completing and installing PHP, though I am clueless as to what impact those warnings may have on PHP, curl or openssl being functional. I am stumped and need help! HELP!

9 Oct 2007, 3:01 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Stumped on curl, paypal express invalid transaction error

micamac:

ipncheck.php from the website displays

IPNCHECK.PHP - Version 1.0

IPN TESTING - POSTING to PayPal via: ssl://www.paypal.com:443

IPN TESTING - Confirmation/Validation response: RESPONSE RECEIVED - Communications OKAY

Script finished.This means that OpenSSL works for the fsockopen communications, which is important in order to receive transaction updates from PayPal.

micamac:

The curl library was rebuilt from scratch and it installed fine-
(curl 7.16.4 (powerpc-apple-darwin8.10.1) libcurl/7.16.4 OpenSSL/0.9.7l zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IPv6 Largefile NTLM SSL libz)

however when PHP is rebuilt with the 'new' curl library ZenCart admin does not show the library as being ssl-enabled-
(curl
CURL support enabled
CURL Information libcurl/7.16.4 zlib/1.2.3)

The logfile generated from the Paypal Express error displays-

[CURL_ERRORS] => (1) libcurl was built with SSL disabled, https: not supported!This means that somehow the libcurl library you're compiling into PHP isn't OpenSSL-aware or maybe is incompatible with something else at compile-time.

You're right that this isn't a Zen Cart issue. Zen Cart and PayPal are only exposing a problem.
You might find more information about running your own self-hosted webserver on forums dedicated to that kind of topic, such as webhostingtalk.com