小程序
小游戏
企业微信
微信支付
扫描小程序码分享
{"code":"PARAM_ERROR","message":"参数格式错误","detail":{"field":"#/properties/amount","issue":"与ALLOF schema不符","location":"body"}}
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,你这边调用的具体是哪个V3接口。请贴出完整的请求和返回参数。谢谢。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
接口地址
https://api.mch.weixin.qq.com/hk/v3/transactions/native
请求参数
{
"sp_mchid": "104385496",
"sub_mchid": "373851135",
"out_trade_no": "20150806125346",
"merchant_category_code": "1011",
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "NATIVE",
"amount": {
"total": 2500,
"currency": "CNY"
},
"attach": "支付测试",
"description": "NATIVE支付测试",
"goods_tag": "WXG",
"detail": {
"cost_price": 2500,
"receipt_id": "1234",
"goods_detail": [
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s16G",
"quantity": 1,
"price": 2500
}
]
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001",
"name": "tencent street",
"address": "广东省深圳市南山区科技中一道10000号"
响应报文
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,你这边调用的具体是哪个V3接口。请贴出完整的请求和返回参数。谢谢。
接口地址
https://api.mch.weixin.qq.com/hk/v3/transactions/native
请求参数
{
"sp_mchid": "104385496",
"sub_mchid": "373851135",
"out_trade_no": "20150806125346",
"merchant_category_code": "1011",
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "NATIVE",
"amount": {
"total": 2500,
"currency": "CNY"
},
"attach": "支付测试",
"description": "NATIVE支付测试",
"goods_tag": "WXG",
"detail": {
"cost_price": 2500,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s16G",
"quantity": 1,
"price": 2500
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001",
"name": "tencent street",
"address": "广东省深圳市南山区科技中一道10000号"
}
}
}
响应报文
{"code":"PARAM_ERROR","message":"参数格式错误","detail":{"field":"#/properties/amount","issue":"与ALLOF schema不符","location":"body"}}