因为没有人提供站点进行测试,所以程序可用性未知,下面的程序是修改自付费版,原程序是没问题的。
malio对接-未测试
1.在config/routes.php下
// Run Slim Routes for App
$app->run();上面添加
// Jshipay
$app->post('/Jshi_notify', 'App\Services\Payment:notify');
$app->get('/Jshi_notify', 'App\Services\Payment:notify');
$app->post('/Jshi_return', 'App\Services\Payment:returnhtml');
$app->get('/Jshi_return', 'App\Services\Payment:returnhtml');
// end of Jshipay
2.在.config.php下添加
#帮助博客http://9shi.me
$_ENV['jshipid']='';//商户号
$_ENV['jshikey']='';//密钥
$_ENV['jshiapi']='';//接口地址
$_ENV['jshiname']='';//商品名称
$_ENV['sitename']='';//网站名称
3.将文件替换app/services/gateway/同名文件,如果没有请更新您的malio。
http://9shi.me/usr/uploads/2020/10/1526442041.zip
cool对接-已测试
1.将下面内容补充完整并且复制到/config/.config.php
#帮助博客http://9shi.me
$_ENV['jshipid']='';//商户号
$_ENV['jshikey']='';//密钥
$_ENV['jshiapi']='https://支付平台地址/submit.php?';//接口地址
$_ENV['jshiname']='jichangtaocan';//商品名称
$_ENV['sitename']='freeairport';//网站名称
2.将压缩包里的文件替换原来的文件。