i am working on shopping cart project, i need globalpay integration . i got the sample code and run in my localhost it shows me error this.
Warning: SoapClient::__construct() [function.SoapClient---construct]: SSL: fatal protocol error in C:\wamp\www\exampls\PHP Web Service Sample (Credit Card) 4.0.0\PHP Web Service Sample (Credit Card) 4.0.0\globalpay.inc.php on line 37
i enabled soap server in php.ini.
My guess is that you need to install the OpenSSL extension for PHP.
Related
Server: Windows Server 2012
Cold Fusion: 9,0,1,274733
Update-Level: hf901-00011.jar
Running on java version: 1.7.0_79
Java home points to the right path.
All certificates (for live and sandbox) are imported into the keystore of this JDK 1.7.0_79. I've tested it and renaming the cacerts file results in an error when connecting to the live API.
Testing the cacerts file using the keytool shows that the apropriate certificates are properly imported.
A little order app provides payment using PayPal.
First step is a connection to PayPal using the method "setExpressCheckout".
The connection to the live API using NVP at URL https://api-3t.paypal.com/nvp works and delivers the token URL-string.
The connection to the sandbox API using NVP at URL https://api-3t.sandbox.paypal.com/nvp fails with the error response:
I/O Exception: peer not authenticated
Connection Failure
Unable to determine MIME type of file.
Connection Failure. Status code unavailable.
Calling the URL https://api-3t.sandbox.paypal.com/nvp from the server works.
Test 1
imported the sandbox certificate for api-3t.sandbox.paypal.com
restart CF service
connection test failed with the same error
Test 2
renamed the cacerts file to cacerts.bak
copied the cacerts file from jre1.8.0_31\lib\security to the 1.7.0_79\lib\security
there is no specific PayPal cert in the cacerts file
restart the CF service
connection to live API works
connection to sandbox api fails with the same error
The weird thing is that the connection to the live api works without importing the specific certificate into the keystore when using the 1.8xx cacerts file.
I can't figure out why the connection to the sandbox fails. Maybe I can get new hints here?
If there are more informations needed please let me know. Thank you in advance.
Problem solved!
Scott Jibben (see his comment above) mentioned that the PayPal sandbox may already decline TLS1 connections in order to the upcoming change to do so in the PayPal live API.
This is absolutely right. But while in CF11 this isn't a problem because CF11 and its JRE are already using TLSv1.2, CF8-10 are using the default protocol of their JRE.
If not, one can force CF to use TLSv1.2 with the JVM argument
-Dhttps.protocols=TLSv1.2
Short:
CF8-10 are using TLSv1 while running with JDK1.70_79 and below no matter what the JVM startup argument -Dhttps.protocols was set to.
This is because the default protocol of these Java versions is TLSv1 and CF8-10 are simply ignoring the JVM startup argument -Dhttps.protocols and always use the JDK's default protocol.
This has changed with CF11 therefore it works fine with it.
Read detailed informations in a post from Wil Genovese at:
https://www.trunkful.com/index.cfm/2014/12/8/Preventing-SSLv3-Fallback-in-ColdFusion
What I did
I've installed the JDK1.8.0_144 and set up Cold Fusion 9 to use this one. Since then the connection to the PayPal sandbox API at api-3t.sandbox.paypal.com works pretty well.
Hope this may help others with this old and by now a little odd CF9.
I Install the Mailchimp extension in magento1.9 and Directly I added the API key in the system->configuration->mailchimp and Iam getting Following Error.
for Api Call: API call to lists?fields=lists&count=100 failed: Problem with the SSL CA cert (path? access rights?) -
SSL version-3
Mailchimp version - 1.5.1.
Operating System: CentOs
Can anyone please help..
Try this:
Download cacert.pem file from here:
http://curl.haxx.se/docs/caextract.html
eg: Save the file in /etc/pki/tls.
Open your php.ini file and add this line:
curl.cainfo="/etc/pki/tls/cacert.pem"
Restart/Reload your Apache server (service httpd reload)
my website is www.a1mcganns.co.uk
I am having issues with customers completing payment when using PayPal.
They get this error message
PayPal response:
->
Making new connection to 'api-3t.paypal.com/nvp'
Connect with CURL method successful
Sending this params:
METHOD=SetExpressCheckout&VERSION=106&PWD=L2JP7EMP7JR32JCP&USER=sales_api1.a1mcganns.co.uk&SIGNATURE=AENSDlLTRY8C54MMOG29Y0inxhFWAgY-7uEg9VqBu-bS11n1QZx2H3Nv&CANCELURL=http%3A%2F%2Fwww.a1mcganns.co.uk%2Fgb%2Forder%3Fpaypal_ec_canceled%3D1%26&RETURNURL=http%3A%2F%2Fwww.a1mcganns.co.uk%2Fmodules%2Fpaypal%2Fexpress_checkout%2Fpayment.php&NOSHIPPING=1&BUTTONSOURCE=PRESTASHOP_EC&L_PAYMENTREQUEST_0_NUMBER0=1733&L_PAYMENTREQUEST_0_NAME0=Cycliq+Fly+12+Front+1080p+Camera+and+400+lumen+Bike+Light+%28Includes+16GB+SD+Card%29&L_PAYMENTREQUEST_0_DESC0=Inludes+16GB+SD+Card...&L_PAYMENTREQUEST_0_AMT0=229.99&L_PAYMENTREQUEST_0_QTY0=1&PAYMENTREQUEST_0_PAYMENTACTION=Sale&PAYMENTREQUEST_0_CURRENCYCODE=GBP&PAYMENTREQUEST_0_SHIPPINGAMT=0.00&PAYMENTREQUEST_0_ITEMAMT=229.99&PAYMENTREQUEST_0_AMT=229.99&ADDROVERRIDE=1&EMAIL=phil%40wilkinson3.fsworld.co.uk&PAYMENTREQUEST_0_SHIPTONAME=p+Wilkinson&PAYMENTREQUEST_0_SHIPTOPHONENUM=%2B447595914321&PAYMENTREQUEST_0_SHIPTOSTREET=63&PAYMENTREQUEST_0_SHIPTOSTREET2=Northampton+Lane+North&PAYMENTREQUEST_0_SHIPTOCITY=Northampton&PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=GB&PAYMENTREQUEST_0_SHIPTOZIP=NN3+7QY&SOLUTIONTYPE=Sole&LANDINGPAGE=Login&USER=sales_api1.a1mcganns.co.uk&PWD=L2JP7EMP7JR32JCP&SIGNATURE=AENSDlLTRY8C54MMOG29Y0inxhFWAgY-7uEg9VqBu-bS11n1QZx2H3Nv
Send with CURL method failed ! Error: Couldn't resolve host 'api-3t.paypal.com'
Connect failed with fsockopen method
I am hoping someone can point me in the right direction to fix the problem
Many thanks
Regards
Phil
Check the curl error to see exactly what's happening. My guess is that you'll get something along the lines of "ssl handshake failure".
If that's the case you need to review this post about POODLE.
The problem basically comes down to the server software stack being out of date. Specifically, from the POODLE post...
As of 01.19.2016 PayPal now supports only TLS 1.2 on the sandbox (and in June the same will apply to production systems).
If you want to use TLS 1.2 you’ll need to upgrade to OpenSSL 1.0.1 as a minimum, and then you’ll be able to set CURLOPT_SSLVERSION to 6 (TLS 1.2).
If you want TLS 1.2 to be used automatically during SSL requests, you’ll also need to upgrade to PHP 5.5.19+ (this is the ideal solution but many projects are still on older PHP versions).
I am trying to create a basic SOAP Server over SSL. Before making Web Services available on my Production website, I have to test it on Development system with has got Self Signed Certificate (Whose authentication is a problem right now). Following are the problems I am facing in that regard:
When I try to call https://zendsoap.lan/Zend_Soap_server.php?wsdl
its works fine I can view the wsdl.
But when I try https://zendsoap.lan/Zend_Soap_server.php, I get
this:
SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://zendsoap.lan/Zend_Soap_Server.php?wsdl' : failed to load
external entity "https://zendsoap.lan/Zend_Soap_Server.php?wsdl"
Is that something I should be getting or Some nice looking HTML page
describing the usage of webservice like in NuSoap.
I tried verify_peer=>false as I am running it on dev server so no need to verify my own created certificate, but obviously on production I want the Certificate to be verified.
This thing work fine with NuSoap but most of the stuff in NuSoap is deprecated for our server which is running PHP 5.4.6, So the most reliable solution for me using PHP's SOAP extension. And the reason for me using Zend is we're in process of moving our system from some third party framework to Zend Framework and everyday I get requests from client to add this & that new components, I assumed if I develop every new request from Client using Zend libraries then it will be easy for me in later stages to move to Zend Framework.
openssl is enable and tried with defining local_cert as well, but no Joy.
I hope I made some sense there.
Basically looking for some instruction how to create Self Signed Certificates for this purpose, what should be the code for Server & Client.
Is anybody here who have ever worked on Twilio iOS SDK Client.
Actually i am running one of the Twilio SDK Examaples. and i am getting weired Error.
i put my auth.php and Helper Libraries and basic-call.pnh files onto my Local Server but when i tried to connect it through my application from iPhone it gives me the following error:
2012-01-24 14:11:26.694 HelloMonkey[5346:7403] Error establishing connection due to error: Status Code domain: TwilioHTTPErrorDomain code: 487
2012-01-24 14:11:29.677 HelloMonkey[5346:7403] Error establishing connection due to error: Status Code domain: TwilioHTTPErrorDomain code: 408
These errors occurs after 5 - 10 minutes after my connection successful.
Also i am not hearing any response from basic-call.php.
My Basic call.php has simple code that says "Welcome to Twilio Client". But its not saying it.
Can any body help.
Thnaks
Twilio Client Mobile suffered a short outage around the time that your question was asked. Can you please try running your code again and see if you get the same error?
Kevin
Check out whether the VoiceURL in your application setting page of Twilio points to basic-call.php.Whatever URL mentioned under VoiceURL only twilio attempts to call.