Repository navigation
4.5.0
Release - 4.5.0 (#309)
This release introduces new features and enhancements to the Checkout API client, focusing on expanding support for identities management, sub-entity member management, reserve rules, and additional API clients. It also improves the flexibility of the API client for handling custom headers and request body formats. Below are the most important changes:
API Client Enhancements
-
Refactored
ApiClientto support custom headers via reflection, improved handling of different request body formats (JSON, multipart form data, form URL encoded), and updated method signatures for greater flexibility. [1] [2] [3] [4] [5] -
Refactored
ApiClientmethods to accept a more generic$requestBodyand optional custom headers, improving support for different content types (JSON, multipart, form URL encoded) and making header injection more flexible via reflection. Utility methods were added for header conversion and content-type detection. [1] [2] [3] [4] [5] -
New if-match header support in the put requests through Accounts Headers class.
New API Client Integrations
- Added new client properties and getter methods to
CheckoutApiforNetworkTokensClient,FaceAuthenticationClient,IdDocumentVerificationClient,IdentityVerificationClient,AmlScreeningClient, andApplicantsClient, enabling access to additional Checkout.com API features. [1] [2] [3] [4] [5] [6]
New Features: Sub-Entity Members & Reserve Rules
- Added methods to
AccountsClientfor managing sub-entity members (retrieving and reinviting) and reserve rules (creating, retrieving, updating, and fetching details). New request and entity classes for reserve rules (CreateReserveRuleRequest,UpdateReserveRuleRequest,Rolling,HoldingDuration) were introduced. [1] [2] [3] [4] [5]
Enhancements to Accounts and Reserve Rules
- Added new methods in
AccountsClientto manage sub-entity members (retrieving and re-inviting members) and reserve rules (creating, querying, retrieving details, and updating reserve rules), along with the necessary request and entity classes (CreateReserveRuleRequest,UpdateReserveRuleRequest,Rolling,HoldingDuration). [1] [2] [3] [4] [5] [6] [7]
Identity Verification Client Integrations
- Added new clients for identity verification, AML screening, face authentication, ID document verification, and applicant management to the CheckoutApi, making these services directly accessible via the main API class, integrated new identity-related clients (
FaceAuthenticationClient,IdDocumentVerificationClient,IdentityVerificationClient,AmlScreeningClient,ApplicantsClient) intoCheckoutApi, with corresponding getter methods for each. [1] [2] [3] [4]
Forward API Secret Management
- Added secret management functionality to the ForwardClient, including methods to create, list, update, and delete secrets. New request classes for creating and updating secrets, and a metadata entity for secret information, were also introduced.
Codebase Organization
-
Moved and renamed files in the
Forwardmodule from theRequestsnamespace to theEntitiesnamespace for improved clarity and consistency. (Headers.php,MethodType.php,NetworkToken.php) [1] [2] [3]This pull request introduces several new features and improvements to the Checkout SDK, focusing on enhanced support for sub-entity management, reserve rules, and identity verification, as well as improvements to the API client for more flexible request handling. It also includes some refactoring and namespace changes for better organization. -
Refactored several
ForwardClientrequest-related classes to reside under theEntitiesnamespace instead ofRequests, improving code organization and clarity. [1] [2] [3] [4] [5] [6]
These changes collectively add significant new functionality for managing sub-entity users and reserve rules, improve the flexibility of API requests, and enhance the SDK's support for identity verification workflows.