下单
<p><strong>请求URI:</strong></p>
<ul>
<li><code>/payment/native/trade</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</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;">pay_channel</td>
<td style="text-align: left;">require,in:0,1</td>
<td style="text-align: left;">int</td>
<td>支付渠道:0=微信,1=支付宝</td>
</tr>
<tr>
<td style="text-align: left;">store_passport</td>
<td style="text-align: left;">require,min:6,max:12</td>
<td style="text-align: left;">string</td>
<td>商户账号</td>
</tr>
<tr>
<td style="text-align: left;">operation_type</td>
<td style="text-align: left;">require,in:0</td>
<td style="text-align: left;">int</td>
<td>订单类型</td>
</tr>
<tr>
<td style="text-align: left;">payload</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">object</td>
<td>载荷信息</td>
</tr>
</tbody>
</table>
<hr />
<ul>
<li>operation_type=0:开户/续费 payload内容</li>
</ul>
<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;">append_year</td>
<td style="text-align: left;">require,>:0</td>
<td style="text-align: left;">int</td>
<td>续费/开户年数</td>
</tr>
</tbody>
</table>
<pre><code>{
&quot;payload&quot;: {
&quot;append_year&quot;:1
},
&quot;pay_channel&quot;:0,
&quot;operation_type&quot;:0,
&quot;store_passport&quot;:111111
}</code></pre>
<ul>
<li>账户有效期为0时则执行开户</li>
</ul>
<hr />
<p><strong>返回示例:</strong></p>
<pre><code>{
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;store_passport&quot;: &quot;xwr&quot;,//商户账号
&quot;merchant_info&quot;: {},//商户信息
&quot;total_price&quot;: 1,//支付金额(分)
&quot;out_trade_no&quot;: &quot;211224163100001612&quot;,//订单号
&quot;pay_channel&quot;:0,
&quot;pay_unify&quot;: {//支付信息 根据pay_channel变动
&quot;code_img_url&quot;: &quot;&quot;,
&quot;code_url&quot;: &quot;http://payapi.qufengpay.com/OrderPayApi.aspx?out_trade_no=P20211224163114437a1e3&quot;,//支付地址,转换成二维码提供给用户扫描
&quot;transaction_id&quot;: &quot;P20211224163114437a1e3&quot;,
&quot;sign&quot;: &quot;&quot;
},
&quot;payload&quot;:{//载荷信息 根据operation_type变动
&quot;append_year&quot;:1,
&quot;append_expiry_timestamp&quot;:1763629544,//预估支付完成后有效期
&quot;renew_switch&quot;:0,//续费模式:0=否,1=是
}
},
&quot;message&quot;: &quot;请求成功&quot;
}</code></pre>