Skip to content

[NEB-4780] Add KYC, geo, and bot-detection structured fields to integration tests - #117

Open
rkumar-sift wants to merge 1 commit into
masterfrom
rkumar/NEB-4780-structured-fields
Open

[NEB-4780] Add KYC, geo, and bot-detection structured fields to integration tests#117
rkumar-sift wants to merge 1 commit into
masterfrom
rkumar/NEB-4780-structured-fields

Conversation

@rkumar-sift

Copy link
Copy Markdown

Purpose

Adds the new structured fields ($nationality, $year_of_birth, $kyc, $geo, $bot_identification) to this repo's integration test fixtures, per the Structured Fields TDD (NEB-4573).

Summary

No changes needed to lib/ itself. This client validates nothing client-side and is a thin HTTP wrapper, so callers can already pass these fields through as plain array keys. Added the fields to the existing create_account, update_account, login, transaction, create_order, update_order, and verification fixtures in test_integration_app/events_api/test_events_api.php.

Testing

Ran test_integration_app/main.php's event methods directly against production (PHP 8.5 locally, standalone harness since phpunit 7.* pinned in composer.json doesn't support PHP 8+; CI's own matrix uses PHP 7.1-7.4, so this isn't a concern there). All 7 methods returned httpStatusCode=200, apiStatus=0.

Also noticed lib/SiftRequest.php's curl_close() call is deprecated as of PHP 8.0 (no-op, harmless) — unrelated to this change, flagging separately rather than fixing here.

@mzobro-sift mzobro-sift left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

2 participants