【问题标题】:.NET AdaptivePayment SDK: PaymentDetails() is throwing a ConnectionException (404).NET AdaptivePayment SDK:PaymentDetails() 抛出 ConnectionException (404)
【发布时间】:2013-10-31 22:48:27
【问题描述】:

我正在调用AdaptivePaymentService.PaymentDetails() 来获取付款的付款详细信息,它会抛出一个 ConnectionException 指示 404。为了调试问题,我下载了 AdaptivePayment SDK 的源代码以及核心 SDK 和单步执行代码,特别是在HttpRequestPaypal.HttpConnection.Execute() 中执行的位置。

似乎所有配置变量都从 web.config 中读取:

底层 httpRequest 中的地址看起来是正确的:

有效载荷看起来正确:

但是,WebException 会引发以下响应:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /cgi-bin/ppapi was not found on this server.</p>
<p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache Server at <a href="mailto:ppmtps@paypal.com">api.sandbox.paypal.com</a> Port 443</address>
</body></html>

任何帮助将不胜感激。

【问题讨论】:

    标签: paypal paypal-sandbox paypal-adaptive-payments


    【解决方案1】:

    由于您在配置中同时配置了 ClientId/Secret 和 3-token 凭据(API 用户名、密码、签名),因此无法正确检测到端点,从而使 REST API 具有更高的优先级。请删除客户端 ID / 密码配置,您应该会看到端点正确设置为 https://svcs.sandbox.paypal.com/AdaptivePayments/PaymentDetails

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-05
      • 1970-01-01
      • 2013-11-16
      • 1970-01-01
      相关资源
      最近更新 更多