【发布时间】:2014-04-26 23:18:31
【问题描述】:
我正在尝试使用 paypal rest api(通过使用信用卡 ID)创建金额 19.50 的直接付款,但失败了。我收到以下错误:
异常:访问时得到 Http 响应代码 400 https://api.sandbox.paypal.com/v1/payments/payment.
{"name":"VALIDATION_ERROR","details":[{"field":"transactions[0].item_list.items[0].price","issue":"Currency amount must be non-negative number, may optionally contain exactly 2 decimal places separated by '.', optional thousands separator ',', limited to 7 digits before the decimal point"}
我想知道像 10.00、15.00 等这样的整数都可以正常工作。这是我的示例代码:
我尝试了一些随机浮点数,如 2.5、3.5 等,但一直都出现同样的错误。这是paypal限制浮动金额不能用吗?
我正在使用沙盒模式。
【问题讨论】: