康邦-小程序


发起支付

<p><strong>请求URI:</strong></p> <ul> <li><code>/appoint/pay</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET <code>AUTH</code></li> </ul> <p><strong>参数:</strong></p> <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;">appoint_id</td> <td style="text-align: left;">require</td> <td style="text-align: left;">int</td> <td>预约记录id</td> </tr> <tr> <td style="text-align: left;">pay_type</td> <td style="text-align: left;">require,in:0,1</td> <td style="text-align: left;">int</td> <td>支付方式:0=微信支付,1=余额支付</td> </tr> </tbody> </table> <ul> <li>只有audit_progress=1审核通过的订单可以发起支付</li> <li>余额支付成功时订单状态直接标记为已完成</li> <li>微信支付返回拉起支付所需的js参数</li> </ul> <p><strong>返回示例:</strong></p> <pre><code>{ &amp;quot;msg&amp;quot;: &amp;quot;请求成功&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;config&amp;quot;: {//拉起支付所需的js参数 &amp;quot;appId&amp;quot;: &amp;quot;wx9bf64f2752c86ab8&amp;quot;, &amp;quot;timeStamp&amp;quot;: &amp;quot;1713940984&amp;quot;, &amp;quot;nonceStr&amp;quot;: &amp;quot;6628a9f8141c6&amp;quot;, &amp;quot;package&amp;quot;: &amp;quot;prepay_id=wx24143921855110edcfc40c224fa3d90000&amp;quot;, &amp;quot;signType&amp;quot;: &amp;quot;MD5&amp;quot;, &amp;quot;paySign&amp;quot;: &amp;quot;8B8C231C27EE25437E034C7C747A1BB2&amp;quot; } }, &amp;quot;code&amp;quot;: 0 }</code></pre>

页面列表

ITEM_HTML