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