Example #1
0
 public WeChatPaymentUnifyOrderResultForMiniProgram(
     WeChatPaymentSecuret securet,
     string appid,
     string prepay_id)
 {
     this.securet = securet;
     this.appId   = appid;
     this.package = "prepay_id=" + prepay_id;
 }
Example #2
0
 public WeChatPaymentUnifyOrderInputFactory(
     IOptionsMonitor <WeChatPaymentOptions> paymentOptions,
     IOptionsMonitor <MiniProgramAuthenticationOptions> authOptions,
     WeChatPaymentSecuret securet)
 {
     this.paymentOptions = paymentOptions.CurrentValue;
     this.authOptions    = authOptions.CurrentValue;
     this.securet        = securet;
 }
Example #3
0
 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;
        }
Example #5
0
 public WeChatPaymentUnifyOrderResultFactory(WeChatPaymentSecuret securet)
 {
     this.securet = securet;
 }
Example #6
0
 //构造函数无法异步,所以从Strem初始化实例就不放构造函数了
 private WeChatPaymentUnifyOrderResult(WeChatPaymentSecuret securet)
 {
     this.securet = securet;
 }
 public WeChatPaymentNoticeResultFactory(WeChatPaymentSecuret securet)
 {
     this.securet = securet;
 }