WeChatDeveloper/_test/pay-v3-config-cert.php
2020-12-17 17:00:08 +08:00

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;
}