shulinqian/zapay-client

thinkweb支付中心客户端

Installs: 36

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:thinkweb-extend

v1.0.2 2017-03-13 06:54 UTC

This package is not auto-updated.

Last update: 2024-05-20 14:39:06 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.到支付中心填入相应的地址