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

Fixed a possible notice in error response handling. #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boenrobot
Copy link

That is where "gwErrorCode" would be present, but "gwErrorReason" is not. In those cases, "reason" is used instead.

That is where "gwErrorCode" would be present, but "gwErrorReason" is not. In those cases, "reason" is used instead.
@boenrobot
Copy link
Author

boenrobot commented Oct 3, 2024

I am trying to run the PHPUnit tests locally, and the tests

\Nuvei\Tests\ThreeDsecureTest::testDynamic3d
\Nuvei\Tests\ThreeDsecureTest::testDynamic3dWithRebillingAndMpi

fail due to a notice.

With this PR, they still fail, but now they fail because the exception happened in the first place, rather than due to the notice.

The tests

\Nuvei\Tests\advancedAPMIntegrationTest::testAddBankAccount
\KYCTest::testEKYC

also fail, but for unrelated reasons.

I don't know how to fix the failing tests, but the PHP notice is clearly wrong, hence this PR.

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

Successfully merging this pull request may close these issues.

1 participant