Пример #1
0
 public static ResultParameters Report(string apiURL, int costTime, PayResultParameters results, string outTradeId = null)
 {
     SubmitParameters submits = SubmitParameters.Pares(apiURL, costTime, results, outTradeId);
     return new ReportCost(submits).Report();
 }
Пример #2
0
            public static SubmitParameters Pares(string apiURL, int costTime, PayResultParameters results, string outTradeId = null)
            {
                SubmitParameters submit = null;

                if (!General.IsNullable(apiURL) && costTime > 0 && results != null)
                {
                    submit = new SubmitParameters {
                        AppId = results.AppId,
                        ApiKey = results.ApiKey,
                        MerchantId = results.MerchantId,
                        ReturnCode = results.ReturnCode,
                        ResultCode = results.ResultCode,
                        InterFaceURL = apiURL,
                        ExecuteTime = costTime,
                        OutTradeId = outTradeId
                    };
                }

                return submit;
            }