paypal - cURL PHP hangs just after receive headers -


using php have been able connect , process successful purchases paypal sandbox endpoint:

https://api-3t.sandbox.paypal.com/nvp 

however when tried move application live, hit few problems. firstly, sandbox account uses signiture, , live account uses certificate. new endpoint have use it:

https://api.paypal.com/nvp 

getting rid of "-3t" using certificate.

i send post data in vb.net address, generates token can send out. works fine, when user has come our site after confirming in paypal (the returnurl) using curl process next commanded needed api, method: getexpresscheckoutdetails. if success move onto using curl on page complete payment using method: doexpresscheckoutpayment

the problem curl hangs , page not load.

using linux terminal if type try use curl api hangs also.

curl --verbose https://api.paypal.com/nvp 

the response get, goes through handshake , after headers, stops. not return comnmand line. here curl output:

user-agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 openssl/0.9.8b zlib/1.2.3 libidn/0.6.5 > host: api.paypal.com > accept: */* > * connect() api.paypal.com port 443 *   trying 173.0.84.66... connected * connected api.paypal.com (173.0.84.66) port 443 * set certificate verify locations: *   cafile: /etc/pki/tls/certs/ca-bundle.crt   capath: none * sslv2, client hello (1): sslv3, tls handshake, server hello (2): sslv3, tls handshake, cert (11): sslv3, tls handshake, request cert (13): sslv3, tls handshake, server finished (14): sslv3, tls handshake, cert (11): sslv3, tls handshake, client key exchange (16): sslv3, tls change cipher, client hello (1): sslv3, tls handshake, finished (20): sslv3, tls change cipher, client hello (1): sslv3, tls handshake, finished (20): ssl connection using des-cbc3-sha * server certificate: *        subject: /c=us/st=california/l=san jose/o=paypal, inc./ou=paypal production/cn=api.paypal.com *        start date: 2013-07-03 00:00:00 gmt *        expire date: 2015-07-04 23:59:59 gmt *        subjectaltname: api.paypal.com matched *        issuer: /c=us/o=verisign, inc./ou=verisign trust network/ou=terms of use @ https://www.verisign.com/rpa (c)10/cn=verisign class 3 secure server ca - g3 * ssl certificate verify ok. > /nvp http/1.1 > user-agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 openssl/0.9.8b zlib/1.2.3 libidn/0.6.5 > host: api.paypal.com > accept: */* > 

(this not because have not sent method, or user or pwd, when it, same) suspecting has api certificate! have ideas happening here, thanks.

edit: use wget test, rid of possibility of being curl problem:

wget https://api.paypal.com/nvp 

reply is:

--2013-10-08 08:45:53-- https://api.paypal.com/nvp resolving api.paypal.com.. 173.0.88.98, 173.0.84.98, 173.0.84.66, ... connecting api.paypal.com|173.0.88.98|:443... connected. http request send, awaiting response... 

and wget hangs aswell, proves not problem curl?

i'm not familiar vb did take note of this

cafile: /etc/pki/tls/certs/ca-bundle.crt 

i use certificate (i go version 1.0!) , there's no need chain(ca) file setup (these aren't live signed ssl certificates). problem.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -