PHP code example of qingsong / think-wxpayapi
1. Go to this page and download the library: Download qingsong/think-wxpayapi 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/ */
qingsong / think-wxpayapi example snippets
$tools = new \qingsong\wxpayapi\JsApiPay();
$input = new \qingsong\wxpayapi\data\WxPayUnifiedOrder();
$order = \qingsong\wxpayapi\WxPayApi::unifiedOrder($input);
$notify = new \qingsong\wxpayapi\PayNotifyCallBack();