PayPal 错误 520002:内部错误

发布于 2024-12-13 07:36:07 字数 1079 浏览 0 评论 0原文

我正在尝试实施自适应支付,但不断收到这个奇怪的错误。这是我要发送的请求:

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

I'm trying to implement adaptive payments but keep getting this weird error. Here's the request I'm sending:

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¤cyCode=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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

缱绻入梦 2024-12-20 07:36:07

clientDetails.ipAddress不应该是你的公共IP吗?

Shouldn't clientDetails.ipAddress be you public ip?

冷了相思 2024-12-20 07:36:07

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

I solved it myself; PayPal API displays JAVA lists as query parameters but in reality you have to pass arrays of parameters to make it work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文