All checks were successful
Build and Deploy / deploy (push) Successful in 1m29s
回调/查单/补偿走事务内原子占单再入账;关单同步驳回充值;创建先落单失败即 Failed;列表标记在线支付态。 Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
893 B
C#
25 lines
893 B
C#
namespace Oms.Application.Services.Payment;
|
|
|
|
/// <summary>
|
|
/// 运行时加载的微信支付商户设置。
|
|
/// </summary>
|
|
public class WeChatPayMerchantSettings
|
|
{
|
|
public bool Enabled { get; init; }
|
|
public string MchId { get; init; } = string.Empty;
|
|
public string MchSerialNo { get; init; } = string.Empty;
|
|
public string ApiV3Key { get; init; } = string.Empty;
|
|
public string PrivateKeyPem { get; init; } = string.Empty;
|
|
public string NotifyUrl { get; init; } = string.Empty;
|
|
public string AppId { get; init; } = string.Empty;
|
|
|
|
public bool IsReady =>
|
|
Enabled
|
|
&& !string.IsNullOrWhiteSpace(MchId)
|
|
&& !string.IsNullOrWhiteSpace(MchSerialNo)
|
|
&& !string.IsNullOrWhiteSpace(ApiV3Key)
|
|
&& !string.IsNullOrWhiteSpace(PrivateKeyPem)
|
|
&& !string.IsNullOrWhiteSpace(NotifyUrl)
|
|
&& !string.IsNullOrWhiteSpace(AppId);
|
|
}
|