chinahub / yii2-wechat-pay
yii2 的微信支付 SDK
v1.0
2016-04-05 06:25 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-20 19:09:35 UTC
README
yii2 的微信支付 SDK
安装
安装此扩展的首选方式是通过 composer。
可以运行
php composer.phar require --prefer-dist chinahub/yii2-wechat-pay "*"
或者添加
"chinahub/yii2-wechat-pay": "*"
到你的 composer.json 文件的 require 部分。
配置
要使用此扩展,您需要在应用程序配置中配置 Connection 类
'components' => [ 'wxPay' => [ 'class' => 'chinahub\wechat\WxPayConfig', 'app_id' => '8888888888888', 'mch_id' => '9999999999999999', 'app_key' => '11111111111111111', 'app_secret' => '777777777777777777', ], ]
使用方法
请稍候...