Question

Everything is working absolutely fine in development here on my local machine. When I migrate the code to the production server at our hosting site and remain in Sandbox mode I get an error.

Exception in HttpConnection Execute: Invalid HTTP response Unable to connect to the remote server

I've debugged with traces to this spot in the code:

    Dim setECResponse As SetExpressCheckoutResponseType = service.SetExpressCheckout(wrapper)

Our Web.Config has the following Entries:

  <add key="PAYPAL_REDIRECT_URL" value="https://www.sandbox.paypal.com/webscr&amp;cmd="/>
  <add key="E_HOSTING_ENDPOINT" value="http://localhost"/>
  <add key="PAYPAL_API_MODE" value="sandbox" />
  <add key="PAYPAL_API_USERNAME" value="babrams-facilitator_api1.commuter.net" />
  <add key="PAYPAL_API_PASSWORD" value="1395365656" />
  <add key="PAYPAL_API_SIGNATURE" value="A78sCS0nUCkkjVsrxFQEygQ8fAp4ACIRrk.iJ6zw7-HJiwaeO0k28aIB" />

We tried changing the E_HOSTING_ENDPOINT to our website domain, but we get the same error. I also tried testing these URLS from a html page on the production server and they work fine, so I don't think this is a firewall issue or network connectivity at fault.

https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=EC-4WB48589UH622552B https://api-3t.sandbox.paypal.com/2.0/

The project works fine in development. It is only in production that it does not work.

Any insight as to what we should look for, or how to resolve this issue would be greatly appreciated.

Was it helpful?

Solution 2

In the end the answer was that the Hosting Company has installed a Microsoft patch that removed the "Ciphers" from their server, which caused the PayPal DLL to be rendered incapable of performing it's functions normally. They replaced the ciphers and rebooted. Everything worked after that. The hosting company declined to let me know which MS patch caused the issue, so I can not report on that.

OTHER TIPS

Have you checked to ensure CURL is enabled on your production server?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top