PHP code example of dahaisoft / wxpay
1. Go to this page and download the library: Download dahaisoft/wxpay 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/ */
dahaisoft / wxpay example snippets
$pay = new Wxpay\CompanyPay;
$pay->appid = '';
$pay->mchid = '';
$pay->key = '';
$pay->sslcert_path = '';
$pay->sslkey_path = '';
$pay->pay($openid, $trade_no, $money, $desc);