充值
<p><strong>简要描述:</strong> </p>
<ul>
<li>充值</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/publicinterface/interface/recharge</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>get</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 style="text-align: left;">说明</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">recharge_money</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">decimal</td>
<td style="text-align: left;">充值</td>
</tr>
<tr>
<td style="text-align: left;">pay_way</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">integer</td>
<td style="text-align: left;">支付方式</td>
<td>1、支付宝支付 2、微信支付 4、咕啦钱包</td>
</tr>
<tr>
<td style="text-align: left;">way_type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">支付场景</td>
<td>"NATIVE" => "微信扫码支付","JSAPI" => "微信公众号支付","APP" => "微信APP支付","PAGE" => "支付宝扫码支付","WAP" => "支付宝H5支付","APP" => "支付宝APP支付" ,"GLC"=>"咕啦钱包二维码支付"</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>不同场景不同方案
微信扫码支付:
{&quot;code&quot;:0,
&quot;msg&quot;:&quot;生成微信订单成功&quot;,
&quot;result&quot;:{
&quot;appid&quot;:&quot;wx65da375080cf60f2&quot;,
&quot;code_url&quot;:&quot;weixin://wxpay/bizpayurl?pr=C2cZ9Ux&quot;, //二维码链接
&quot;mch_id&quot;:&quot;1483116202&quot;,
&quot;nonce_str&quot;:&quot;ppW0hcGqQmCEhPpl&quot;,
&quot;prepay_id&quot;:&quot;wx201706261727070d3c0fdd320119183427&quot;,
&quot;result_code&quot;:&quot;SUCCESS&quot;,
&quot;return_code&quot;:&quot;SUCCESS&quot;,
&quot;return_msg&quot;:&quot;OK&quot;,
&quot;sign&quot;:&quot;26B8493794CC6CF71C871E9E99F4297E&quot;,
&quot;trade_type&quot;:&quot;NATIVE&quot;,
&quot;order_code&quot;:&quot;GLCPLT170627T0000003&quot;
}
}
微信公众号支付直接跳转无返回值
支付宝支付直接跳转无返回值
咕啦钱包二维码支付
{
&quot;code&quot;: 600,
&quot;msg&quot;: &quot;下单成功&quot;,
&quot;result&quot;: {
&quot;create_time&quot;:&quot;2017-08-09 12:10:00&quot;,
&quot;order_code&quot;: &quot;GLCDLT170821T0000007&quot;,
&quot;bet_money&quot;: 1,
&quot;pay_url&quot;: &quot;http://olewx.goodluckchina.net/op/toOauth.html?model=00&amp;custNo=comorange&amp;attach=GLCDLT170821T0000007&amp;money=1&amp;type=api&amp;first=y&amp;orderId=cb7d40c1768e4dd2adc4c3b9bf38a0c9&amp;callBackUrl=http://php.javaframework.cn/api/pay/qb-pay/qb-callback&quot; //二维码链接
}
}</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>