Skip to content

Fixed a possible notice in error response handling.#44

Open
boenrobot wants to merge 1 commit intoNuvei:masterfrom
boenrobot:reasonNoticeFix
Open

Fixed a possible notice in error response handling.#44
boenrobot wants to merge 1 commit intoNuvei:masterfrom
boenrobot:reasonNoticeFix

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