protected virtual void ControlQuerySignature(CommonPaymentQueryRequest reqModel, CommonPaymentQueryResponse resModel, string secretKey) { if (resModel.Success) { resModel.ControlSignature(secretKey, reqModel.HashVersion); } }
public ActionResult Query() { var request = new CommonPaymentQueryRequest { ApiKey = _apiKey, TransactionId = "TestCommonPaymentSave00001", CommonPaymentUniqueId = "9617ba1b05aa41e0b6f790306b7303b6", HashVersion = _hashVersion }; var apiUrl = _commonPaymentApiUrl + "/commonpayments/query"; var response = _commonPaymentProcessor.Query(request, apiUrl, _secretKey); return(View(new CommonPaymentResultModel { Amount = response.Amount, ApiKey = response.ApiKey, Currency = response.Currency, Installment = response.Installment, Success = response.Success, MessageCode = response.MessageCode, Message = response.Message, UserMessage = response.UserMessage, TransactionId = response.TransactionId, TransactionTime = response.TransactionTime, CommonPaymentUniqueId = response.CommonPaymentUniqueId, PaymentTransactionReponseMessage = response.PaymentTransactionReponseMessage, PaymentTransactionResponseCode = response.PaymentTransactionResponseCode, Status = response.Status })); }
public CommonPaymentQueryResponse Query(CommonPaymentQueryRequest reqModel, string apiUrl, string secretKey) { reqModel.SetSignature(secretKey); var response = RestCallPost <CommonPaymentQueryResponse>(apiUrl, reqModel, secretKey, false); ControlQuerySignature(reqModel, response, secretKey); return(response); }
protected override void ControlQuerySignature(CommonPaymentQueryRequest reqModel, CommonPaymentQueryResponse resModel, string secretKey) { }