PHP code example of callmenp / wxpayapi_php
1. Go to this page and download the library: Download callmenp/wxpayapi_php 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/ */
callmenp / wxpayapi_php example snippets
'wxpay' => [
'appid'=>'wx426b3015555a46be',
'mchid'=>'1225312702',
'key'=>'e10adc3949ba59abbe56e057f20f883e',
'appsecret'=>'01c6d59a3f9024db6336662ac95c8e74',
'sslcert_path'=>'../cert/apiclient_cert.pem',
'sslkey_path'=>'../cert/apiclient_key.pem',
'curl_proxy_host'=>'0.0.0.0',
'curl_proxy_port'=>0,
'report_levenl'=>1,
],
$wxpay=new \WxPayApi();