Note that there are some explanatory texts on larger screens.

plurals
  1. POPayPal SetExpressCheckoutReq > Unable to connect to the remote server
    primarykey
    data
    text
    <p>I'm stuck and need someone to point me in the right direction. </p> <p>Works great on localhost, but fails when I push to the test version of the site in our datacenter (with sandbox settings). I'm using the SDK Version 2.1.96 for c#. Any ideas?</p> <p>Thanks</p> <p>The endpoint is: <a href="https://api-3t.sandbox.paypal.com/2.0/" rel="nofollow">https://api-3t.sandbox.paypal.com/2.0/</a></p> <p>When I try to test on the datacenter server, I'm getting:</p> <pre><code>System.Net.WebException: Unable to connect to the remote server ---&gt; System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.0.82.83:443 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket&amp; socket, IPAddress&amp; address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception&amp; exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream(TransportContext&amp; context) at System.Net.HttpWebRequest.GetRequestStream() at PayPal.APIService.MakeRequestUsing(IAPICallPreHandler apiCallHandler) at PayPal.BasePayPalService.Call(IAPICallPreHandler apiCallHandler) at PayPal.PayPalAPIInterfaceService.PayPalAPIInterfaceServiceService.SetExpressCheckout(SetExpressCheckoutReq setExpressCheckoutReq, String apiUserName) at PayPalSetCheckoutModel.SetExpressCheckoutPP() in PayPal\PayPalCheckoutModel.cs:line 301 </code></pre> <p>The pertinant related code is (straight from the sample in the SDK): // Invoke the API</p> <pre><code>SetExpressCheckoutReq wrapper = new SetExpressCheckoutReq(); wrapper.SetExpressCheckoutRequest = checkoutRequest; PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(); SetExpressCheckoutResponseType setECResponse = service.SetExpressCheckout(wrapper); </code></pre> <p>The request to be sent (from my localhost) looks like:</p> <pre><code>&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns=\"urn:ebay:api:PayPalAPI\" xmlns:ebl=\"urn:ebay:apis:eBLBaseComponents\" xmlns:cc=\"urn:ebay:apis:CoreComponentTypes\" xmlns:ed=\"urn:ebay:apis:EnhancedDataTypes\"&gt; &lt;soapenv:Header&gt; &lt;ns:RequesterCredentials&gt; &lt;ebl:Credentials&gt; &lt;ebl:Username&gt;sandboxseller_1358951631_biz_api1.domain.com&lt;/ebl:Username&gt; &lt;ebl:Password&gt;0000000000&lt;/ebl:Password&gt; &lt;ebl:Signature&gt;xxxx&lt;/ebl:Signature&gt; &lt;/ebl:Credentials&gt; &lt;/ns:RequesterCredentials&gt; &lt;/soapenv:Header&gt; &lt;soapenv:Body&gt; &lt;ns:SetExpressCheckoutReq&gt; &lt;ns:SetExpressCheckoutRequest&gt; &lt;ebl:Version&gt;94.0&lt;/ebl:Version&gt; &lt;ebl:SetExpressCheckoutRequestDetails&gt; &lt;ebl:ReturnURL&gt;https://localhost/Checkout/PayPalComplete&lt;/ebl:ReturnURL&gt; &lt;ebl:CancelURL&gt;https://localhost/Checkout/PayPalCancel&lt;/ebl:CancelURL&gt; &lt;ebl:ReqConfirmShipping&gt;0&lt;/ebl:ReqConfirmShipping&gt; &lt;ebl:NoShipping&gt;1&lt;/ebl:NoShipping&gt; &lt;ebl:AddressOverride&gt;0&lt;/ebl:AddressOverride&gt; &lt;ebl:cpp-header-image&gt;https://www.cloudfront.net/logo.jpg&lt;/ebl:cpp-header-image&gt; &lt;ebl:SolutionType&gt;Sole&lt;/ebl:SolutionType&gt; &lt;ebl:BuyerEmail&gt;mrbill@test.com&lt;/ebl:BuyerEmail&gt; &lt;ebl:AllowNote&gt;0&lt;/ebl:AllowNote&gt; &lt;ebl:BrandName&gt;Domain.com&lt;/ebl:BrandName&gt; &lt;ebl:PaymentDetails&gt; &lt;ebl:OrderTotal currencyID=\"USD\"&gt;27&lt;/ebl:OrderTotal&gt; &lt;ebl:ItemTotal currencyID=\"USD\"&gt;27&lt;/ebl:ItemTotal&gt; &lt;ebl:Custom&gt;42289&lt;/ebl:Custom&gt; &lt;ebl:InvoiceID&gt;100029&lt;/ebl:InvoiceID&gt; &lt;ebl:PaymentDetailsItem&gt; &lt;ebl:Name&gt;Item Name&lt;/ebl:Name&gt; &lt;ebl:Amount currencyID=\"USD\"&gt;27&lt;/ebl:Amount&gt; &lt;ebl:ItemCategory&gt;Digital&lt;/ebl:ItemCategory&gt; &lt;/ebl:PaymentDetailsItem&gt; &lt;ebl:PaymentAction&gt;Sale&lt;/ebl:PaymentAction&gt; &lt;/ebl:PaymentDetails&gt; &lt;/ebl:SetExpressCheckoutRequestDetails&gt; &lt;/ns:SetExpressCheckoutRequest&gt; &lt;/ns:SetExpressCheckoutReq&gt; </code></pre> <p> </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.
    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