public WeChatPaymentUnifyOrderResultForMiniProgram( WeChatPaymentSecuret securet, string appid, string prepay_id) { this.securet = securet; this.appId = appid; this.package = "prepay_id=" + prepay_id; }
public WeChatPaymentUnifyOrderInputFactory( IOptionsMonitor <WeChatPaymentOptions> paymentOptions, IOptionsMonitor <MiniProgramAuthenticationOptions> authOptions, WeChatPaymentSecuret securet) { this.paymentOptions = paymentOptions.CurrentValue; this.authOptions = authOptions.CurrentValue; this.securet = securet; }
public WeChatPaymentService( IOptionsMonitor <WeChatPaymentOptions> paymentOptions, IOptionsMonitor <MiniProgramAuthenticationOptions> authOptions, WeChatPaymentUnifyOrderResultFactory weChatPaymentUnifyOrderResultFactory, IHttpClientFactory clientFactory, WeChatPaymentSecuret securet) { this.paymentOptions = paymentOptions.CurrentValue; this.authOptions = authOptions.CurrentValue; this.weChatPaymentUnifyOrderResultFactory = weChatPaymentUnifyOrderResultFactory; this.clientFactory = clientFactory; this.securet = securet; }
public WeChatPaymentUnifyOrderInput( WeChatPaymentSecuret securet, string appid, string mch_id, string notify_url, string ip, string body, string out_trade_no, decimal total_fee) { this.securet = securet; this.appid = appid; this.mch_id = mch_id; ResetNonce(); this.body = body; this.out_trade_no = out_trade_no; this.total_fee = total_fee; this.spbill_create_ip = ip;//先这么来,以后可能想个法获取服务器的外网ip this.notify_url = notify_url; }
public WeChatPaymentUnifyOrderResultFactory(WeChatPaymentSecuret securet) { this.securet = securet; }
//构造函数无法异步,所以从Strem初始化实例就不放构造函数了 private WeChatPaymentUnifyOrderResult(WeChatPaymentSecuret securet) { this.securet = securet; }
public WeChatPaymentNoticeResultFactory(WeChatPaymentSecuret securet) { this.securet = securet; }