PayPal 错误 520002:内部错误
我正在尝试实施自适应支付,但不断收到这个奇怪的错误。这是我要发送的请求:
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
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
clientDetails.ipAddress不应该是你的公共IP吗?
Shouldn't clientDetails.ipAddress be you public ip?
我自己解决了; 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.