【发布时间】:2013-10-31 22:48:27
【问题描述】:
我正在调用AdaptivePaymentService.PaymentDetails() 来获取付款的付款详细信息,它会抛出一个 ConnectionException 指示 404。为了调试问题,我下载了 AdaptivePayment SDK 的源代码以及核心 SDK 和单步执行代码,特别是在HttpRequest 在Paypal.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