2021-07-30 14:09:25 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
|
|
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net5.Options
|
|
|
|
|
{
|
2021-07-31 20:30:04 +08:00
|
|
|
|
public partial class WxpayOptions : IOptions<WxpayOptions>
|
2021-07-30 14:09:25 +08:00
|
|
|
|
{
|
2021-07-31 20:30:04 +08:00
|
|
|
|
WxpayOptions IOptions<WxpayOptions>.Value => this;
|
2021-07-30 14:09:25 +08:00
|
|
|
|
|
|
|
|
|
public WechatMerchant[] Merchants { get; set; } = Array.Empty<WechatMerchant>();
|
|
|
|
|
|
2021-07-31 21:21:15 +08:00
|
|
|
|
public string CallbackUrl { get; set; } = string.Empty;
|
2021-07-30 14:09:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-31 20:30:04 +08:00
|
|
|
|
partial class WxpayOptions
|
2021-07-30 14:09:25 +08:00
|
|
|
|
{
|
|
|
|
|
public class WechatMerchant
|
|
|
|
|
{
|
|
|
|
|
public string MerchantId { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
public string SecretV3 { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
public string CertSerialNumber { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
public string CertPrivateKey { get; set; } = string.Empty;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|