mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-21 19:09:58 +08:00
test(tenpayv3): 修改配置项
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Options
|
||||
@@ -22,9 +22,9 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Options
|
||||
|
||||
public string SecretV3 { get; set; } = string.Empty;
|
||||
|
||||
public string CertSerialNumber { get; set; } = string.Empty;
|
||||
public string CertificateSerialNumber { get; set; } = string.Empty;
|
||||
|
||||
public string CertPrivateKey { get; set; } = string.Empty;
|
||||
public string CertificatePrivateKey { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using Microsoft.Extensions.Options;
|
||||
@@ -35,8 +35,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Services.HttpClients.Imple
|
||||
{
|
||||
MerchantId = tenpayMerchantConfig.MerchantId,
|
||||
MerchantV3Secret = tenpayMerchantConfig.SecretV3,
|
||||
MerchantCertificateSerialNumber = tenpayMerchantConfig.CertSerialNumber,
|
||||
MerchantCertificatePrivateKey = tenpayMerchantConfig.CertPrivateKey,
|
||||
MerchantCertificateSerialNumber = tenpayMerchantConfig.CertificateSerialNumber,
|
||||
MerchantCertificatePrivateKey = tenpayMerchantConfig.CertificatePrivateKey,
|
||||
PlatformCertificateManager = _tenpayCertificateManagerFactory.Create(tenpayMerchantConfig.MerchantId),
|
||||
AutoEncryptRequestSensitiveProperty = true,
|
||||
AutoDecryptResponseSensitiveProperty = true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
@@ -14,8 +14,8 @@
|
||||
{
|
||||
"MerchantId": "填写商户号",
|
||||
"SecretV3": "填写商户 V3 API 密钥",
|
||||
"CertSerialNumber": "填写商户证书序列号",
|
||||
"CertPrivateKey": "填写商户证书文件内容"
|
||||
"CertificateSerialNumber": "填写商户证书序列号",
|
||||
"CertificatePrivateKey": "填写商户证书文件内容"
|
||||
}
|
||||
],
|
||||
"NotifyUrl": "https://localhost:5001"
|
||||
|
||||
Reference in New Issue
Block a user