PHP code example of chinahub / yii2-wechat-pay
1. Go to this page and download the library: Download chinahub/yii2-wechat-pay library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chinahub / yii2-wechat-pay example snippets
'components' => [
'wxPay' => [
'class' => 'chinahub\wechat\WxPayConfig',
'app_id' => '8888888888888',
'mch_id' => '9999999999999999',
'app_key' => '11111111111111111',
'app_secret' => '777777777777777777',
],
]
php composer.phar