1. Go to this page and download the library: Download datalinkage/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/ */
namespace app\index\controller;
vendor("datalinkage.wxpay.Wxpay");
class Index
{
public function index()
{
$object = new \Wxpay('0.01','李益达','obmm3s4oXl_xj03qHUfOCP36UbkQ');//金额,商品信息,openid
$param = $object->getWxpayConfig();//此为所有参数回执
dump($param);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.