收藏
回答

h5支付 api v2 没有profit_sharing分帐

回答关注问题邀请回答
收藏

2 个回答

  • 北望沣渭
    北望沣渭
    2023-02-01

    谢邀,数据结构可看这里: 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>
    
    2023-02-01
    有用
    回复
  • 大山
    大山
    2023-02-01

    接口文档:https://pay.weixin.qq.com/wiki/doc/api/allocation.php?chapter=26_1

    2023-02-01
    有用
    回复 1
    • Alex
      Alex
      2023-02-01
      这个知道,问题是V2的没有profit_sharing这个参数传
      2023-02-01
      回复
登录 后发表内容