5.0.0
GetFaceAuthenticationAttemptAssets, PaymentPlan updates + Move to PHP versions 8.X (dropped all 7.X ones) (#345)
BREAKING CHANGE
This release drops support for PHP 7.1 and 7.4, raising the minimum required PHP version to 8.1. It updates the SDK and its dependencies accordingly, simplifies the Composer and CI workflows, and updates documentation to reflect these changes.
PHP version and dependency requirements:
- Updated
composer.jsonto requirephp: >=8.1.0,guzzlehttp/guzzle: ^7.4, andmonolog/monolog: ^2.4 || ^3.0.0; dropped support for older versions and removed compatibility with PHP 7.x and Guzzle 6.x. Updated dev dependencies to requirephpunit/phpunit: ^9.0only. - Updated
README.mdto state that as of v5.0.0, the SDK requires PHP 8.1 or newer, and to explain the rationale for dropping PHP 7.x support. Updated Composer example accordingly.
Continuous Integration (CI) and workflow changes:
- Removed all references to PHP 7.1 and 7.4 from GitHub Actions workflows (
build-master.yml,build-pull-request.yml,build-release.yml), so CI now only tests PHP 8.1 and 8.4 on supported OSes. Simplified installation and Composer steps accordingly. [1] [2] [3] [4] [5] [6] [7] [8]
General update
This release introduces new functionality for retrieving assets associated with face authentication and identity verification attempts, adds support for recurring payment plans and authorization types to several payment request objects, and exposes a new processing field. It also includes comprehensive tests for the new features.
Identity Verification & Face Authentication Enhancements:
- Added the
AttemptAssetsQueryFilterentity to support pagination when querying assets related to authentication and verification attempts. - Introduced
getFaceAuthenticationAttemptAssetsandgetIdentityVerificationAttemptAssetsmethods in their respective clients, enabling retrieval of assets (like images and videos) captured during an attempt, with optional pagination. [1] [2] - Added corresponding unit and integration tests for these new asset retrieval methods, ensuring correct API endpoint usage and response validation. [1] [2] [3] [4] [5] [6]
Payments API Improvements:
- Added support for recurring payment plans and authorization types by introducing new
payment_planandauthorization_typefields toHostedPaymentsSessionRequest,PaymentLinkRequest, andPaymentSessionsRequest. [1] [2] [3] - Exposed the
scheme_transaction_link_idfield inProcessingSettingsto allow access to the scheme transaction link identifier for card transactions. - Updated integration tests to safely access the new
scheme_transaction_link_idfield, confirming its presence and type when available.