查詢中心 - 個人帳戶
  • 主頁
  • 付款和轉帳
  • 糾紛申訴和限制
  • 我的帳戶
  • 我的錢包
  • 登入和安全資訊
  • 賣家工具

Why did I get result code -1?

Issue
PayPal returned result code -1 - Failed to connect to host.

Causes
A few reasons can cause a transaction to produce this error:
  • The firewall or other network software or hardware is blocking inbound or outbound TCP (Transmission Control Protocol) traffic on port 443.
  • The network uses a "non-transparent" proxy to handle requests without specifying the parameters.
  • An incorrect or deprecated endpoint is being used.
  • Your current integration does not comply with the PayPal Security Requirements.

Solutions

Blocked TCP traffic
Verify that port 443 is open for both inbound and outbound TCP traffic. To do this, telnet into your server using either the server name or the IP address on port 443 (for example telnet 123.456.123.012 443). A blinking cursor indicates an open port. A "failed to connect" message indicates a closed port.

Network proxy use
If you use a proxy, make sure that the parameters include the Payflow Pro client needs (specifically, IP address (required), port (default=443), proxy logon, and proxy password). See the Payflow Gateway Developer Guide for specific information regarding proxy server settings.

Note: To check for connectivity, run a cURL command or an openssl command. If you use a UNIX environment or have an open-source tool such as Cygwin, issue the following commands to check connectivity.
  • Run command line using cURL:
    curl -d -v https://pilot-payflowpro.paypal.com  
  • Run command line (OpenSSL):
    openssl s_client -connect payflowlink.paypal.com:443

PayPal Endpoints
Verify that you are using the correct endpoint.

PayPal Security Requirements
Ensure you are adhering to PayPal's security guidelines and best practices.

If the issue persists after trying the preceding solutions, bypass the firewall, the proxy server, or both. Consult your technology team, website vendor, or the person responsible for your integration if you're not sure how to do this.

我們可以透過更多方式提供協助

如你繼續瀏覽,我們將使用 Cookie 來改善和提供為你而設的體驗。可否讓我們同時使用 Cookie 向你展示個人化廣告?了解更多並管理你的 Cookie