方维团购(基于THINKPHP)银联在线支付类,不知道大家用不用得到
将类放入:ThinkPHP\Vendor\payment3include_once(VENDOR_PATH."payment3/chinapay/netpayclient_config.php");<br>
include_once(VENDOR_PATH."payment3/chinapay/netpayclient.php");是银联提供的配置文件。
在\app\source\index.php中加入
if ($_REQUEST['m']=='ChinapayPayment'){<br>
require ROOT_PATH."app/source/func/com_send_sms_func.php";<br>
require ROOT_PATH."app/source/func/com_order_pay_func.php";<br>
ChinapayIndex();<br>
exit;<br>
}在\app\source\func\com_order_pay_func.php中加入function ChinapayIndex()//银联处理<br>
{<br>
require_once(VENDOR_PATH.'payment3/ChinapayPayment.class.php');<br>
$payment_name = "ChinapayPayment";<br>
if(class_exists($payment_name))<br>
{<br>
$payment_model = new $payment_name;<br>
$res = $payment_model->dealResult($_GET,$_POST,$_REQUEST);<br>
<br>
if($res['status'])<br>
{<br>
echo 'ok';<br>
}<br>
else <br>
{<br>
echo 'error';<br>
} <br>
}else <br>
{<br>
echo 'error';<br>
}<br>
}后台安装即可
源码见:http://www.jakehu.me/?p=273
AD:真正免费,域名+虚机+企业邮箱=0元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.





