chinahub / yii2-wechat-pay
wechat pay sdk for yii2
Installs: 131
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-01-10 20:33:03 UTC
README
wechat pay sdk for yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist chinahub/yii2-wechat-pay "*"
or add
"chinahub/yii2-wechat-pay": "*"
to the require section of your composer.json
file.
Configure
To use this extension, you have to configure the Connection class in your application configuration:
'components' => [ 'wxPay' => [ 'class' => 'chinahub\wechat\WxPayConfig', 'app_id' => '8888888888888', 'mch_id' => '9999999999999999', 'app_key' => '11111111111111111', 'app_secret' => '777777777777777777', ], ]
Usage
please wait...