mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
26 lines
643 B
PHP
26 lines
643 B
PHP
<?php
|
|
|
|
$certPublic = <<<CERT
|
|
-----BEGIN CERTIFICATE-----
|
|
你的微信商户证书公钥内容
|
|
-----END CERTIFICATE-----
|
|
CERT;
|
|
|
|
$certPrivate = <<<CERT
|
|
-----BEGIN PRIVATE KEY-----
|
|
你的微信商户证书私钥内容
|
|
-----END PRIVATE KEY-----
|
|
CERT;
|
|
|
|
return [
|
|
// 商户绑定的公众号APPID
|
|
'appid' => '',
|
|
// 微信商户编号ID
|
|
'mch_id' => '',
|
|
// 微信商户V3接口密钥
|
|
'mch_v3_key' => '',
|
|
// 微信商户证书公钥,支持证书内容或文件路径
|
|
'cert_public' => $certPublic,
|
|
// 微信商户证书私钥,支持证书内容或文件路径
|
|
'cert_private' => $certPrivate,
|
|
]; |