paypal android VALIDATION_ERROR(statusCode:400,exception:Bad Request)
来源:互联网 发布:sql中join的用法例子 编辑:程序博客网 时间:2024/06/06 14:15
错误信息
paypal支付报错
0-09 18:59:04.944 24078-28376/com.game.test E/paypal.sdk: request failure with http statusCode:400,exception:Bad Request10-09 18:59:04.945 24078-28376/com.game.test E/paypal.sdk: request failed with server response:{"name":"VALIDATION_ERROR","details":[{"field":"transactions.item_list.items","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 and currency which is a valid ISO Currency Code"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"88d0297d2aff0"}10-09 18:59:04.945 24078-24078/com.game.test E/paypal.sdk: VALIDATION_ERROR
错误解决
float account=0.99f; String accountString=account+""; PayPalItem[] items = { new PayPalItem("change", 1, new BigDecimal(accountString), "USD",sku), }; BigDecimal subtotal = PayPalItem.getItemTotal(items);
其实问题就出在account上,account是一个float数据,但是应该放一个string数据,放float会报错。
阅读全文
0 0
- paypal android VALIDATION_ERROR(statusCode:400,exception:Bad Request)
- Android http post 文件 bad request 400
- BUG:HTTP 400错误(Bad request)
- nginx 400 Bad Request
- http 400 Bad Request
- 400 bad request
- NetworkError: 400 Bad Request
- django -- Bad Request (400)
- 400 Bad Request
- ajax 400 bad request
- 400 Bad Request
- Error 400 Bad Request
- 400 (bad request) post
- 400 bad request 解决方法
- 400 : bad Request
- yii Bad Request (#400)
- "NetworkError: 400 Bad Request
- 400 Bad Request
- Android 判断网络状态
- java中equals方法的用法以及==的用法
- 斯巴鲁 EPC数据采集
- javascript 原型继承(第四篇)---几种继承方式
- Oracle关于位图索引的创建与应用
- paypal android VALIDATION_ERROR(statusCode:400,exception:Bad Request)
- JS 页面加载触发事件 document.ready和window.onload的区别
- 转载 linux c 文件锁定
- 程序员语录
- Windows API 摘要
- 阅后即焚!9.27 喀麦隆网络中断这么敏感的事得悄悄的说 | 埃文大咖说
- MYSQL学习笔记二:索引
- HDOJ 2088 Box of Bricks
- 触摸java常量池