Skip to content

edson-nascimento:API-3.0-PHP:master - #1

Open
JonathanNitroEcom wants to merge 38 commits into
JonathanNitroEcom:masterfrom
edson-nascimento:master
Open

edson-nascimento:API-3.0-PHP:master#1
JonathanNitroEcom wants to merge 38 commits into
JonathanNitroEcom:masterfrom
edson-nascimento:master

Conversation

@JonathanNitroEcom

Copy link
Copy Markdown
Owner

No description provided.

Verificado se logger !== null quando tem curl_errno
Fix se erro 400 não retorna array
- 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.
…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.
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