コード例 #1
0
ファイル: WePayUtil.cs プロジェクト: hkmujj/zllinmitu
        public static BasePayResponse Report(BasePayResponse response, string outTradeNo,
                                             string interfaceUrl, int executeTime)
        {
            WeReportRequest request = new WeReportRequest(response, outTradeNo, interfaceUrl, executeTime);

            return(PostData <BasePayResponse>(WePayConst.REPORT_URL, request));
        }
コード例 #2
0
        public static WeReportResponse Report(string interfaceUrl, int executeTime,
                                            WePaymentResultCode returnCode, WePaymentResultCode resultCode)
        {
            TkDebug.AssertArgumentNullOrEmpty(interfaceUrl, "interfaceUrl", null);

            string url = WeUtil.GetUrl(WePayConst.REPORT_URL);
            WeReportRequest request = new WeReportRequest(interfaceUrl, executeTime, returnCode, resultCode);
            var result = WeUtil.PostDataToUri(url, request.WriteXml(), new WeReportResponse());
            return result;
        }