Exemple #1
0
        internal Transaction(string raw, string amount, string wasTest, string succeeded, string token, string obfuscatedNumber, string avs_code, TransactionErrors errors)
        {
            if (!string.IsNullOrEmpty(amount))
            {
                Amount = decimal.Parse(amount, CultureInfo.InvariantCulture) / 100;
            }

            WasTest = string.Equals(wasTest, "true", StringComparison.InvariantCultureIgnoreCase);

            Succeeded        = string.Equals(succeeded, "true", StringComparison.InvariantCultureIgnoreCase);
            Token            = token;
            ObfuscatedNumber = obfuscatedNumber;
            Errors           = errors;

            AvsCode = avs_code;
            Raw     = raw;
        }
Exemple #2
0
 public Transaction(bool wasTest, TransactionErrors errors)
 {
     Succeeded = false;
     WasTest   = wasTest;
     Errors    = errors;
 }