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; }