shulinqian / zapay-client
thinkweb支付中心客户端
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:thinkweb-extend
This package is not auto-updated.
Last update: 2025-02-10 17:50:08 UTC
README
支付中心客户端类 ###站点接入代码
需要实现notify 和 back,2个api接口,可以参照 Base.php
1.notify用于异步通知
必须实现 bind和callback接口,
2.back用于反回结果展示
//请修改为自己的配置
$config = [
'gateway' => "http://***.com/pay/index/index",
'apiurl' => "http://***.com/api/payment/index",
'appid' => '**site',
'key' => '01e7891ea2d7914ssb3e9430254f6257',
];
$client = new Client();
$client->setConfig($config);
3.到支付中心填入相应的地址