https://api.mch.weixin.qq.com/pay/unifiedorder v2统一下单接口
第一次发起支付参数
{"nonce_str":"cp63a64cb6c5535","body":"正鲜生","out_trade_no":"20221224084903139933_690","total_fee":690,"spbill_create_ip":"182.122.253.52","notify_url":"https:\/\/gateway-cpmart-wx-api.cpgroupcloud.com\/pay\/wxnotify","appid":"wx097069c7e6cad60f","mch_id":"mch_id","sub_appid":"sub_appid","sub_mch_id":"sub_mch_id","sub_openid":"oslt45JdV-n_5wHBVJn41nFQtGq4","trade_type":"JSAPI","device_info":"328","attach":"111562623627265","sign":"e95e70c8a16a7eb1afce9a3cc2a29fa6"}
响应成功。
第二次发起支付参数
{"nonce_str":"cp63e9b53c2bf4d","body":"正鲜生","out_trade_no":"20221224084903139933_690","total_fee":690,"spbill_create_ip":"1.199.193.12","notify_url":"https:\/\/gateway-cpmart-wx-api.cpgroupcloud.com\/pay\/wxnotify","appid":"wx097069c7e6cad60f","mch_id":"mch_id","sub_appid":"sub_appid","sub_mch_id":"sub_mch_id","sub_openid":"oslt45EZreUBmpWzelNyJLFTMH5k","trade_type":"JSAPI","device_info":"328","attach":"111562623627265","sign":"c26fc55fde4ce2ab70a79e988e5c8851"}
返回
{"return_code":"SUCCESS","return_msg":"OK","result_code":"FAIL","err_code_des":"201 商户订单号重复","err_code":"INVALID_REQUEST","mch_id":"mch_id","appid":"appid","sub_mch_id":"sub_mch_id","sub_appid":"wxc1e9fd54cae880cd","device_info":"328","nonce_str":"Ror2WQTEfAl3Y40q","sign":"DF74371BCF7BFDE7FFC65B0B16F8B676"}
是在同一个端发起的支付
请问报“201 商户订单号重复”的判断依据是什么
out_trade_no 编号重复了, 每次下单都需要 更新这个参数, 不能重复使用