Skip to content

Bug: GatewayResponse.cs ResponseCode returns Code instead #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bradbamford opened this issue Jan 24, 2015 · 2 comments
Closed

Bug: GatewayResponse.cs ResponseCode returns Code instead #60

bradbamford opened this issue Jan 24, 2015 · 2 comments

Comments

@bradbamford
Copy link

GatewayResponse.cs

    public string ResponseCode {
        get {
            return ParseResponse(0); 
        }
    }

Should be

    public string ResponseCode {
        get {
            return ParseResponse(2); // <-- Bug Fix
        }
    }
@bradbamford
Copy link
Author

{"RawResponse":["3","1","6","The credit card number is invalid.", ...]}

0 = Code
1 = SubCode
2 = ResponseCode
3 = Message

Dthurman added a commit to Dthurman/sdk-dotnet that referenced this issue Jan 26, 2015
…tted for api if the clients local includes a number format that does not match

US format.
@bradbamford
Copy link
Author

@Dthurman You referenced the wrong issue. You referenced #60 instead of #59 for that fix.

Dthurman added a commit to Dthurman/sdk-dotnet that referenced this issue Feb 2, 2015
…rns ParseResponse(2) instead of value at index 0.
Dthurman added a commit that referenced this issue Feb 2, 2015
Update to fix issue #60 in sdk-dotnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant