public WeChatPayController(IHttpContextAccessor httpContextAccessor,
                            ISignatureGenerator signatureGenerator,
                            IOptions <AbpWeChatPayOptions> abpWeChatPayOptions)
 {
     _httpContextAccessor = httpContextAccessor;
     _signatureGenerator  = signatureGenerator;
     _abpWeChatPayOptions = abpWeChatPayOptions.Value;
 }
示例#2
0
        public PayService(IOptions <AbpWeChatPayOptions> aboWeChatPayOptions)
        {
            _abpWeChatPayOptions = aboWeChatPayOptions.Value;

            if (_abpWeChatPayOptions.IsSandBox)
            {
                TargetUrl = $" https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder";
            }
        }
示例#3
0
        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";
            }
        }
示例#4
0
 public AbpWeChatPayTestBase()
 {
     AbpWeChatPayOptions = GetRequiredService <IOptions <AbpWeChatPayOptions> >().Value;
 }