发表于 2024-12-18 18:32:01

知宇企业发卡系统对接聚灵支付网关教程

<p>
        <b><span style="font-size:16px;">网关插件下载地址:</span><a href="https://www.lanzoui.com/i5uomxe" target="_blank"><span style="color:#E53333;font-size:16px;">https://www.lanzoui.com/i5uomxe</span><span style="color:#E53333;font-size:16px;"></span></a></b>
</p>
<p>
        <span style="font-size:16px;">以下是插件安装教程首发K网!</span>
</p>
<p>
        <span style="font-size:16px;">欢迎━(</span><em><span style="font-size:16px;">`∀´</span></em><span style="font-size:16px;">)ノ亻!对接聚灵支付,下面简单的教一下知宇发卡系统网关对接教程!</span>
</p>
<hr />
<h6 id="h6-1-julingalipay-php-julingwxpay-php-application-common-pay">
        <a name="1、首先我们上传支付核心文件,分别是( Julingalipay.php 和 Julingwxpay.php )上传目录至:/application/common/pay"></a><span style="font-size:16px;">1、首先我们上传支付核心文件,分别是( Julingalipay.php 和 Julingwxpay.php )上传目录至:/application/common/pay</span>
</h6>
<p>
        <span style="font-size:16px;">如图:</span><br />
<img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b2a33c4e07.png" alt="" />
</p>
<h6 id="h6-2-application-index-controller-pay-php">
        <a name="2、到目录:/application/index/controller 中编辑文件:Pay.php"></a><span style="font-size:16px;">2、到目录:/application/index/controller 中编辑文件:Pay.php</span>
</h6>
<p>
        <span style="font-size:16px;">如图:</span><br />
<img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b2aed42de4.png" alt="" />
</p>
<h5 id="h5--private-function-getchannelname-params-">
        <a name="然后搜索 private function getChannelName($params) 这段代码,在获取渠道名中增加代码"></a><span style="font-size:16px;">然后搜索 private function getChannelName($params) 这段代码,在获取渠道名中增加代码</span>
</h5>
<p>
        <span style="font-size:16px;">代码如下:</span>
</p>
<pre class="prettyprint linenums prettyprinted">
<ol class="linenums">
       
        <li class="L0">
                <span class="pln"> </span><span class="kwd">case</span><span class="pln"> </span><span class="str">'Julingwxpay'</span><span class="pun">:</span>
        </li>

        <li class="L1">
                <span class="pln"> $trade_no </span><span class="pun">=</span><span class="pln"> isset</span><span class="pun">(</span><span class="pln">$params</span><span class="pun">[</span><span class="str">'out_trade_no'</span><span class="pun">])</span><span class="pln"> </span><span class="pun">?</span><span class="pln"> $params</span><span class="pun">[</span><span class="str">'out_trade_no'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">:</span><span class="pln"> </span><span class="str">''</span><span class="pun">;</span>
        </li>

        <li class="L2">
                <span class="pln"> </span><span class="kwd">break</span><span class="pun">;</span>
        </li>

        <li class="L3">
                <span class="pln"> </span><span class="kwd">case</span><span class="pln"> </span><span class="str">'Julingzfbpay'</span><span class="pun">:</span>
        </li>

        <li class="L4">
                <span class="pln"> $trade_no </span><span class="pun">=</span><span class="pln"> isset</span><span class="pun">(</span><span class="pln">$params</span><span class="pun">[</span><span class="str">'out_trade_no'</span><span class="pun">])</span><span class="pln"> </span><span class="pun">?</span><span class="pln"> $params</span><span class="pun">[</span><span class="str">'out_trade_no'</span><span class="pun">]</span><span class="pln"> </span><span class="pun">:</span><span class="pln"> </span><span class="str">''</span><span class="pun">;</span>
        </li>

        <li class="L5">
                <span class="pln"> </span><span class="kwd">break</span><span class="pun">;</span>
        </li>

</ol>
</pre>
<p>
        <span style="font-size:16px;">如图:</span><br />
<img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b2ce3c6ef7.png" alt="" />
</p>
<h5 id="h5--private-function-getparams-">
        <a name="然后搜索 private function getParams() 这段代码,在获取参数中增加代码"></a><span style="font-size:16px;">然后搜索 private function getParams() 这段代码,在获取参数中增加代码</span>
</h5>
<p>
        <span style="font-size:16px;">代码如下:</span>
</p>
<pre class="prettyprint linenums prettyprinted">
<ol class="linenums">
       
        <li class="L0">
                <span class="pln"> </span><span class="kwd">case</span><span class="pln"> </span><span class="str">'Julingwxpay'</span><span class="pun">:</span>
        </li>

        <li class="L1">
                <span class="pln"> </span><span class="kwd">case</span><span class="pln"> </span><span class="str">'Julingalipay'</span><span class="pun">:</span>
        </li>

</ol>
</pre>
<p>
        <span style="font-size:16px;">如图:</span><br />
<img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b2d7bb5a3d.png" alt="" />
</p>
<h5 id="h5--private-function-repeat-">
        <a name="然后搜索 private function repeat() { 这段代码,在渠道中增加代码"></a><span style="font-size:16px;">然后搜索 private function repeat() { 这段代码,在渠道中增加代码</span>
</h5>
<p>
        <span style="font-size:16px;">代码如下:</span>
</p>
<pre class="prettyprint linenums prettyprinted">
<ol class="linenums">
       
        <li class="L0">
                <span class="kwd">case</span><span class="pln"> </span><span class="str">'Julingwxpay'</span><span class="pun">:</span>
        </li>

        <li class="L1">
                <span class="kwd">case</span><span class="pln"> </span><span class="str">'Julingalipay'</span><span class="pun">:</span>
        </li>

</ol>
</pre>
<p>
        <span style="font-size:16px;">如图:</span><img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b2e2732ea7.png" alt="" />
</p>
<h5 id="h5-3-3-application-manage-config-php-">
        <a name="3、增添完以上3个代码后,然后保存,打开目录 /application/manage 中的 config.php 编辑"></a><span style="font-size:16px;">3、增添完以上3个代码后,然后保存,打开目录 /application/manage 中的 config.php 编辑</span>
</h5>
<p>
        <span style="font-size:16px;">修改代码:</span><br />
<span style="font-size:16px;">“development” =&gt; 1, (把0改为1)</span>
</p>
<p>
        <span style="font-size:16px;">如图:</span><br />
<img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b2ed3d0303.png" alt="" />
</p>
<hr />
<h5 id="h5-4-">
        <a name="4、在知宇发卡系统后台的网关通道内找到 “添加支付接口” 设置以下内容!"></a><span style="font-size:16px;">4、在知宇发卡系统后台的网关通道内找到 “添加支付接口” 设置以下内容!</span>
</h5>
<p>
        <span style="font-size:16px;">—————— 微信支付接口 ————————</span><br />
<span style="font-size:16px;">——- 接口名称:聚灵微信扫码</span><br />
<span style="font-size:16px;">——- 接口英文名: Julingwxpay</span><br />
<span style="font-size:16px;">——- 备注标记:聚灵微信扫码</span><br />
<span style="font-size:16px;">——- 账户字段:商户账号:userid|COOKIE:userkey</span><br />
<span style="font-size:16px;">——-申请地址:</span><a href="https://www.julingpay.com/" target="_blank"><span style="font-size:16px;">https://www.julingpay.com/</span></a><br />
<span style="font-size:16px;">——- 分类:微信扫码</span><br />
<span style="font-size:16px;">——- 接口可用:通用</span><br />
<span style="font-size:16px;">—————— 支付宝支付接口 ————————</span><br />
<span style="font-size:16px;">——- 接口名称:聚灵支付宝扫码</span><br />
<span style="font-size:16px;">——- 接口英文名: Julingalipay</span><br />
<span style="font-size:16px;">——- 备注标记:聚灵支付宝扫码</span><br />
<span style="font-size:16px;">——- 账户字段:商户账号:userid|COOKIE:userkey</span><br />
<span style="font-size:16px;">——-申请地址:</span><a href="https://www.julingpay.com/" target="_blank"><span style="font-size:16px;">https://www.julingpay.com/</span></a><br />
<span style="font-size:16px;">——- 分类:支付宝扫码</span><br />
<span style="font-size:16px;">——- 接口可用:通用</span><br />
<span style="font-size:16px;">如图:</span><br />
<img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b3117b998e.png" alt="" />
</p>
<h2 id="h2--">
        <a name="修改完保存即可!若没看懂请联系聚灵客服进行操作!"></a><span style="font-size:16px;">修改完保存即可!若没看懂请联系聚灵客服进行操作!</span>
</h2>
<h4 id="h4--">
        <a name="顺便教一下大家如何添加聚灵支付商户!(番外篇)"></a><span style="font-size:16px;">顺便教一下大家如何添加聚灵支付商户!(番外篇)</span>
</h4>
<h5 id="h5-1-cid-cookie">
        <a name="1、在聚灵 “商户管理中心” 内找到 “基本信息” 中的 “密钥信息”,可以看到 商户CID 和 cookie"></a><span style="font-size:16px;">1、在聚灵 “商户管理中心” 内找到 “基本信息” 中的 “密钥信息”,可以看到 商户CID 和 cookie</span>
</h5>
<p>
        <span style="font-size:16px;">如图:</span><br />
<img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b32d91f4c5.png" alt="" />
</p>
<h5 id="h5--cid-cookie-">
        <a name="然后吧 CID 和 cookie 填入发卡后台聚灵网关内"></a><span style="font-size:16px;">然后吧 CID 和 cookie 填入发卡后台聚灵网关内</span>
</h5>
<p>
        <span style="font-size:16px;">如图:</span><br />
<img src="https://docs.julingpay.com/Public/Uploads/2019-07-27/5d3b336f03b85.png" alt="" />
</p>
<h2 id="h2--">
        <a name="填完后保存即可!"></a><span style="font-size:16px;">填完后保存即可!</span>
</h2>
<h3 id="h3--">
        <a name="简单方便介入!也不懂的尽管联系客服~"></a>
</h3>
页: [1]
查看完整版本: 知宇企业发卡系统对接聚灵支付网关教程