|
@@ -75,6 +75,7 @@ class PaymentService extends BaseService
|
|
|
$mchid = isset($config['wxpay_mchd']) ? $config['wxpay_mchd'] : '';
|
|
$mchid = isset($config['wxpay_mchd']) ? $config['wxpay_mchd'] : '';
|
|
|
$secretV3Key = isset($config['wxpay_key_v3']) ? $config['wxpay_key_v3'] : '';
|
|
$secretV3Key = isset($config['wxpay_key_v3']) ? $config['wxpay_key_v3'] : '';
|
|
|
$secretV2Key = isset($config['wxpay_key_v2']) ? $config['wxpay_key_v2'] : '';
|
|
$secretV2Key = isset($config['wxpay_key_v2']) ? $config['wxpay_key_v2'] : '';
|
|
|
|
|
+ $publicKeyId = isset($config['public_key_id']) ? $config['public_key_id'] : '';
|
|
|
$wxpaySecretCert = isset($config['wxpay_secret_cert']) ? $config['wxpay_secret_cert'] : '';
|
|
$wxpaySecretCert = isset($config['wxpay_secret_cert']) ? $config['wxpay_secret_cert'] : '';
|
|
|
$wxpayPublicCert = isset($config['wxpay_public_cert']) ? $config['wxpay_public_cert'] : '';
|
|
$wxpayPublicCert = isset($config['wxpay_public_cert']) ? $config['wxpay_public_cert'] : '';
|
|
|
if (empty($appid) || empty($mchid) || empty($secretV3Key)) {
|
|
if (empty($appid) || empty($mchid) || empty($secretV3Key)) {
|
|
@@ -85,6 +86,7 @@ class PaymentService extends BaseService
|
|
|
// 支付参数
|
|
// 支付参数
|
|
|
$payConfig = config('payment.wechat');
|
|
$payConfig = config('payment.wechat');
|
|
|
$payConfig['wechat']['default']['mch_id'] = $mchid;
|
|
$payConfig['wechat']['default']['mch_id'] = $mchid;
|
|
|
|
|
+ $payConfig['wechat']['default']['wechat_public_cert_path']["PUB_KEY_ID_{$publicKeyId}"] = base_path().'/resources/certs/wechat/pub_key.pem';
|
|
|
|
|
|
|
|
if ($payPt == 'min') {
|
|
if ($payPt == 'min') {
|
|
|
// 小程序支付
|
|
// 小程序支付
|