开发app支付,调用v3的统一下单接口,传参如下:
{
"appid" : "wx----------c89",
"mchid": "15------1",
"description" :"商品",
"out_trade_no":"ZFCS2021011300000007",
"time_expire": "2021-01-20T11:49:12.841+08:00",
"attach" : "560",
"notify_url" : "http://-------------/app/wx_pay/payNotify.do",
"amount" : {
"total":"1900000",
"currency":"CNY"
}
}
返回值确说金额无法映射到对应字段
{"code":"PARAM_ERROR","detail":{"location":"body","value":"1900000"},"message":"无法将 JSON 输入源“/body/amount/total”映射到目标字段“总金额”中,此字段需要一个合法的 64 位有符号整数"}
请问是哪的问题?
这写的很清楚吧,total字段要int类型的,你传的是string