public WeChatPayController(IHttpContextAccessor httpContextAccessor, ISignatureGenerator signatureGenerator, IOptions <AbpWeChatPayOptions> abpWeChatPayOptions) { _httpContextAccessor = httpContextAccessor; _signatureGenerator = signatureGenerator; _abpWeChatPayOptions = abpWeChatPayOptions.Value; }
public PayService(IOptions <AbpWeChatPayOptions> aboWeChatPayOptions) { _abpWeChatPayOptions = aboWeChatPayOptions.Value; if (_abpWeChatPayOptions.IsSandBox) { TargetUrl = $" https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder"; } }
public PayService(IOptions <AbpWeChatPayOptions> aboWeChatPayOptions) { AbpWeChatPayOptions = aboWeChatPayOptions.Value; if (AbpWeChatPayOptions.IsSandBox) { UnifiedOrderUrl = " https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder"; RefundUrl = "https://api.mch.weixin.qq.com/sandboxnew/secapi/pay/refund"; QueryOrderUrl = "https://api.mch.weixin.qq.com/sandboxnew/pay/orderquery"; CloseOrderUrl = "https://api.mch.weixin.qq.com/sandboxnew/pay/closeorder"; } }
public AbpWeChatPayTestBase() { AbpWeChatPayOptions = GetRequiredService <IOptions <AbpWeChatPayOptions> >().Value; }