2013-03-26 109 views
2

看来最新的REST API只处理美元货币(尝试使用欧元货币,但出现错误“价值目前不受支持”。PAYPAL REST API和EURO货币

是否有人知道它是否即将推出或应该与以前的SDK? 当我很快说,这是2/3个月......

PS:我知道这是不是一个真正的开发问题,但贝宝认为计算器为community forum ...

更新时间: 我已经试过这test sample

如果我设置:

amount.setCurrency("EUR"); // instead of amount.setCurrency("USD"); 

我有这样的答案:

com.paypal.exception.HttpErrorException: Error code : 400 with response : 
{ 
"name":"VALIDATION_ERROR", 
"details": [ {"field":"transactions[0].amount.currency", 
       "issue":"Value is not supported at this time"} 
      ], 
"message":"Invalid request - see details", 
"information_link":"https://developer.paypal.com/docs/api/#VALIDATION_ERROR", 
"debug_id":"2aeb5d81964ce" 
} 
+0

您打算通过什么API调用或请求专门制作货币? – 2013-03-26 17:04:43

回答

5

这些API的这个时候目前只支持美元。我做了检查,并且有计划为其余货币增加额外的支持,但是这还没有生效。

编辑:截至07/31,您可以在我们的REST API中使用EUR(和其他)货币。他们也为更多的国家开放。有关更多详细信息,请参阅this page

+0

好的。新的API比旧的更容易理解和实施......对我来说太糟糕了^^。 – 2013-03-26 19:52:26

+0

欧元(和其他)现在可用。 – Robert 2013-08-04 13:13:24

+1

确实paypal的rest API不接受BRL吗?我收到了同样的错误,但是BRL在该列表中 – dietbacon 2015-12-07 16:40:40