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

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


会员支付授权码(手机号直接支付)

<h2>接口使用描述</h2> <h3>用户通过接口获取会员支付授权码,可以用于被扫支付。</h3> <h3>应用场景</h3> <h3>收银软件上可以使用手机号或实体卡uid查询线上会员并获得支付授权码,</h3> <h4>使用获得的授权码调用被扫支付,就可以直接发起会员支付扣取会员余额。即通过手机号直接支付的效果</h4> <pre><code> 特别说明实体卡uid可以存放线下的实体的卡号,用于刷实体卡。 先判断客户录入的号码是不是手机号(1开头的11位),用手机号调用接口查询,否则用实体卡uid调接口查询。</code></pre> <h5>接口地址</h5> <pre><code>接口地址:https://api.liantuofu.com/open/member/payAuthCode</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>mobile</td> <td>手机号</td> <td>string</td> <td>N</td> <td>13800000000</td> <td>(手机号,会员卡号,微信openId,支付宝userId,微信unionId,memberId 六选一必填)</td> </tr> <tr> <td>5</td> <td>memberCardNo</td> <td>会员卡号</td> <td>string</td> <td>N</td> <td>800765866626995814</td> <td>会员卡号</td> </tr> <tr> <td>6</td> <td>openId</td> <td>微信openId</td> <td>string</td> <td>N</td> <td></td> <td>微信openId</td> </tr> <tr> <td>7</td> <td>userId</td> <td>支付宝userId</td> <td>string</td> <td>N</td> <td></td> <td>支付宝userId</td> </tr> <tr> <td>8</td> <td>unionId</td> <td>微信unionId</td> <td>string</td> <td>N</td> <td></td> <td>微信unionId</td> </tr> <tr> <td>9</td> <td>memberId</td> <td>会员id</td> <td>string</td> <td>N</td> <td>69393</td> <td>会员id</td> </tr> <tr> <td>10</td> <td>authPayCode</td> <td>支付授权码</td> <td>string</td> <td>N</td> <td></td> <td>支付授权码</td> </tr> <tr> <td>11</td> <td>shopNo</td> <td>门店编码</td> <td>string</td> <td>N</td> <td>&lt;font size=&quot;3&quot; color=&quot;red&quot;&gt;商盟版本会员查询必传&lt;/font&gt;</td> <td>如果填入支付授权码则为必填</td> </tr> <tr> <td>12</td> <td>physicalCardUid</td> <td>实体卡uid</td> <td>string</td> <td>N</td> <td></td> <td>实体卡uid</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>Y</td> <td>1b70687c8a4c72f50c749baf95a482c0</td> <td>请求时传递的sign</td> </tr> <tr> <td>6</td> <td>random</td> <td>随机数</td> <td>string</td> <td>Y</td> <td>123</td> <td>请求时传递的随机数</td> </tr> <tr> <td>7</td> <td>payAuthCode</td> <td>会员支付授权码</td> <td>string</td> <td>Y</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;payAuthCode&amp;quot;:&amp;quot;810233309914454262&amp;quot;, &amp;quot;code&amp;quot;:&amp;quot;SUCCESS&amp;quot;, &amp;quot;msg&amp;quot;:&amp;quot;查询成功&amp;quot; }</code></pre> <h5>响应示例(失败):</h5> <pre><code class="language-json">{ &amp;quot;code&amp;quot;:&amp;quot;FAILED&amp;quot;, &amp;quot;msg&amp;quot;:&amp;quot;无效的APPID&amp;quot;, &amp;quot;subCode&amp;quot;:&amp;quot;APPID_ERROR&amp;quot;, &amp;quot;subMsg&amp;quot;:&amp;quot;APPID 参数错误&amp;quot; }</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