车享宝


预充值 微信支付

<h5>简要描述</h5> <ul> <li>预充值 微信支付</li> </ul> <h5>请求URL</h5> <ul> <li><code>/wallet/balance/wx/recharge</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">openId</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>openId 当是微信公众号和微信小程序时,必传</td> </tr> <tr> <td style="text-align: left;">amount</td> <td style="text-align: left;">是</td> <td style="text-align: left;">double</td> <td>充值金额</td> </tr> <tr> <td style="text-align: left;">comeFrom</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>来源 2微信公众号 4app 5天天车宝也就是h5 1微信小程序</td> </tr> </tbody> </table> <h5>返回示例</h5> <ul> <li>app结果 <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;package&amp;quot;: &amp;quot;Sign=WXPay&amp;quot;, &amp;quot;appid&amp;quot;: &amp;quot;wx4a9b903748b95cf9&amp;quot;, &amp;quot;sign&amp;quot;: &amp;quot;0CCC1A1D5C1B3F81594D5BA058BD6878F14F9C11046C11DBDCC5D8F571966188&amp;quot;, &amp;quot;partnerid&amp;quot;: &amp;quot;1603820817&amp;quot;, &amp;quot;prepayid&amp;quot;: &amp;quot;wx14104434327735f1cfc01c87f0e94c0000&amp;quot;, &amp;quot;noncestr&amp;quot;: &amp;quot;OTE4BTSRddu6EfEtpcVakRhQ8aAuB6hG&amp;quot;, &amp;quot;timestamp&amp;quot;: &amp;quot;1634179474&amp;quot; }, &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot; }</code></pre></li> <li>公众号结果 <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;timeStamp&amp;quot;: &amp;quot;1634179757&amp;quot;, &amp;quot;package&amp;quot;: &amp;quot;prepay_id=wx1410491739890493f864318d6cf33d0000&amp;quot;, &amp;quot;paySign&amp;quot;: &amp;quot;AB45AC6AD9F3B99BE64EAABF6554A56197F4DB2D510E2727E601402CD57245B4&amp;quot;, &amp;quot;appId&amp;quot;: &amp;quot;wxdc20db25bee77670&amp;quot;, &amp;quot;signType&amp;quot;: &amp;quot;HMAC-SHA256&amp;quot;, &amp;quot;nonceStr&amp;quot;: &amp;quot;izugagaWC7mExofm4DuZothIiu8N04re&amp;quot; }, &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot; }</code></pre></li> </ul>

页面列表

ITEM_HTML