Paypal 贝宝退款交易被拒绝

Paypal 贝宝退款交易被拒绝,paypal,Paypal,我在我的网站上使用PayPal REST API进行退款选择。 我用贝宝测试帐户下订单,所有这些都很好,但当我试图退款时,我得到了“交易拒绝”。我尝试全额退款,部分退款,货币兑换。。。什么都帮不了我。我也尝试新订单和一些旧订单(2天前)相同。 这是我跑的和得到的 curl -v https://api.sandbox.paypal.com/v1/payments/sale/*******/refund -H 'Content-Type:application/json' -H 'Authori

我在我的网站上使用PayPal REST API进行退款选择。 我用贝宝测试帐户下订单,所有这些都很好,但当我试图退款时,我得到了“交易拒绝”。我尝试全额退款,部分退款,货币兑换。。。什么都帮不了我。我也尝试新订单和一些旧订单(2天前)相同。 这是我跑的和得到的

curl -v https://api.sandbox.paypal.com/v1/payments/sale/*******/refund -H 'Content-Type:application/json'  -H 'Authorization: Bearer ***********' -d '{"amount":{"total":"5.00","currency":"JPY"}}'
* About to connect() to api.sandbox.paypal.com port 443 (#0)
*   Trying 173.0.82.78...
* Connected to api.sandbox.paypal.com (173.0.82.78) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS: client certificate not found (nickname not specified)
* SSL connection using SSL_RSA_WITH_3DES_EDE_CBC_SHA
* Server certificate:
*   subject: CN=api.sandbox.paypal.com,OU=PayPal Production,O="PayPal, Inc.",L=San     Jose,ST=California,C=US
*   start date: Dec 06 00:00:00 2012 GMT
*   expire date: Dec 06 23:59:59 2016 GMT
*   common name: api.sandbox.paypal.com
*   issuer: CN=VeriSign Class 3 Secure Server CA - G3,OU=Terms of use at https://    www.verisign.com/rpa (c)10,OU=VeriSign Trust Network,O="VeriSign, Inc.",C=US
> POST /v1/payments/sale/**********/refund HTTP/1.1
> User-Agent: curl/7.29.0
> Host: api.sandbox.paypal.com
> Accept: */*
> Content-Type:application/json
> Authorization: Bearer ******************
> Content-Length: 44
> 
* upload completely sent off: 44 out of 44 bytes
< HTTP/1.1 400 Bad Request
< Server: Apache-Coyote/1.1
< Date: Sun, 25 Aug 2013 21:35:55 GMT
< Connection: close
< PayPal-Debug-Id: 6ccd19f66d117
< Content-Type: application/json
< Content-Length: 171
< Connection: close
< 
* Closing connection 0
{"name":"TRANSACTION_REFUSED","message":"{0}","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#TRANSACTION_REFUSED","debug_id":"6ccd19f66d117"}
curl-vhttps://api.sandbox.paypal.com/v1/payments/sale/*******/退款-H'内容类型:application/json'-H'授权:持票人*********'-d'{“金额”:{“总额”:“5.00”,“货币”:“日元”}
*即将连接()到api.sandbox.paypal.com端口443(#0)
*正在尝试173.0.82.78。。。
*已连接到api.sandbox.paypal.com(173.0.82.78)端口443(#0)
*使用certpath:sql:/etc/pki/nssdb初始化NSS
*CAfile:/etc/pki/tls/certs/ca-bundle.crt
卡帕斯:没有
*NSS:找不到客户端证书(未指定昵称)
*使用SSL\u RSA\u和\u 3DES\u EDE\u CBC\u SHA的SSL连接
*服务器证书:
*主题:CN=api.sandbox.paypal.com,OU=paypal Production,O=“paypal,Inc.”,L=圣何塞,ST=California,C=US
*开始日期:2012年12月06日00:00:00 GMT
*到期日期:2016年12月06日23:59:59 GMT
*通用名称:api.sandbox.paypal.com
*发行人:CN=VeriSign Class 3安全服务器CA-G3,OU=https://www.VeriSign.com/rpa(c)10上的使用条款,OU=VeriSign Trust Network,O=“VeriSign,Inc.”,c=US
>POST/v1/付款/销售/************/退款HTTP/1.1
>用户代理:curl/7.29.0
>主持人:api.sandbox.paypal.com
>接受:*/*
>内容类型:application/json
>授权:持票人******************
>内容长度:44
> 
*上传已完全发送:44个字节中的44个
那么问题出在哪里呢?我查了一下PayPal给我的链接,他根本没有帮我。
我需要尽快让退款选项生效。

原始交易是以日元(JPY)进行的,但您的PayPal帐户中没有日元余额——因此,您以日元进行的所有交易都处于“无人认领”状态。登录卖家帐户()并进入个人资料->我的钱。在“更多”下(贝宝余额旁),单击“货币”。然后,在选择新货币下拉列表下,选择日元,然后单击添加货币。您之前进行的交易应在几分钟内开始汇入帐户,之后您应能够处理退款