Zen Cart Logo
Forums / PayPal Website Payments Pro support / Paypal Pro Error 10552 Invalid Configuration

Paypal Pro Error 10552 Invalid Configuration

Views: 4,927

Results 1 to 4 of 4
4 Aug 2021, 3:52 PM
#1
riomaha avatar

riomaha

New Zenner

Join Date:
Oct 2013
Location:
MTL
Posts:
66
Plugin Contributions:
1

Paypal Pro Error 10552 Invalid Configuration

I am running Z.C 1.5.7 (not A,B, or C) with PHP 1.7.2. The PayPal module was not altered (stock)
I initially set it up using old Paypal method but noticed that they are pushing for Clous Sandbox. So I created a sandbox account and generated an API, Username, Signature, etc.

In my ZenCart setup, I enabled both Express and Pro payment module and update the settings accordingly. Unfortunately, each time I try to checkout, I get an error 10552 Invalid Configuration. So I double checked my settings in ZenCart and PayPal and also checked the files. I noticed that 1.5.7C has slight changes to Paypal Pro so I updated the Paypal Payment module with the new files but still get the same error

I understand the module requires Curl which is indeed enabled on my server but I have to use a proxy server. So I tried by updated PayPal Curl file to include the Proxy server as below and still no luck.

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $this->_endpoints[$this->_server]);
                                curl_setopt($ch, CURLOPT_VERBOSE, 1);
                                curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
                                curl_setopt ($ch, CURLOPT_PROXY,"http://proxyserver.domain:port");
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_buildNameValueList($values));
    foreach ($this->_curlOptions as $name => $value) {
      curl_setopt($ch, $name, $value);
    }

I viewed the log files with and without proxy and they are identical.

Response: 
Array
(
    [TIMESTAMP] => 2021-08-04T15:36:06Z
    [CORRELATIONID] => 41eaad0664e08
    [ACK] => Failure
    [VERSION] => 124.0
    [BUILD] => 55025969
    [L_ERRORCODE0] => 10552
    [L_SHORTMESSAGE0] => Invalid Configuration
    [L_LONGMESSAGE0] => This transaction cannot be processed.
    [L_SEVERITYCODE0] => Error
    [AMT] => 1.00
    [CURRENCYCODE] => CAD
    [CURL_ERRORS] => 
)

Any thoughts?

4 Aug 2021, 4:18 PM
#2
riomaha avatar

riomaha

New Zenner

Join Date:
Oct 2013
Location:
MTL
Posts:
66
Plugin Contributions:
1

Re: Paypal Pro Error 10552 Invalid Configuration

I have done a curl test to sandbox from command line on server and I am able to communicate through CURL

curl https://api-3t.sandbox.paypal.com
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:market="urn:ebay:apis:Market" xmlns:auction="urn:ebay:apis:Auction" xmlns:sizeship="urn:ebay:api:PayPalAPI/sizeship.xsd" xmlns:ship="urn:ebay:apis:ship" xmlns:skype="urn:ebay:apis:skype" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" id="_0"><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>End of file or no input: 'Invalid argument'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
4 Aug 2021, 4:27 PM
#3
riomaha avatar

riomaha

New Zenner

Join Date:
Oct 2013
Location:
MTL
Posts:
66
Plugin Contributions:
1

Re: Paypal Pro Error 10552 Invalid Configuration

riomaha:

I have done a curl test to sandbox from command line on server and I am able to communicate through CURL

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

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:market="urn:ebay:apis:Market" xmlns:auction="urn:ebay:apis:Auction" xmlns:sizeship="urn:ebay:api:PayPalAPI/sizeship.xsd" xmlns:ship="urn:ebay:apis:ship" xmlns:skype="urn:ebay:apis:skype" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" id="_0"><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>End of file or no input: 'Invalid argument'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

curl -v -post https://api-3t.sandbox.paypal.com
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to api-3t.sandbox.paypal.com port 443 (#0)

  • Trying 173.0.93.184...
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to api-3t.sandbox.paypal.com (173.0.93.184) port 443 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  • SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  • Server certificate:
  •   subject: CN=api.sandbox.paypal.com,O="PayPal, Inc.",L=San Jose,ST=California,C=US
    
  •   start date: Apr 16 00:00:00 2021 GMT
    
  •   expire date: Mar 30 23:59:59 2022 GMT
    
  •   common name: api.sandbox.paypal.com
    
  •   issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US
    

GET / HTTP/1.1
User-Agent: curl/7.29.0
Host: api-3t.sandbox.paypal.com
Accept: /

< HTTP/1.1 404 Not Found
< Content-Type: text/xml; charset=utf-8
< Content-Length: 1156
< Connection: keep-alive
< Date: Wed, 04 Aug 2021 16:25:22 GMT
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate
< Paypal-Debug-Id: 761525bd09944
< Strict-Transport-Security: max-age=31536000; includeSubDomains
<
{ [data not shown]
100 1156 100 1156 0 0 2485 0 --:--:-- --:--:-- --:--:-- 2486

  • Connection #0 to host api-3t.sandbox.paypal.com left intact
5 Aug 2021, 2:11 PM
#4
riomaha avatar

riomaha

New Zenner

Join Date:
Oct 2013
Location:
MTL
Posts:
66
Plugin Contributions:
1

Re: Paypal Pro Error 10552 Invalid Configuration

riomaha:

curl -v -post https://api-3t.sandbox.paypal.com
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to api-3t.sandbox.paypal.com port 443 (#0)

  • Trying 173.0.93.184...
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to api-3t.sandbox.paypal.com (173.0.93.184) port 443 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  • SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  • Server certificate:
  •   subject: CN=api.sandbox.paypal.com,O="PayPal, Inc.",L=San Jose,ST=California,C=US
    
  •   start date: Apr 16 00:00:00 2021 GMT
    
  •   expire date: Mar 30 23:59:59 2022 GMT
    
  •   common name: api.sandbox.paypal.com
    
  •   issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US
    

GET / HTTP/1.1
User-Agent: curl/7.29.0
Host: api-3t.sandbox.paypal.com
Accept: /

< HTTP/1.1 404 Not Found
< Content-Type: text/xml; charset=utf-8
< Content-Length: 1156
< Connection: keep-alive
< Date: Wed, 04 Aug 2021 16:25:22 GMT
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate
< Paypal-Debug-Id: 761525bd09944
< Strict-Transport-Security: max-age=31536000; includeSubDomains
<
{ [data not shown]
100 1156 100 1156 0 0 2485 0 --:--:-- --:--:-- --:--:-- 2486

  • Connection #0 to host api-3t.sandbox.paypal.com left intact


Issue was on PayPal side. Account verification email wasn't being sent out.