3

两天前,我们的贝宝集成出现了问题。不幸的是,尝试联系贝宝支持已被证明无济于事(2 天内没有回复),所以我会在这里试试运气。

请求令牌(curl https://api.paypal.com/v1/oauth2/token -H "Accept: application/json" -H "Accept-Language: en_US" -u "****:**** " -d "grant_type=client_credentials") 开始总是返回一个空响应,以及一个 500 错误。

请注意,同样适用于 api.sandbox.paypal.com 和沙箱凭据。

我仔细检查了我们的凭据,它们很好。还要注意,我使用什么凭据并不重要,它总是返回相同的 - 500。

这是 curl ... -v; 的输出。看起来您有内部服务器错误,如 500 所示:

* About to connect() to api.paypal.com port 443 (#0)
* Trying 173.0.88.98...
* connected
* Connected to api.paypal.com (173.0.88.98) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: /usr/ssl/certs/ca-bundle.crt
CApath: none
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Request CERT (13):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: C=US; ST=California; L=San Jose; O=PayPal, Inc.; OU=PayPal Production; CN=api.paypal.com
* start date: 201
* expire date: 201
* subjectAltName: api.paypal.com matched
* issuer: C=U
* SSL certificate verify ok.
* Server auth using Basic with user '****'
> POST /v1/oauth2/token HTTP/1.1
> Authorization: Basic ****
> User-Agent: curl/7.27.0
> Host: api.paypal.com
> Accept: application/json
> Accept-Language: en_US
> Content-Length: 29
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 29 out of 29 bytes
* additional stuff not fine /usr/src/ports/curl/curl-7.27.0-1/src/curl-7.27.0/lib/transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 500 Internal Server Error
< Server: Apache-Coyote/1.1
< Date: Thu, 28 Mar 2013 15:59:53 GMT
< Content-Length: 0
< Connection: close
<
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

谢谢!

4

1 回答 1

1

这是目前正在调查的事情。如果您尚未使用 PayPal MTS 开票,我建议您通过Technical Support开票,以便您的问题可以添加到示例中。一旦问题得到解决,您也会收到通知。

编辑:这已在格林威治标准时间上午 04:12(2013 年 3 月 31 日)得到解决。

于 2013-03-29T17:43:07.797 回答