两天前,我们的paypal集成出现了问题。不幸的是,尝试联系PayPal支持已经证明没有帮助(2天内没有回复),所以我会试试运气,在这里。
请求令牌(curl https://api.paypal.com/v1/oauth2/token -H“接受: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):
谢谢!
答案 0 :(得分:1)
这是目前正在研究的内容。如果您尚未使用PayPal MTS打开机票,我建议您使用Technical Support打开机票,以便将问题添加到示例中。一旦问题得到解决,您也会收到通知。
编辑:自格林威治标准时间上午04:12(2013年3月31日)起,现已解决此问题。