PayPal错误520002:内部错误

时间:2011-10-31 15:09:54

标签: paypal paypal-sandbox

我正在尝试实施自适应付款,但仍然会遇到这种奇怪的错误。这是我发送的请求:

POST https://svcs.sandbox.paypal.com/AdaptivePayments/Pay HTTP/1.1
X-PAYPAL-SECURITY-USERID: kemal._1311606752_biz_api1.gmail.com
X-PAYPAL-SECURITY-PASSWORD: doesntmatter
X-PAYPAL-SECURITY-SIGNATURE: AFcWxV21C7fd0v3bYYYRCpSSRl31AeRGLhnzbfOKg7aJ9c5g0S5x4aMh
X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T
X-PAYPAL-RESPONSE-DATA-FORMAT: JSON
X-PAYPAL-REQUEST-DATA-FORMAT: NVP
Content-Type: application/x-www-form-urlencoded
Content-Length: 514

actionType=PAY&clientDetails.applicationId=test&clientDetails.ipAddress=127.0.0.1&senderEmail=buyer_1320073183_per%40gmail.com&receiverList.receiver%280%29.email=seller_1320073277_biz%40gmail.com&receiverList.receiver%280%29.amount=588&cancelUrl=http%3A%2F%2Fpay.dev%2Fcancel&currencyCode=EUR&feesPayer=EACHRECEIVER&ipnNotificationUrl=http%3A%2F%2Fpay.dev%2Fipn&returnUrl=http%3A%2F%2Fpay.dev%2Freturn&requestEnvelope.detailLevel=ReturnAll&requestEnvelope.errorLanguage=en_US&reverseAllParallelPaymentsOnError=true

2 个答案:

答案 0 :(得分:0)

不应该是clientDetails.ipAddress你公开ip吗?

答案 1 :(得分:0)

我自己解决了; PayPal API将JAVA列表显示为查询参数,但实际上您必须传递参数数组才能使其正常工作。