public static PayProxyFactory GetPayProxyFactory() { WechatPayOptions wechatPayOptions = new WechatPayOptions() { OrderUrl = "https://api.mch.weixin.qq.com/pay/unifiedorder", OrderQueryUrl = "https://api.mch.weixin.qq.com/pay/orderquery", NotifyUrl = "https://wxapi.91huichihuihe.com/WechatPay/Notify" }; return(new PayProxyFactory(wechatPayOptions, null, new TestLoggerFactory())); }
public PayProxyFactory(WechatPayOptions wechatPayOptions, SwiftpassPayOptions swiftpassPayOptions, ILoggerFactory loggerFactory) { this.wechatPayOptions = wechatPayOptions; this.swiftpassPayOptions = swiftpassPayOptions; this.loggerFactory = loggerFactory; }
public PayProxyFactory(IOptions <WechatPayOptions> wechatPayOptions, IOptions <SwiftpassPayOptions> swiftpassPayOptions, ILoggerFactory loggerFactory) { this.wechatPayOptions = wechatPayOptions.Value; this.swiftpassPayOptions = swiftpassPayOptions.Value; this.loggerFactory = loggerFactory; }