2013-08-25 127 views
-1

我在我的網站上使用PayPal REST API進行退款選項。 我使用PayPal測試帳戶訂購所有工作都很好,但是當我嘗試退款時,我收到「交易被拒絕」。我嘗試退還全部金額,部分金額,貨幣變化......沒有任何幫助。我也嘗試用新訂單和一些較舊的訂單(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"} 

那麼什麼能問題?我檢查了關於PayPal給我的鏈接,他根本沒有幫我。 我需要儘快完成退款選項。

回答

1

原來的交易,日元(JPY)運行,但你沒有在您的PayPal賬戶餘額日元 - 因此,所有你在日元運行的事務都坐在「無人認領」的狀態。登錄到賣家的賬戶(https://www.sandbox.paypal.com),並轉到配置文件 - >我的錢。在(旁邊PayPal餘額),單擊貨幣。然後,根據選擇新的貨幣下拉,選擇日元並單擊添加貨幣。您之前進行的交易應在幾分鐘內開始匯入帳戶,之後您應該可以處理退款。