小程序
小游戏
企业微信
微信支付
扫描小程序码分享
PHP开发的微信单品券接口,发券接口开发完了,核销里全场券是可以的,但是单品券就是无法核销
version加了 goods_detail参数也没问题 没有设置goods_tag这个参数
加了微信的WePayTS8客服 连发几天微信没人搭理我
现在付费找大咖解决此问题
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
部分请求参数:
array(10) {
["appid"]=> string(18) "wxbef6f6a400cd29be"
["mch_id"]=> string(10) "1575337941"
["nonce_str"]=> string(32) "rti054ccj92ug76swwfctty53stq2sei"
["body"]=> string(19) "真团优购-团购"
["version"]=> string(3) "1.0"
["detail"]=> array(1) {
["goods_detail"]=> string(91) "[{"goods_id":"222","quantity":1,"price":2800},{"goods_id":"442","quantity":1,"price":1000}]"
}
["out_trade_no"]=> string(16) "B720012694423915"
["total_fee"]=> int(4000)
["spbill_create_ip"]=> string(15) "127.0.0.1"
["auth_code"]=> string(18) "134705425650481315"
返回参数:
{ ["return_code"]=> string(7) "SUCCESS"
["return_msg"]=> string(2) "OK"
["nonce_str"]=> string(16) "YGRc7v8T7KzTZMig"
["sign"]=> string(32) "23788DDE2198FA1A0A0EB718033CD5E6"
["result_code"]=> string(7) "SUCCESS"
["openid"]=> string(28) "o_DBHuFO3fRrW--zEbxot46v2oD4"
["is_subscribe"]=> string(1) "Y"
["trade_type"]=> string(8) "MICROPAY"
["bank_type"]=> string(6) "OTHERS"
["total_fee"]=> string(4) "4000"
["fee_type"]=> string(3) "CNY"
["transaction_id"]=> string(28) "4200000601202007205509093663"
["attach"]=> object(SimpleXMLElement)#7 (0) { } ["time_end"]=> string(14) "20200720072750" ["cash_fee"]=> string(4) "4000" ["cash_fee_type"]=> string(3) "CNY" ["version"]=> string(3) "1.0" ["promotion_detail"]=> string(2) "{}" }
程序运行不报错,但是promotion_detail为空
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
楼主解决了吗
你好,你这边的无法核销。有没有报错?能否提供一下参数看看。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
部分请求参数:
array(10) {
["appid"]=> string(18) "wxbef6f6a400cd29be"
["mch_id"]=> string(10) "1575337941"
["nonce_str"]=> string(32) "rti054ccj92ug76swwfctty53stq2sei"
["body"]=> string(19) "真团优购-团购"
["version"]=> string(3) "1.0"
["detail"]=> array(1) {
["goods_detail"]=> string(91) "[{"goods_id":"222","quantity":1,"price":2800},{"goods_id":"442","quantity":1,"price":1000}]"
}
["out_trade_no"]=> string(16) "B720012694423915"
["total_fee"]=> int(4000)
["spbill_create_ip"]=> string(15) "127.0.0.1"
["auth_code"]=> string(18) "134705425650481315"
}
返回参数:
{ ["return_code"]=> string(7) "SUCCESS"
["return_msg"]=> string(2) "OK"
["appid"]=> string(18) "wxbef6f6a400cd29be"
["mch_id"]=> string(10) "1575337941"
["nonce_str"]=> string(16) "YGRc7v8T7KzTZMig"
["sign"]=> string(32) "23788DDE2198FA1A0A0EB718033CD5E6"
["result_code"]=> string(7) "SUCCESS"
["openid"]=> string(28) "o_DBHuFO3fRrW--zEbxot46v2oD4"
["is_subscribe"]=> string(1) "Y"
["trade_type"]=> string(8) "MICROPAY"
["bank_type"]=> string(6) "OTHERS"
["total_fee"]=> string(4) "4000"
["fee_type"]=> string(3) "CNY"
["transaction_id"]=> string(28) "4200000601202007205509093663"
["out_trade_no"]=> string(16) "B720012694423915"
["attach"]=> object(SimpleXMLElement)#7 (0) { } ["time_end"]=> string(14) "20200720072750" ["cash_fee"]=> string(4) "4000" ["cash_fee_type"]=> string(3) "CNY" ["version"]=> string(3) "1.0" ["promotion_detail"]=> string(2) "{}" }
程序运行不报错,但是promotion_detail为空
楼主解决了吗
你好,你这边的无法核销。有没有报错?能否提供一下参数看看。