Acid.PuntoPagos.Sdk.Transaction.CheckStatusTransaction C# (CSharp) Метод

CheckStatusTransaction() публичный Метод

Verify if the result of payment process was successful or not in any time.
public CheckStatusTransaction ( CheckTransactionRequestDto checkTransaction ) : CheckTransactionResponseDto
checkTransaction Acid.PuntoPagos.Sdk.Dtos.CheckTransactionRequestDto To query data, necessitating the token, transaction client id and amount.
Результат Acid.PuntoPagos.Sdk.Dtos.CheckTransactionResponseDto
        public CheckTransactionResponseDto CheckStatusTransaction(CheckTransactionRequestDto checkTransaction)
        {
            _logger.Debug("Start CheckStatusTransaction");
            var dateNow = DateTime.UtcNow;
            var message = string.Format("{0}{1}{2}{1}{3}{1}{4}{5}", _configuration.GetCheckTransactionFunction(), "\n",
                                        checkTransaction.Token, checkTransaction.TransactionId, checkTransaction.Currency,
                                        dateNow.ToString("r"));
            _logger.Debug(string.Format("Generate message for check notification transaction: {0}", message));

            var authorization = _authorization.GetAuthorizationHeader(message);

            var response = _webExecute.Execute(_configuration.GetCheckTransactionUrl(), "GET", null, authorization,
                                               dateNow);
            _logger.Debug("End execute check transaction, now create CheckTransactionResponseDto");

            var checkResponseDto = new CheckTransactionResponseDto(response);
            _logger.Info(string.Format("The result for check transaction with Token: {0} and TransactionId {1} is {2}",
                                       checkResponseDto.Token, checkResponseDto.TransactionId,
                                       checkResponseDto.IsTransactionSuccessful()
                                           ? "Successful"
                                           : "Unsuccessful"));

            _logger.Debug("End CheckStatusTransaction");
            return checkResponseDto;
        }