V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
alexloading
V2EX  ›  问与答

有做微信扫码支付的吗??求帮忙

  •  
  •   alexloading · 2016-09-21 23:43:29 +08:00 · 1067 次点击
    这是一个创建于 2798 天前的主题,其中的信息可能已经有所发展或是发生改变。

    用的是模式 2 产生二维码扫码支付,在微信扫码-统一下单 Api, 有一个detail字段,不管怎么传在支付页面都无法展示商品详情。

    传的 xml:

    <xml>
        <appid>
            <![CDATA[wx4ff6f323233]]>
        </appid>
        <body>
            <![CDATA[测试]]>
        </body>
        <detail>
            <![CDATA[{"goods_detail":[ { "goods_id":"iphone6s_16G", "goods_name":"iPhone6s 16G", "quantity":1, "price":528800, "goods_category":"123456", "body":"苹果手机" }, { "goods_id":"iphone6s_32G", "goods_name":"iPhone6s 32G", "quantity":1, "price":608800, "goods_category":"123789", "body":"苹果手机" } ] }]]>
        </detail>
        <mch_id>1348907201</mch_id>
        <nonce_str>
            <![CDATA[2e3217a27a12f4643e9b38ed53420bab]]>
        </nonce_str>
        <notify_url>
            <![CDATA[http://112.21.123.46/pay]]>
        </notify_url>
        <out_trade_no>20160903561086</out_trade_no>
        <sign>
            <![CDATA[64FDA5684ADB3C1BDAF0C1BDC94E273B]]>
        </sign>
        <spbill_create_ip>
            <![CDATA[112.163.212.236]]>
        </spbill_create_ip>
        <total_fee>1</total_fee>
        <trade_type>
            <![CDATA[NATIVE]]>
        </trade_type>
    </xml>
    

    查了很多文档,都没有解决这个问题??我怀疑是不是扫码支付“ Native ”方式不支持展示商品详情。求大神们解答。

    1 条回复    2016-10-04 20:04:25 +08:00
    cutiekiki
        1
    cutiekiki  
       2016-10-04 20:04:25 +08:00
    最后解决了吗 我也遇到了这个问题 网上找的 demo 都还是 detail 字段类型为 string 的老 demo 。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1385 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:32 · PVG 01:32 · LAX 10:32 · JFK 13:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.