edson-nascimento:API-3.0-PHP:master - #1
Open
JonathanNitroEcom wants to merge 38 commits into
Open
Conversation
Verificado se logger !== null quando tem curl_errno
…logger Update AbstractRequest.php
Fix se erro 400 não retorna array
…ro-400 Update AbstractRequest.php
feat: atualizar projeto para PHP8
release: v2.0.1
- Introduced ExternalAuthentication class for handling 3DS 2.2 authentication. - Updated Payment class to include external authentication handling. - Added fluent setters and getters for ExternalAuthentication. - Implemented tests for ExternalAuthentication functionality.
- Introduced AccessToken class for handling 3DS access tokens. - Added ThreeDSecureService for generating access tokens via MPI. - Updated Environment class to include MPI URL and corresponding getter. - Enhanced CieloEcommerce class with a method to create 3DS access tokens.
- Changed PHPUnit bootstrap file to `tests/bootstrap.php`. - Added `PaymentIntegrationTest` for credit card and PIX payment processing. - Introduced `ThreeDS2IntegrationTest` for 3DS access token validation. - Created a new `tests/bootstrap.php` file for test environment setup.
- Introduced AccessTokenTest to validate functionality of the AccessToken class. - Added tests for populating from snake case keys, JSON deserialization, default values, fluent setters, validity checks, and environment MPI URLs. - Removed unused Payment import from ExternalAuthenticationTest.
- Updated method name from `getApiQueryURL` to `getApiQueryUrl` for consistency across the Environment interface and its implementations.
- Introduced a new test method to verify that masked request and response data are logged correctly. - Ensured sensitive information such as card numbers and access tokens are obscured in logs. - Validated the logging of request details and response status codes.
feat: add 3DS 2.2
…uests - Introduced the mpiApiRequest method to facilitate API requests with customizable body and headers. - Improved flexibility for handling different request types and data formats.
…MPI token generation - Implemented generateAccessTokenMpiV3 method to facilitate access token generation for MPI v3. - Enhanced API interaction by constructing a request with establishment details and authorization headers. - Improved integration with Cielo's MPI service for secure transactions.
feat: add mpi v3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.