Skip to content

Commit bf203de

Browse files
committed
Merge pull request #84 from baluveer/future
Visa CheckOut Changes
2 parents d10869e + 029cc8e commit bf203de

14 files changed

+739
-262
lines changed

Authorize.NET/AIM/Responses/GatewayResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public string ResponseCode {
7878
return ParseResponse(0);
7979
}
8080
}
81-
public string ReasonResponseCode
81+
public string ResponseReasonCode
8282
{
8383
get
8484
{

Authorize.NET/AIM/Responses/IGatewayResponse.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ public interface IGatewayResponse {
99
string ResponseCode { get; }
1010
string Message { get; }
1111
string TransactionID { get; }
12+
string ResponseReasonCode { get; }
13+
string GetValueByIndex(int position);
1214
}
1315
}

Authorize.NET/AIM/Responses/SIMResponse.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ public string ResponseCode {
3636
return FindKey("x_response_code");
3737
}
3838
}
39+
40+
public string ResponseReasonCode
41+
{
42+
get { throw new NotImplementedException(); }
43+
}
44+
3945
public string Message {
4046
get {
4147
return FindKey("x_response_reason_text");
@@ -101,6 +107,21 @@ string FindKey(string key) {
101107
return result;
102108
}
103109

110+
public string GetValueByIndex(int position)
111+
{
112+
return ParseResponse(position);
113+
}
114+
115+
internal string ParseResponse(int index)
116+
{
117+
var result = "";
118+
if (_post.AllKeys.Count() > index)
119+
{
120+
result = _post[index];
121+
}
122+
return result;
123+
}
124+
104125
public override string ToString() {
105126
var sb = new StringBuilder();
106127
sb.AppendFormat("<li>Code = {0}", this.ResponseCode);

0 commit comments

Comments
 (0)