Note that there are some explanatory texts on larger screens.

plurals
  1. POpaypal SoapClient not working
    primarykey
    data
    text
    <p>I am using PHP's SoapClient class to connect to paypal. I have a number of problems:</p> <ol> <li>The paramaters I pass to the soap call are <code>array('ReturnAllCurrencies'=&gt;0, 'Version'=&gt;'63.0')</code> but as you can see in the request below, <code>63.0</code> is put in <code>&lt;param1&gt;</code> whatever that is. I don't even see ReturnAllCurrencies in the request.</li> </ol> <p>In this request I am performing a <code>GetBalance</code> command:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:ebay:api:PayPalAPI" xmlns:ns2="urn:ebay:apis:eBLBaseComponents"&gt; &lt;SOAP-ENV:Header&gt; &lt;ns1:RequesterCredentials&gt; &lt;ns2:Credentials&gt; &lt;ns2:Username&gt;xxxx&lt;/ns2:Username&gt; &lt;ns2:Password&gt;xxx&lt;/ns2:Password&gt; &lt;ns2:Signature&gt;xxx&lt;/ns2:Signature&gt; &lt;/ns2:Credentials&gt; &lt;/ns1:RequesterCredentials&gt; &lt;/SOAP-ENV:Header&gt; &lt;SOAP-ENV:Body&gt; &lt;ns1:GetBalanceReq/&gt; &lt;param1&gt;63.0&lt;/param1&gt; &lt;/SOAP-ENV:Body&gt; &lt;/SOAP-ENV:Envelope&gt; </code></pre> <p>I found the request above via SoapClient::__getLastRequest(). It doesn't exacly look like the example on the paypal website. What's with the <code>GetBalanceReq</code> tag? Why does it have the *Req suffix?</p> <p>2.When using the production server and wsdl files, I get a php error:</p> <blockquote> <p>SOAP-ERROR: Parsing WSDL: Couldn&#039;t load from &#039;<a href="https://www.paypal.com/wsdl/PayPalSvc.wsdl&amp;#039" rel="nofollow noreferrer">https://www.paypal.com/wsdl/PayPalSvc.wsdl&amp;#039</a>; : Start tag expected, &#039;&lt;&#039; not found</p> </blockquote> <p>Furthermore if I try to visit the production certificate url in FireFox (<a href="https://api.paypal.com/2.0/" rel="nofollow noreferrer">https://api.paypal.com/2.0/</a>) I get a ssl_error_handshake_failure_alert</p> <p>Am I supposed to download the wsdl file and point to a local version in the first argument of SoapClient::__construct or am I simple supposed to point to the paypal hosted copy? I originally assumed the latter, but now I'm not sure</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload