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

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


openid信息获取

<p>&lt;h4 style=&quot;color:rgb(239,107,107)&quot;&gt;重要提示:openid针对于同一个微信appid是全局唯一的,如果商户有自己获取openid的方法,可不用接此接口。此接口针对之前没有对接过获取openid的商户,接此接口可以帮助商户获取openid信息,接此接口需要联系联拓富技术人员在后台配置相关设置。&lt;/h4&gt;</p> <h5>接口使用描述</h5> <pre><code>本接口主要针对商户使用联拓富平台公众账号进行支付的用户,通过该接口获取到支付所需要的openid。 具体流程和步骤如下: https://api.liantuofu.com/open/wechatUserAuth?merchantCode={merchantCode}&amp;amp;redirectUri={redirectUri} 用户扫码打开链接,跳转微信授权会自动完成获取openId,获取成功后会跳转至redirectUri,并在目标url后方拼接openId 例如:https://api.liantuofu.com/open/wechatUserAuth?merchantCode=ABC&amp;amp;redirectUri=http://www.qq.com 获取openId成功后,跳转链接:https://www.qq.com?openId=xxxxxxxxxxx</code></pre> <h5>接口地址</h5> <pre><code> 接口地址:https://api.liantuofu.com/open/wechatUserAuth</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>merchantCode</td> <td>门店编号</td> <td>string</td> <td>Y</td> <td>EW_N9479011740</td> <td>门店编号,用于后续接口请求参数的使用</td> </tr> <tr> <td>2</td> <td>redirectUri</td> <td>跳转目标链接</td> <td>string</td> <td>Y</td> <td><a href="http://www.qq.com/auth">http://www.qq.com/auth</a></td> <td>授权链接</td> </tr> <tr> <td>3</td> <td>scope</td> <td>授权类型 BASE:静默授权 USER:获取用户信息</td> <td>string</td> <td>N</td> <td>BASE</td> <td>BASE:静默授权 USER:获取用户信息</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>openId</td> <td>微信用户标识</td> <td>string</td> <td>Y</td> <td>oHucvvzUVgZwxUm2Pdw7nNGc2IhA</td> <td>微信用户标识</td> </tr> <tr> <td>2</td> <td>json</td> <td>用户微信基本信息,scope填写‘USER’时返回</td> <td>json</td> <td>N</td> <td>{ &quot;openid&quot;: &quot;oHucvvzUVgZwxUm2Pdw7nNGc2IhA&quot;, &quot;nickname&quot;: &quot;Joey&quot;, &quot;sex&quot;: 1, &quot;city&quot;: &quot;北京&quot;, &quot;province&quot;: &quot;北京&quot;, &quot;country&quot;: &quot;中国&quot;, &quot;headimgurl&quot;: &quot;<a href="http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIukeGMeadkSRCJib6LFjaGQoBTzrOR6yCLjIgP1GX1cvbuvhnY05vPRsR6POPlSsjaHgr8eQ9Uia6g/132&quot">http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIukeGMeadkSRCJib6LFjaGQoBTzrOR6yCLjIgP1GX1cvbuvhnY05vPRsR6POPlSsjaHgr8eQ9Uia6g/132&quot</a>;, &quot;unionid&quot;: &quot;om1AB1cSbWdmP5nlUUmkIWWEdhLM&quot;, &quot;language&quot;: &quot;zh_CN&quot;, &quot;authUser&quot;: true }</td> <td>scope填写‘USER’时返回</td> </tr> </tbody> </table> <p>&lt;br/&gt;&lt;br/&gt;</p> <h5>请求示例:</h5> <pre><code>redirectUri=http://www.qq.com/auth?scope=BASE&amp;amp;merchantCode=SC_I2528987310</code></pre> <h5>响应示例(成功):</h5> <pre><code> http://www.qq.com?openId=oHucvvzUVgZwxUm2Pdw7nNGc2IhA</code></pre>

页面列表

ITEM_HTML