【发布时间】:2014-02-13 09:25:14
【问题描述】:
我正在尝试编写代码来为自适应付款进行部分退款。
我读过https://developer.paypal.com/docs/classic/api/adaptive-payments/Refund_API_Operation/
这就是我的请求的样子
curl -s --insecure
-H "X-PAYPAL-SECURITY-USERID: api_username"
-H "X-PAYPAL-SECURITY-PASSWORD: api_password"
-H "X-PAYPAL-SECURITY-SIGNATURE: api_signature"
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV"
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV"
-H "X-PAYPAL-APPLICATION-ID: your_app_id "
https://svcs.sandbox.paypal.com/AdaptivePayments/Refund -d
"requestEnvelope.errorLanguage=en_US
&requestEnvelope.detailLevel=ReturnAll
&transactionId=xxxxxxxxxx
¤cyCode=USD
&receiverList.receiver(0).amount=10.00"
原始交易金额 > 10.00,我正在尝试部分退还这笔款项
响应基本上是“内部错误”,错误代码为 520002
有什么想法吗?
【问题讨论】:
标签: paypal paypal-sandbox paypal-adaptive-payments