最末尾的patch写错了,应该这么写: ->patch(['json' => $data]); PS: 建议安装IDE提示包 https://packagist.org/packages/iwechatpay/openapi ,请求数据结构一目了然 [图片]
调用修改批次预算API,总是报输入源“/uri_template/modify_budget ?有没有遇到这个问题的小伙伴 需求帮助 调用调用修改批次预算API 返回结果总是报输入源“/uri_template/modify_budget 代码: [图片] 结果: message: "Client error: `PATCH https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/1224640000000014/budget` resulted in a `400 Bad Request` response:\n{\"code\":\"PARAM_ERROR\",\"detail\":{\"location\":\"uri_template\",\"value\":\"\"},\"message\":\"输入源“/uri_template/modify_budget (truncated...)\n" modify_budget_request_no这个参数不对么
2023-03-02把「公众号」及「小程序」绑定到同一个账号的「开放平台」open.weixin.qq.com 上,这样就能在公众号环境下及小程序环境下,通过同一个union_id识别出是不是同一个「微信用户」,如果是同一个,则分别用不同的openid去唤醒「微信收银台」。
商家微信支付问题微信公众号微信支付下单可以同步到小程序微信支付吗?这样就不需要对接公众号支付另外又要对接小程序微信支付
2023-02-22请求头上的 Content-type: multipart/form-data; boundary=“xxxx” 多了俩quotes, boundary的值,如果用了quote,那么请求body中的boundary 也要有
微信支付V3 图片上传 输入源“/file”映射到字段“图片文件”必填性规则校验失败[图片]
2023-02-21可能的原因是 meta element 的content-type 先于 content-disposition,从响应的 sign_information 明显可以看到,服务端没取到meta字段的JSON字符串
微信支付V3 图片上传(营销专用) 401 SIGN_ERROR 签名错误{ "media_url": null, "ResultCode": { "Success": false, "StateCode": "401", "ErrorCode": "SIGN_ERROR", "ErrorMessage": "签名错误", "Solution": "请检查签名参数和方法是否都符合签名算法要求", "Additional": "{\"code\":\"SIGN_ERROR\",\"detail\":{\"detail\":{\"issue\":\"sign not match\"},\"field\":\"signature\",\"location\":\"authorization\",\"sign_information\":{\"method\":\"POST\",\"sign_message_length\":69,\"truncated_sign_message\":\"POST\\n/v3/marketing/favor/media/image-upload\\n1676886831\\nt2itcnxq.xym\\n\\n\",\"url\":\"/v3/marketing/favor/media/image-upload\"}},\"message\":\"错误的签名,验签失败\"}" }, "VerifySignSuccess": null} [图片] [图片] [图片]
2023-02-20建议再安装一个 https://packagist.org/packages/iwechatpay/openapi IDE提示包,捋代码形如下图,带提示: [图片]
查询商家券详情API 查询后报错 为什么?Client error: `GET https://api.mch.weixin.qq.com/v3/marketing/busifavor/stocks/` resulted in a `404 Not Found` response 404 Not Found [图片]
2023-02-15谢邀,数据结构可看这里: https://thenorthmemory.github.io/wechatpay-openapi/#/APIv2%E2%88%99%E5%9F%BA%E7%A1%80%E6%94%AF%E4%BB%98/post_pay_unifiedorder 网页加载文件较多需要等待几分钟 <?xml version="1.0" encoding="UTF-8"?> <xml> <version>1.0</version> <profit_sharing>N</profit_sharing> <appid>wxd678efh567hg6787</appid> <mch_id>1230000109</mch_id> <device_info>013467007045764</device_info> <nonce_str>5K8264ILTKCH16CQ2502SI8ZNMTM67VS</nonce_str> <sign>C380BEC2BFD727A4B6845133519F3AD6</sign> <sign_type>MD5</sign_type> <body>腾讯充值中心-QQ会员充值</body> <detail><![CDATA[{"cost_price":1,"receipt_id":"wx123","goods_detail":[{"goods_id":"商品编码","wxpay_goods_id":"1001","goods_name":"iPhone6s 16G","quantity":1,"price":1},{"goods_id":"商品编码","wxpay_goods_id":"1002","goods_name":"iPhone6s 32G","quantity":1,"price":1}]}]]></detail> <attach>深圳分店</attach> <out_trade_no>20150806125346</out_trade_no> <fee_type>CNY</fee_type> <total_fee>88</total_fee> <spbill_create_ip>123.12.12.123</spbill_create_ip> <time_start>20091225091010</time_start> <time_expire>20091227091010</time_expire> <goods_tag>WXG</goods_tag> <notify_url>http://www.weixin.qq.com/wxpay/pay.php</notify_url> <trade_type>JSAPI</trade_type> <product_id>12235413214070356458058</product_id> <limit_pay>no_credit</limit_pay> <openid>oUpF8uMuAJO_M2pxb1Q9zNjWeS6o</openid> <receipt>Y</receipt> <scene_info><![CDATA[{"store_info" : {"id": "SZTX001","name": "腾大餐厅","area_code": "440305","address": "科技园中一路腾讯大厦" }}]]></scene_info> </xml>
h5支付 api v2 没有profit_sharing分帐请问要怎么传profit_sharing. https://pay.weixin.qq.com/wiki/doc/api/H5_sl.php?chapter=9_20&index=1
2023-02-01谢邀,用如下代码撸起 var a = [ { "_id": "MK-BLX", "name": "菠萝熊", "size": "小码", "x": [ { "qty": 20, "type": "WV" }, { "qty": 20, "type": "DV" } ] }, { "_id": "MK-BLX", "name": "菠萝熊", "size": "标准", "x": [ { "qty": 100, "type": "WV" }, { "qty": 100, "type": "DV" } ] }, { "_id": "MK-DX2", "name": "黛西套件羊羔绒", "size": "标准", "x": [ { "qty": 603, "type": "WV" }, { "qty": 623, "type": "DV" } ] } ]; var my = a.map(({_id, name, size, x}) => ({_id,name,size,...x.reduce((n, {type, qty}) => (n[type] = qty, n), {})})); console.info(my); [ { _id: 'MK-BLX', name: '菠萝熊', size: '小码', WV: 20, DV: 20 }, { _id: 'MK-BLX', name: '菠萝熊', size: '标准', WV: 100, DV: 100 }, { _id: 'MK-DX2', name: '黛西套件羊羔绒', size: '标准', WV: 603, DV: 623 } ]
aggregate下如何改变下列数据格式?[ { "_id": "MK-BLX", "name": "菠萝熊", "size": "小码", "x": [ { "qty": 20, "type": "WV" }, { "qty": 20, "type": "DV" } ] }, { "_id": "MK-BLX", "name": "菠萝熊", "size": "标准", "x": [ { "qty": 100, "type": "WV" }, { "qty": 100, "type": "DV" } ] }, { "_id": "MK-DX2", "name": "黛西套件羊羔绒", "size": "标准", "x": [ { "qty": 603, "type": "WV" }, { "qty": 623, "type": "DV" } ] } ] 上面是我通过aggregate目前实现的数据结果,但是我想最终效果是下面的格式。应该如何操作。 [ { "_id": "MK-BLX", "name": "菠萝熊", "size": "小码", "WV": 20, "DV": 20 }, { "_id": "MK-BLX", "name": "菠萝熊", "size": "标准", "WV": 100, "DV": 100 }, { "_id": "MK-DX2", "name": "黛西套件羊羔绒", "size": "标准", "WV": 603, "DV": 623 } ]
2023-01-16https://pay.weixin.qq.com/index.php/public/cms/content_detail?platformType=0&lang=zh&id=126073 企业付款到零钱产品调整通知 微信支付商户及微信支付合作伙伴: 为进一步防范交易风险,预计自2023年1月1日起,我司将逐步调整“企业付款到零钱”的出资额度至单笔500元。同时,我司已升级推出“商家转账到零钱”,如贵司有业务需求,建议通过“商户平台 - 产品中心”申请开通并使用“商家转账到零钱”功能, 以避免对贵司业务造成影响。后续原“企业付款到零钱”功能因运营调整将逐步下线, 感谢你的理解与配合。 财付通支付科技有限公司 2022年11月30日
微信支付已拦截大额付款 高风险怎么解决?哪位大神知道这个高风险怎么解决啊👇 [图片]
2023-01-14https://beian.miit.gov.cn/ [图片]
开通H5支付的业务里,支付域名和网站域名的ICP备案截图怎么处理?开通H5支付的业务里,最后一项要求:必须上传支付域名和网站域名的ICP备案截图;可是H5支付页面哪里有备案呢? 可是[图片]
2023-01-14{\"mchid\"\n" 从日志提示上看,你初始化Builder::factory([])商户号 可能没取到,另外建议装个dev包,IDE就带提示了 https://github.com/TheNorthMemory/wechatpay-openapi/blob/master/src/V3/Pay/Transactions/Jsapi.php#L17-L58 public function post(array $options = [ 'json' => [ 'appid' => 'wxd678efh567hg6787', 'mchid' => '1230000109', 'description' => 'Image形象店-深圳腾大-QQ公仔', 'attach' => '自定义数据', 'out_trade_no' => '1217752501201407033233368018', 'amount' => [ 'total' => 100, 'currency' => 'CNY', ], 'time_expire' => '2018-06-08T10:34:56+08:00', 'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php', 'goods_tag' => 'WXG', 'limit_pay' => ['string'], 'support_fapiao' => true, 'detail' => [ 'cost_price' => 608800, 'invoice_id' => '微信123', 'goods_detail' => [[ 'merchant_goods_id' => '商品编码', 'wechatpay_goods_id' => '1001', 'goods_name' => 'iPhoneX 256G', 'quantity' => 1, 'unit_price' => 828800, ],], ], 'scene_info' => [ 'payer_client_ip' => '14.23.150.211', 'device_id' => '013467007045764', 'store_info' => [ 'id' => '0001', 'name' => '腾讯大厦分店', 'area_code' => '440305', 'address' => '广东省深圳市南山区科技中一道10000号', ], ], 'payer' => [ 'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o', ], ], ]): ResponseInterface;
使用的官方sdk v3下单的报错签名错误,请问签名加在哪里[图片]Client error: `POST https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi` resulted in a `401 Unauthorized` response: {"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_ (truncated...) 401 Unauthorized {"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":386,"truncated_sign_message":"POST\n/v3/pay/transactions/jsapi\n1673516732\nBmDeMJd2KTv6g0XqySrv5HlSt6y7amWk\n{\"mchid\"\n","url":"/v3/pay/transactions/jsapi"}},"message":"签名错误,请检查后再试"} #0
2023-01-13