Пример #1
0
        private string BuildResponseDebug(CreditCardResponse response)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("\r\nParadata PayGateway.CreditCardResponse Object\r\n");
            sb.Append("AuthorizedAmount=" + response.getAuthorizedAmount() + "\r\n");
            sb.Append("AvsCode=" + response.getAvsCode() + "\r\n");
            sb.Append("BankApprovalCode=" + response.getBankApprovalCode() + "\r\n");
            sb.Append("BankTransactionId=" + response.getBankTransactionId() + "\r\n");
            sb.Append("BatchId=" + response.getBatchId() + "\r\n");
            sb.Append("CapturedAmount=" + response.getCapturedAmount() + "\r\n");
            sb.Append("CaptureReferenceId=" + response.getCaptureReferenceId() + "\r\n");
            sb.Append("CreditCardVerificationResponse=" + response.getCreditCardVerificationResponse() + "\r\n");
            sb.Append("CreditedAmount=" + response.getCreditedAmount() + "\r\n");
            sb.Append("OrderId=" + response.getOrderId() + "\r\n");
            sb.Append("OriginalAuthorizedAmount=" + response.getOriginalAuthorizedAmount() + "\r\n");
            sb.Append("PayerAuthenticationResponse=" + response.getPayerAuthenticationResponse() + "\r\n");
            sb.Append("ReferenceId=" + response.getReferenceId() + "\r\n");
            sb.Append("ResponseCode=" + response.getResponseCode() + "\r\n");
            sb.Append("ResponseCodeText=" + response.getResponseCodeText() + "\r\n");
            sb.Append("RetryRecommended=" + response.getRetryRecommended() + "\r\n");
            sb.Append("SecondaryResponseCode=" + response.getSecondaryResponseCode() + "\r\n");
            sb.Append("State=" + response.getState() + "\r\n");
            sb.Append("TimeStamp=" + response.getTimeStamp() + "\r\n");

            return(sb.ToString());
        }