mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
16 lines
351 B
PHP
16 lines
351 B
PHP
<?php
|
|
try {
|
|
// 1. 手动加载入口文件
|
|
include "../include.php";
|
|
|
|
// 2. 准备公众号配置参数
|
|
$config = include "./pay-v3-config.php";
|
|
|
|
$payment = \WePayV3\Cert::instance($config);
|
|
|
|
$payment->download();
|
|
|
|
} catch (\Exception $exception) {
|
|
// 出错啦,处理下吧
|
|
echo $exception->getMessage() . PHP_EOL;
|
|
} |