Skip to content
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

Add new XmlStatusResponse with another one "isSuccessful" method #10

Open
Axent96 opened this issue Jul 20, 2020 · 0 comments
Open

Add new XmlStatusResponse with another one "isSuccessful" method #10

Axent96 opened this issue Jul 20, 2020 · 0 comments

Comments

@Axent96
Copy link

Axent96 commented Jul 20, 2020

If we ask transaction status with XmlStatusRequest, we get a general XmlResponse. The method "isSuccessful" of the class is:
return $this->getErrorCode() === null;
If we ask some declined transaction with some errorCode then we get false for method "isSuccessful". But in the case we wont to know the status independent of transaction status. We can have here for example a declined status too & with this status the response must be successful but this is a response and not a valid transaction status.

in the case method "getCode" return a empty value, method "getResponseCode" dont exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant