shopxo/phalapi2-wechat

dev-master 2019-07-11 06:45 UTC

This package is auto-updated.

Last update: 2024-03-11 17:24:20 UTC


README

微信支付 http://gong.gg/

安装和配置

修改项目下的composer.json文件,并添加:

    "shopxo/phalapi2-wechat": "dev-master"

然后执行composer update

注册

在/path/to/phalapi/config/di.php文件中,注册:

$di->wechat = function() {
    return new \PhalApi\Wechat\Lite();
};

使用

发起支付

\PhalApi\DI()->wechat->Pay();