联拓富快速接入版移动支付接口

联拓富快速接入版移动支付接口


会员充值并支付

<h5>接口使用描述</h5> <pre><code>用户通过接口会员充值并支付。</code></pre> <h5>接口地址</h5> <pre><code>接口地址:https://api.liantuofu.com/open/precreateRechargeAndPay</code></pre> <p>&lt;br/&gt;</p> <h4>请求参数&lt;img src='<a href="https://www.showdoc.cc/server/api/common/visitfile/sign/bfc24f8d7eb93fae8e66d4ab2b4bc461?showdoc=.jpg">https://www.showdoc.cc/server/api/common/visitfile/sign/bfc24f8d7eb93fae8e66d4ab2b4bc461?showdoc=.jpg</a>' align='right' style=' width:300px;height:100 px'/&gt;</h4> <table> <thead> <tr> <th><strong>NO</strong></th> <th><strong>字段</strong></th> <th><strong>名称</strong></th> <th><strong>长度</strong></th> <th><strong>必填</strong></th> <th><strong>示例</strong></th> <th><strong>说明</strong></th> </tr> </thead> <tbody> <tr> <td>1</td> <td>appId</td> <td>合作方标识</td> <td>string</td> <td>Y</td> <td>EW_N2949193174</td> <td>合作商户编码,用于以后所有接口发起请求时验签使用</td> </tr> <tr> <td>2</td> <td>sign</td> <td>签名。具体参见“<a href="https://www.showdoc.cc/web/#/liantuofu?page_id=673453270295568">签名规则</a>”</td> <td>string</td> <td>Y</td> <td>1b70687c8a4c72f50c749baf95a482c0</td> <td>MD5加密验签值。具体参见“<a href="https://www.showdoc.cc/web/#/liantuofu?page_id=673453270295568">签名规则</a>”</td> </tr> <tr> <td>3</td> <td>random</td> <td>随机数</td> <td>string</td> <td>Y</td> <td>123</td> <td>用来增加加密验签的复杂度,长度不限制,只限制传递数字,不支持中文,字母,特殊符号。</td> </tr> <tr> <td>4</td> <td>orderSource</td> <td>订单来源</td> <td>string</td> <td>Y</td> <td>3</td> <td>3:接口</td> </tr> <tr> <td>5</td> <td>memberId</td> <td>会员id</td> <td>int</td> <td>Y</td> <td></td> <td>会员id</td> </tr> <tr> <td>6</td> <td>merchantCode</td> <td>商户编码</td> <td>string</td> <td>N</td> <td>EW_N2949193121</td> <td>商户编码</td> </tr> <tr> <td>7</td> <td>outTradeNo</td> <td>交易订单编号</td> <td>string</td> <td>N</td> <td>800765866626995814</td> <td>交易订单编号</td> </tr> <tr> <td>8</td> <td>rechargeAmount</td> <td>充值金额</td> <td>string</td> <td>N</td> <td></td> <td>充值金额</td> </tr> <tr> <td>9</td> <td>totalAmount</td> <td>支付金额(元)</td> <td>string</td> <td>N</td> <td></td> <td>支付金额(元)</td> </tr> <tr> <td>10</td> <td>payScene</td> <td>支付场景</td> <td>string</td> <td>N</td> <td>40</td> <td>支付场景:40公众号充值并会员支付 14支付宝充值并支付,84微信小程序充值并支付,94支付宝小程序充值并支付</td> </tr> <tr> <td>11</td> <td>notifyUrl</td> <td>通知回调地址</td> <td>string</td> <td>N</td> <td>69393</td> <td>通知回调地址</td> </tr> <tr> <td>12</td> <td>openId</td> <td>微信支付宝用户标识</td> <td>string</td> <td>N</td> <td></td> <td>微信支付宝用户标识(公众号充值并会员支付I必传)</td> </tr> <tr> <td>13</td> <td>unDiscountAmount</td> <td>不参与优惠金额(元)</td> <td>string</td> <td>N</td> <td></td> <td>不参与优惠金额(元)</td> </tr> <tr> <td>14</td> <td>goodsDetail</td> <td>商品信息</td> <td>string</td> <td>N</td> <td></td> <td>商品信息</td> </tr> <tr> <td>15</td> <td>operatorId</td> <td>操作员id</td> <td>string</td> <td>N</td> <td></td> <td>操作员id</td> </tr> <tr> <td>16</td> <td>orderRemark</td> <td>订单备注</td> <td>string</td> <td>N</td> <td></td> <td>订单备注</td> </tr> <tr> <td>17</td> <td>subject</td> <td>支付凭证商品描述信息</td> <td>string</td> <td>N</td> <td></td> <td>支付凭证商品描述信息,不填写默认为交易订单编号</td> </tr> <tr> <td>18</td> <td>expireMinutes</td> <td>未支付订单关闭时间</td> <td>string</td> <td>N</td> <td></td> <td>未支付订单关闭时间(分钟),最少5分钟,最长30分钟</td> </tr> <tr> <td>19</td> <td>subAppId</td> <td>小程序支付必传</td> <td>string</td> <td>N</td> <td></td> <td>小程序支付必传</td> </tr> <tr> <td>20</td> <td>appExtNo</td> <td>SN\码值</td> <td>string</td> <td>N</td> <td></td> <td>SN\码值</td> </tr> </tbody> </table> <h4>响应参数</h4> <table> <thead> <tr> <th><strong>NO</strong></th> <th><strong>字段</strong></th> <th><strong>名称</strong></th> <th><strong>长度</strong></th> <th><strong>必填</strong></th> <th><strong>示例</strong></th> <th><strong>说明</strong></th> </tr> </thead> <tbody> <tr> <td>1</td> <td>code</td> <td>结果</td> <td>string</td> <td>Y</td> <td>SUCCESS</td> <td>结果码 SUCCESS:成功 FAILED:失败</td> </tr> <tr> <td>2</td> <td>msg</td> <td>结果描述</td> <td>string</td> <td>Y</td> <td>登陆成功</td> <td>无论是成功或者失败,message都会针对于当前的结果返回响应的结果描述</td> </tr> <tr> <td>3</td> <td>subCode</td> <td>错误代码</td> <td>string</td> <td>N</td> <td>LOGIN_ERROR</td> <td>如果code为FAILED,subcode会返回详细的错误code,以便错误信息描述的更加精确</td> </tr> <tr> <td>4</td> <td>subMsg</td> <td>错误描述</td> <td>string</td> <td>N</td> <td>EW_N2320993253</td> <td>如果code为FAILED,subMsg会返回详细的错误描述,以便错误信息描述的更加精确</td> </tr> <tr> <td>5</td> <td>sign</td> <td>签名</td> <td>string</td> <td>N</td> <td>1b70687c8a4c72f50c749baf95a482c0</td> <td>请求时传递的sign</td> </tr> <tr> <td>6</td> <td>random</td> <td>随机数</td> <td>string</td> <td>N</td> <td>123</td> <td>请求时传递的随机数</td> </tr> <tr> <td>7</td> <td>outTradeNo</td> <td>交易订单编号</td> <td>string</td> <td>N</td> <td>交易订单编号</td> <td>交易订单编号</td> </tr> <tr> <td>7</td> <td>payType</td> <td>支付类型</td> <td>string</td> <td>N</td> <td>WXPAY</td> <td>支付类型 WXPAY:微信支付 ALIPAY:支付宝支付</td> </tr> <tr> <td>7</td> <td>totalAmount</td> <td>交易金额</td> <td>string</td> <td>N</td> <td></td> <td>交易金额</td> </tr> <tr> <td>7</td> <td>discountAmount</td> <td>优惠金额</td> <td>string</td> <td>N</td> <td></td> <td>优惠金额(有营销活动或用券时返回)</td> </tr> <tr> <td>7</td> <td>transactionId</td> <td>返回的交易订单号</td> <td>string</td> <td>N</td> <td></td> <td>返回的交易订单号</td> </tr> <tr> <td>7</td> <td>appId</td> <td>微信支付返回</td> <td>string</td> <td>N</td> <td></td> <td>微信支付返回</td> </tr> <tr> <td>7</td> <td>timeStamp</td> <td>微信支付返回</td> <td>string</td> <td>N</td> <td></td> <td>微信支付返回</td> </tr> <tr> <td>7</td> <td>nonceStr</td> <td>微信支付返回</td> <td>string</td> <td>N</td> <td></td> <td>微信支付返回</td> </tr> <tr> <td>7</td> <td>signType</td> <td>微信支付返回</td> <td>string</td> <td>N</td> <td></td> <td>微信支付返回</td> </tr> <tr> <td>7</td> <td>paySign</td> <td>微信支付返回</td> <td>string</td> <td>N</td> <td></td> <td>微信支付返回</td> </tr> <tr> <td>7</td> <td>payPackage</td> <td>微信支付返回</td> <td>string</td> <td>N</td> <td></td> <td>微信支付返回</td> </tr> </tbody> </table> <p>&lt;br/&gt;&lt;br/&gt;</p> <h5>请求示例:</h5> <pre><code>appId=EW_N5946005323&amp;amp;openId=oHucvv64jHMx6hXbPRIdI2FXI_i4&amp;amp;random=123&amp;amp;sign=52503c163b9286eedbc0b6e08a3d1273</code></pre> <h5>响应示例(成功):</h5> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: &amp;quot;SUCCESS&amp;quot;, &amp;quot;msg&amp;quot;: &amp;quot;获取支付链接成功&amp;quot;, &amp;quot;random&amp;quot;: &amp;quot;A1qgdRv5&amp;quot;, &amp;quot;sign&amp;quot;: &amp;quot;f63c0e972b04da9dc6bdae5dfedfa6d9&amp;quot;, &amp;quot;qrCode&amp;quot;: &amp;quot;weixin://wxpay/bizpayurl?pr=P2uX6zZ&amp;quot;, &amp;quot;outTradeNo&amp;quot;: &amp;quot;2018072016144062440558&amp;quot;, &amp;quot;payType&amp;quot;: &amp;quot;WXPAY&amp;quot;, &amp;quot;totalAmount&amp;quot;: 0.01 }</code></pre> <h5>响应示例(失败):</h5> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: &amp;quot;SUCCESS&amp;quot;, &amp;quot;msg&amp;quot;: &amp;quot;获取支付链接成功&amp;quot;, &amp;quot;random&amp;quot;: &amp;quot;123456789abc&amp;quot;, &amp;quot;sign&amp;quot;: &amp;quot;610cb13cb366255776e349af6ac3e7ad&amp;quot;, &amp;quot;appId&amp;quot;: &amp;quot;wxdace645e0bc2c424&amp;quot;, &amp;quot;timeStamp&amp;quot;: &amp;quot;1532659965&amp;quot;, &amp;quot;nonceStr&amp;quot;: &amp;quot;7e2d9b779ebe30cadbc944fe1ff1f629&amp;quot;, &amp;quot;signType&amp;quot;: &amp;quot;MD5&amp;quot;, &amp;quot;paySign&amp;quot;: &amp;quot;8982160AB24F3C6CECF3B3F466CAD501&amp;quot;, &amp;quot;payPackage&amp;quot;: &amp;quot;prepay_id=wx2710524529320169fe2905702828330533&amp;quot;, &amp;quot;outTradeNo&amp;quot;: &amp;quot;2018072415326599649309347&amp;quot;, &amp;quot;payType&amp;quot;: &amp;quot;WXPAY&amp;quot;, &amp;quot;totalAmount&amp;quot;: 0.05 }</code></pre> <h5>错误码</h5> <table> <thead> <tr> <th>错误码</th> <th>错误描述</th> <th>建议处理</th> </tr> </thead> <tbody> <tr> <td>APPID_ERROR</td> <td>APPID 参数错误</td> <td>核实自己的appid是否正确</td> </tr> </tbody> </table>

页面列表

ITEM_HTML