我试图实现自适应支付,但不断得到这个奇怪的错误。这是我发送的请求:
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
不应该。你的公共ip是?
我自己解决了;PayPal API将JAVA列表显示为查询参数,但实际上您必须传递参数数组才能使其工作。