public GeekRefundQuery(GeekEndPoint geekEndPoint, GeekUriComponents uriComponents, HttpResponseParser <RefundInfo> responseParser, string appId) { this.responseParser = responseParser; this.geekEndPoint = geekEndPoint; this.uriComponents = uriComponents; this.appId = appId; }
public GeekOrderQuery(GeekUriComponents uriComponents, GeekEndPoint geekEndPoint, HttpResponseParser <OrderInfo> responseParser, string appId) { this.appId = appId; this.uriComponents = uriComponents; this.geekEndPoint = geekEndPoint; this.responseParser = responseParser; }
public GeekRetailQROrder(GeekEndPoint geekEndPoint, GeekUriComponents uriComponent, HttpResponseParser <ToPayOrderInfo> responseParser, string notifyUrl, string appId) { this.uriComponent = uriComponent; this.geekEndPoint = geekEndPoint; this.responseParser = responseParser; this.notifyUrl = notifyUrl; this.appId = appId; }
public GeekNativeQROrder(GeekEndPoint geekEndPoint, GeekUriComponents uriComponents, HttpResponseParser <ToPayNativeOrderInfo> responseParser, string returnUrl, string notifyUrl, string appId) { this.geekEndPoint = geekEndPoint; this.responseParser = responseParser; this.uriComponents = uriComponents; this.appId = appId; this.returnUrl = returnUrl; this.notifyUrl = notifyUrl; }
public GeekRefundQueryTest() { GeekSign geekSign = new GeekSign(AppProperties.GeekPublicKey, AppProperties.PrivateKey); HttpClient httpClient = new HttpClient(); geekEndPoint = new GeekEndPoint(httpClient, geekSign); uriComponents = new GeekUriComponents(GeekPaymentProperties.Scheme, GeekPaymentProperties.Host, geekSign); responseParser = new RefundInfoResponseParser(); }
private GeekRefund GetRefund() { GeekSign geekSign = new GeekSign(AppProperties.GeekPublicKey, AppProperties.PrivateKey); HttpClient httpClient = new HttpClient(); GeekEndPoint geekEndPoint = new GeekEndPoint(httpClient, geekSign); GeekUriComponents uriComponents = new GeekUriComponents(GeekPaymentProperties.Scheme, GeekPaymentProperties.Host, geekSign); HttpResponseParser <RefundInfo> responseParser = new RefundInfoResponseParser(); return(new GeekRefund(geekEndPoint, uriComponents, responseParser, AppProperties.AppID)); }
private GeekOrderClose GetClose() { GeekSign geekSign = new GeekSign(AppProperties.GeekPublicKey, AppProperties.PrivateKey); HttpClient httpClient = new HttpClient(); GeekEndPoint geekEndPoint = new GeekEndPoint(httpClient, geekSign); GeekUriComponents uriComponents = new GeekUriComponents(GeekPaymentProperties.Scheme, GeekPaymentProperties.Host, geekSign); HttpResponseParser <OrderInfo> responseParser = new OrderInfoResponseParser(); return(new GeekOrderClose(uriComponents, geekEndPoint, responseParser, AppProperties.AppID)); }
static GeekChannelOrderFactory() { httpClient = new HttpClient(); geekSign = new GeekSign(AppProperties.GeekPublicKey, AppProperties.PrivateKey); geekEndPoint = new GeekEndPoint(httpClient, geekSign); }