/// <summary> /// 创建微信的支付订单 /// </summary> private string CreateWechatpayOrder() { var order = new Wechatpay.Order() { Amount = 0.01, OutTradeNo = outTradeNo, Body = "测测看微信支付", AuthCode = "123" }; var gateway = gateways.Get <Wechatpay.WechatpayGataway>(GatewayTradeType.Barcode); return(gateway.Payment(order)); }
/// <summary> /// 创建微信的支付订单 /// </summary> private string CreateWechatpayOrder() { var order = new Wechatpay.Order() { Amount = 0.01, OutTradeNo = "35", Body = "测测看微信支付", }; var gateway = gatewayList.GetGateway(GatewayType.Wechatpay); gateway.GatewayTradeType = GatewayTradeType.App; PaymentSetting paymentSetting = new PaymentSetting(gateway, order); return(paymentSetting.Payment()); }