How do I handle PayPal API timeouts and internal server error messages?

Generally, API timeouts and internal server error messages result from server or connectivity issues. This can result in an INTERNAL_SERVICE_ERROR or INTERNAL_SERVER_ERROR message. 

Among others in our REST API integration stack, the following NVP/SOAP API methods can produce this error:

  • DoDirectPayment.
  • DoExpressCheckoutPayment.
  • DoAuthorization.
  • DoCapture.

When an internal server error or timeout message is received in response to an API request that processes a payment, make sure the buyer wasn't charged. To do this, refer to your existing reconciliation processes to identify the buyer's completed transactions.

If you don't have a reconciliation process or are unsure whether that process identified a completed transaction, you can use the TransactionSearch API to locate any transactions that took place when the error occurred. If the API returns a result matching your transaction, use the GetTransactionDetails API with the Transaction ID to receive the data for that transaction. You can retry the transaction safely if the TransactionSearch API doesn't return a matching result.

Note: Some users may see checkout stuck at processing when this occurs. Your cache and cookies can also cause this error. If timeouts continue, try testing in another browser, test in Incognito/Private mode, or clear your cache and cookies. 

Using the TransactionSearch API.

Review the PayPal Status page to determine if there are any maintenance windows or temporary outages. 

See also:

How do I resolve API timeout problems?

See the Developer Portal for a complete NVP/SOAP API error code list.

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

調解中⼼

解決與交易和帳戶相關的問題

稅務中心

在此處取得 1099-K 表格和其他稅務資料

商業支援

尋求協助以使用任何 PayPal 產品

訊息中心

發出、接收並查看你的 PayPal 訊息

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